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 ‘
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