Catchable fatal error_

Hello, and thank you for your great support!

I received a 404 error from Google search console (page does not exist, url does not exist) in a page i didn’t know that it existed!

This is the page:

https://cretanactivities.com/tours-and-activities-cretan-activities/banner/

And this is the error if you visit said url:

CATCHABLE FATAL ERROR: OBJECT OF CLASS WP_ERROR COULD NOT BE CONVERTED TO STRING IN /HOME/CRETANAC/PUBLIC_HTML/WP-CONTENT/THEMES/ENTRADA/ADMIN/FUNCTIONS/CUSTOM-FUNCTIONS.PHP ON LINE 977

And this is the text from custom-functions.php on line 977:

973 }
974 else if ( is_attachment() ) {
975 $parent = get_post($post->post_parent);
976 $cat = get_the_category($parent->ID); $cat = $cat[0];
977 echo get_category_parents($cat, TRUE, ’ ’ . $delimiter . ’ ');
978 echo ‘

  • ’ . $parent->post_title . ‘
  • ’;
    979 if ($showCurrent == 1) {
    980 echo ’ ’ . $delimiter . ’ ’ . $before . get_the_title() . $after;
    981 }

    I appreciate any insights you might have on this.

    Thank you,

    Maria

    Hi Maria,

    If the page doesn’t exist, it should show the 404 page, for example: https://themes.waituk.com/entrada-modern/banner

    So the page does exist, and the value being passed is incorrect resulting in the error.

    Have you checked that this page is not in your pages?

    Thx

    Thank you for your reply,

    Yes, I have already checked in pages menu, a page called banner is not there. nor is a page with the name “tours-and-activities-cretan-activities”.