Catchable fatal error: Object of class WP_Error could not be converted to string in

Got this error for one of the theme functions file.

Browsed down to the line:


$parent_list  = get_category_parents($cat, TRUE, ‘ ‘ , ‘ ‘);


$parent_list  = is_wp_error( $cat_parents = get_category_parents($cat, TRUE, ” . $delimiter . ”) ) ? ” : $cat_parents;

Works without a problem now!

Leave a Reply

contents of this site are fully owned by R Edsley Neoson Daniel. Unauthorised reproduction will be prosecuted to the maximum extent possible (legally of course) Privacy Policy