07 Feb
Warning: array_key_exists() [function.array-key-exists]: The first argument should be either a string or an integer in /your-sitepath/wp-includes/category-template.php on line 176
This problems stems from line 176 as stated above – some people have said that updating their wordpress theme worked, however, a simple change to line 176 seems to work perfectly.
Change line 176 from:
if(array_key_exists($category, $categories))
To
if(array_key_exists('$category', $categories))
Don’t see the difference? Just add single quotes around the first $category variable. Make sure they are not the curly single quotes.
4 Responses
guts
February 9th, 2008 at 4:38 pm
1thanks a lot !!
Henrik N
February 12th, 2008 at 7:47 am
2Thanks!
Bätschman on Tour - www.Baetschman.de » Blog Archive » Wordpress Upgrate 2.2 auf 2.3.3
February 15th, 2008 at 6:10 am
3[...] alle die das gleich Problem habe gibt es im WordPress-Forum die Lösung:[Wordpress-Forum!] [zweiter Lösungsansatz siehe hier! - nicht von mir [...]
RaiulBaztepo
March 28th, 2009 at 4:26 pm
4Hello!
Very Interesting post! Thank you for such interesting resource!
PS: Sorry for my bad english, I’v just started to learn this language
See you!
Your, Raiul Baztepo
RSS feed for comments on this post · TrackBack URI
Leave a reply
Subscribe
Pages
i.nconspicuo.us friends
Meta
Buy From Amazon
Sponsored Posts
Categories
Archives
Recent Entries
Recent Comments
Most Commented