TO: jonathan (previously known as macmend) spencer
THANK YOU ! THANK YOU! THANK YOU SO SO MUCH FOR YOUR POST a year ago!!!
It was so helpful for us!!!!
Thank you once again !!!! GREAT JOB !!!!
I have been getting so fed up with people finding answers and not coming back I thought I would come back on this one have taken 48hours to find an answer.
This happens i understand because of custom post types or custom category types and is likely because an instance of a category ID is empty.
I found changing:
echo get_category_parents($cat, TRUE, ' ' . $delimiter . ' ');
echo is_wp_error( $cat_parents = get_category_parents($cat, TRUE, '' . $delimiter . '') ) ? '' : $cat_parents;
fixed all my issues with the "Catchable fatal error: Object of class WP_Error could not be converted to string"