Kategori: Bilgisayar
30 Haz 2009
Wordpress’in son sürümü 2.8 ile birlikte eklenti ve tema sorunlar
Kategori: Bilgisayar
30 Haz 2009
Wordpress’in son sürümü 2.8 ile birlikte eklenti ve tema sorunları da yavaş yavaş çıkmaya başladı. Bu problemlerden birisini Option Theme ile yaşadım. Hata şu şekilde beliriyor:
Fatal error: Cannot use object of type WP_Error as array
İnternette araştırdığımda direk olarak sorunun çözümüne karşı yazılmış bir şey yoktu, ben de burada çözümü belirteyim dedim.
option/app/options.php dosyasının içindeki 9. satırı bulup şu değişikliği yapmamız gerekiyor:
$all_cats = get_all_category_ids();
yerine
$all_cats = (array)get_all_category_ids();
satırı eklenmeli. Bu değişiliğin ardından problem çözülüyor ve tema çalışıyor.
Some errors occurs with the last Wordpress version 2.8. I encountered one of that problems which is Option Theme problem. That was shown like this:
Fatal error: Cannot use object of type WP_Error as array
I googled that but it’s not satisfied me, there wasn’t a good post on the internet or i couldnt find i dont know. So i decided to write it down here, my page. And here we go:
We have to find option/app/options.php file and 9. line, change:
$all_cats = get_all_category_ids();
with this;
$all_cats = (array)get_all_category_ids();
After that changing probably your error gonna go. If there will be any problem you send comment and let me know this.
Son Yorumlar