I get this error in my theme:
Catchable fatal error: Object of class WP_Error could not be converted to string in
/home/winentra/public_html/s1.ssonline.co.in/wp-content/themes/peekaboo/admin/common-functions.php
on line 186
Line No. 186:
echo get_category_parents($cat, TRUE, ' ' . $delimiter . ' ');
Context:
elseif ( is_single() ) {
$cat = get_the_category();
$cat = $cat[0];
echo get_category_parents($cat, TRUE, ' ' . $delimiter . ' ');
echo $currentBefore;
the_title();
echo $currentAfter;
}
Any ideas on this please?