• Hi guys.

    I Have an problem at my theme. When I entry to my article, WordPress show me this error message:

    “Catchable fatal error: Object of class WP_Error could not be converted to string in /home/migmedya/public_html/wp-content/themes/mytheme/functions-ek.php on line 68”

    line of 68 is:

    if ( is_category() ) {  
    
                $thisCat = get_category(get_query_var('cat'), false);  
    
                if ($thisCat->parent != 0) {  
    
                    $cats = get_category_parents($thisCat->parent, TRUE, $delimiter);  
    
                    $cats = str_replace('<a', $linkBefore . '<a' . $linkAttr, $cats);  
    
                    $cats = str_replace('</a>', '</a>' . $linkAfter, $cats);  
    
                    echo $cats;  
    
                }

    How I’m gonna solve it’s problem? Thanks.

  • The topic ‘Catchable fatal error: Object of class WP_Error could not be converted to string’ is closed to new replies.