montezuma theme, breadcrumb, a lot of errors in PHP
-
Hello, I was directed here by nice advice by Jan, from an old topic (this one).
The problem: there are a lot of errors in log which looks like:
[Wed Oct 08 12:24:03 2014] [error] [client 83.22.228.169] PHP Catchable fatal error: Object of class WP_Error could not be converted to string in /home/piotao/PKB/www/wp-content/themes/montezuma/includes/breadcrumbs.php on line 56, referer: https://polskikursblendera.pl/galeria/users/ [Wed Oct 08 12:25:06 2014] [error] [client 5.255.253.90] PHP Catchable fatal error: Object of class WP_Error could not be converted to string in /home/piotao/PKB/www/wp-content/themes/montezuma/includes/breadcrumbs.php on line 56
I don’t know how to repair them. I can edit and change all files beacause this is my own server. The installation is set on apache
2.2.16-6+squeeze12, WP is 4.0 (updated yesterday), montezuma is the latest (updated also yesterday). In the source code I have the following53 } elseif ( is_attachment() ) { 54 $parent = get_post($post->post_parent); 55 $cat = get_the_category($parent->ID); $cat = $cat[0]; 56 echo "<li>" . get_category_parents($cat, TRUE, "</li><li>"); 57 echo '<a href="' . get_permalink($parent) . '">' . $parent->post_title . '</a></li>'; 58 echo '<li>' . $before . the_title('','',false) . $after . '</li>'; 59
(line numbers are from my text editor). I you would be so nice and take a second to look at this, please.
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘montezuma theme, breadcrumb, a lot of errors in PHP’ is closed to new replies.