• 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 following

    53   } 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)
  • Hi, Piotao. Can you please post your question on the Bytes For All Montezuma Forum? The problem is a bit more technical than I can answer, and one of the theme developers is more likely to see your question over there and give you a faster answer. Thanks. Very nice looking site, by the way.

    Thread Starter piotao

    (@piotao)

    OK, I’ll post there.

    Thread Starter piotao

    (@piotao)

    Unfortunately, I cannot post there. I’ve registered, did not receive any confirmation email, but the forum allows me to login, and it says that I have not priviledges required to write there. I waited a day to see if some kind of activation email is coming but nope. So, I’m stuck. Unfortunately I don’t have enough time to dig in and investigate.

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.