• 27-10-2009, 17:55:50
    #1
    Temayı locahostta 2.8.4 sürümüne kurdum hiçbir sorun yaşanmadan çalıştı. Fakat 2.8.5 sürümüne sitede kurdum bu hatayı veriyor.

    Catchable fatal error: Object of class WP_Error could not be converted to string in /home/ozgurkos/public_html/wp-content/themes/comfy-magazine-v2.3/widgets/category.html on line 22

    Sanırım hata bu kısımda:

    <h3><a href="<?php print get_category_link($section); ?>" title="<?php print get_cat_name($section); ?>"><?php print get_cat_name($section); ?></a><a href="#minimize" class="minimize"></a><a href="#close" class="close"></a></h3>
    	<div class="container">
  • 27-10-2009, 20:11:50
    #2
    Üyeliği durduruldu
    2.8.4 de calıştırmayı denesen bırde
  • 27-10-2009, 21:24:20
    #3
    eklentileri etkinsizleştirip denermısın bırde...
  • 27-10-2009, 21:34:19
    #4
    O kısmı kaldırıp temayı yeniden yükledim sonra oradaki kodları eski haline getirdim düzeldi. İlginiz için teşekkürler.
  • 17-08-2014, 17:58:59
    #5
    Az önce karşılaştım böyle bir hatayla ; catchable fatal error: object of class wp_error could not be converted to string

    Çözümünü ise hatanın verdiği kaynakta şu kod yer almaktaydı;

    else {
    $cat = get_the_category(); $cat = $cat[0];
    $cats = get_category_parents($cat, TRUE, ' ' . $delimiter . ' ');
    if ($showCurrent == 0) $cats = preg_replace("#^(.+)\s$delimiter\s$#", "$1", $cats);
    echo $cats;
    if ($showCurrent == 1) echo $before . get_the_title() . $after;
    }


    Bunu sildim düzeldi