- Katılım
- 27 Temmuz 2012
- Mesajlar
- 197
- Reaction score
- 0
Arkadaşlar wordpress'in orjinal formunda dahi çözümü bulamadım. Sorun şu. bazı url'lerimde şu hata çıkıyor;
Catchable fatal error: Object of class WP_Error could not be converted to string in /home/migmedya/public_html/wp-content/themes/TEMAM/functions-ek.php on line 68
68. satırım ise şöyle;
Nasıl çözebilirim arkadaşlar acil lütfen?
Catchable fatal error: Object of class WP_Error could not be converted to string in /home/migmedya/public_html/wp-content/themes/TEMAM/functions-ek.php on line 68
68. satırım ise şöyle;
PHP:
else {
$cat = get_the_category(); $cat = $cat[0];
$cats = get_category_parents($cat, TRUE, $delimiter);
if ($showCurrent == 0) $cats = preg_replace("#^(.+)$delimiter$#", "$1", $cats);
$cats = str_replace('<a', $linkBefore . '<a' . $linkAttr, $cats);
$cats = str_replace('</a>', '</a>' . $linkAfter, $cats);
echo $cats;
if ($showCurrent == 1) echo $before . get_the_title() . $after;
}
Nasıl çözebilirim arkadaşlar acil lütfen?