Support » Fixing WordPress » PHP error message before posts

  • Resolved Jeff1701



    I am getting this error message before every post to my blog:

    Warning: array_key_exists() [function.array-key-exists]: The first argument should be either a string or an integer in /home/jlr1701/public_html/wp-includes/category-template.php on line 176

    Anyone know how to fix this? Thanks!


Viewing 6 replies - 1 through 6 (of 6 total)
  • Additional info: My current theme works fine. This error is occurring with a new theme that I would like to use, if that helps. Thanks.




    Stupid question, are you not able to isolate in the current theme where the error occurs??

    You say its before every post “to” your blog. Do you mean before every post that is displayed on your blog?

    If thats the case, its something in the loop thats occurring before the_content (my guess based on your vague info) , in which case you need to simply compare the theme you are trying to use with a theme that doesnt produce that error.

    Some themes havent been updated to be compatable with 2.3.x.. so you crack open the files and you make the changes.

    In reality, you havent provided enough info for much more of a suggestion, before a post is vague .. does a post include the meta info, or just the content of the post itself.. etc..

    I dont know.

    Lastly, and most importantly, this forum has a wonderful search feature, and very little hasnt already been covered. Its always a good idea to put error messages through the search.

    The theme producing the error is called Fire 1.0.

    Yes, every post that is displayed on my blog.

    Sorry my posts seem so vague. I am not a programmer, and I have no familiarity with PHP code. I’m sure I can make suggested changes to it though, with instructions.




    Im sure there are instructions in there 🙂

    I found a solution that works. Thanks!

    Jeff apparently means one found here:

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘PHP error message before posts’ is closed to new replies.