• Hi there,

    I have recently added a post to my site.

    The post contains a WP generated gallery – [gallery columns="2" ids="13516,13507,13508,13509,13510,13511,13512,13513,13514,13515"]

    Now when an image within the gallery is clicked on I get this error message – Catchable fatal error: Object of class WP_Error could not be converted to string in …/plugins/woocommerce/templates/shop/breadcrumb.php on line 162

    I believe this is the line of code to which it refers (as my cpanel doesn’t display correctly) – echo get_category_parents( $cat, true, ” . $delimiter );

    I am no programmer so this code goes over my head. I would like to know why I am receiving this error as it hasn’t happened before. From research it suggests that there is no category applied but this is an image within a post that does have a category applied.

    Is there a way to get this to work correctly?

    Link to post – https://gardnertackle.co.uk/2014/02/tie-kd-rig/

    Many thanks, Olly

  • The topic ‘Catchable fatal error: Object of class WP_Error could not be converted to string’ is closed to new replies.