1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Usnig church theme, getting this error!!

Discussion in 'Blogging' started by Scotland, Jul 3, 2010.

  1. Scotland

    Scotland Regular Member

    Joined:
    Apr 4, 2009
    Messages:
    379
    Likes Received:
    204
    Occupation:
    Student
    Location:
    On Way To Personal Legend
    Im crap at coding. Ive installed the church theme, and using GOOGLe looked to see if any of my pages were indexed using site:

    Anyway one is indexed and when i click on the link i get the following message/


    Catchable fatal error: Object of class WP_Error could not be converted to string in /home/content/14/6370714/html/wp-content/themes/church_40/tools/breadcrumbs.php on line 59

    Anybody help??
     
  2. OnlineGodfather

    OnlineGodfather Senior Member

    Joined:
    Mar 3, 2010
    Messages:
    1,116
    Likes Received:
    406
    Occupation:
    Interwebs
    Location:
    Russia
    You can always upload the files you think are having error again with the ones you had on the beggining.
     
  3. bhnoob

    bhnoob Newbie

    Joined:
    Jul 12, 2008
    Messages:
    41
    Likes Received:
    9
    try this.. in /wp-content/themes/church_40/tools/breadcrumbs.php

    find
    Code:
    if ($cat->parent != 0) {
    $output .= get_category_parents($cat->term_id, true, " ".$sep." ");
    } else {
    $output .= '<a href="'.get_category_link($cat->term_id).'">'.$cat->name.'</a> '.$sep.' ';
    }
    } 
    and change it to:
    Code:
    if ( is_object($cat) ) {
    if ($cat->parent != 0) {
    $output .= get_category_parents($cat->term_id, true, " ".$sep." ");
    } else {
    $output .= '<a href="'.get_category_link($cat->term_id).'">'.$cat->name.'</a> '.$sep.' ';
    }
    }
    }
     
    • Thanks Thanks x 1