Title: PHP error message before posts
Last modified: August 19, 2016

---

# PHP error message before posts

 *  Resolved [jeff1701](https://wordpress.org/support/users/jeff1701/)
 * (@jeff1701)
 * [18 years, 3 months ago](https://wordpress.org/support/topic/php-error-message-before-posts/)
 * Hello,
 * 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!
 * Jeff

Viewing 6 replies - 1 through 6 (of 6 total)

 *  Thread Starter [jeff1701](https://wordpress.org/support/users/jeff1701/)
 * (@jeff1701)
 * [18 years, 3 months ago](https://wordpress.org/support/topic/php-error-message-before-posts/#post-700661)
 * 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.
 *  [whooami](https://wordpress.org/support/users/whooami/)
 * (@whooami)
 * [18 years, 3 months ago](https://wordpress.org/support/topic/php-error-message-before-posts/#post-700662)
 * 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.
 * [http://wordpress.org/search/array_key_exists%28%29?forums=1](http://wordpress.org/search/array_key_exists%28%29?forums=1)
 *  Thread Starter [jeff1701](https://wordpress.org/support/users/jeff1701/)
 * (@jeff1701)
 * [18 years, 3 months ago](https://wordpress.org/support/topic/php-error-message-before-posts/#post-700664)
 * 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.
 *  [whooami](https://wordpress.org/support/users/whooami/)
 * (@whooami)
 * [18 years, 3 months ago](https://wordpress.org/support/topic/php-error-message-before-posts/#post-700665)
 * [http://wordpress.org/search/array_key_exists%28%29?forums=1](http://wordpress.org/search/array_key_exists%28%29?forums=1)
 * Im sure there are instructions in there 🙂
 *  Thread Starter [jeff1701](https://wordpress.org/support/users/jeff1701/)
 * (@jeff1701)
 * [18 years, 3 months ago](https://wordpress.org/support/topic/php-error-message-before-posts/#post-700668)
 * I found a solution that works. Thanks!
 *  [Kafkaesqui](https://wordpress.org/support/users/kafkaesqui/)
 * (@kafkaesqui)
 * [18 years, 3 months ago](https://wordpress.org/support/topic/php-error-message-before-posts/#post-700699)
 * Jeff apparently means one found here:
 * [http://wordpress.org/support/topic/136343](http://wordpress.org/support/topic/136343)

Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘PHP error message before posts’ is closed to new replies.

## Tags

 * [array](https://wordpress.org/support/topic-tag/array/)
 * [category](https://wordpress.org/support/topic-tag/category/)
 * [function](https://wordpress.org/support/topic-tag/function/)
 * [key](https://wordpress.org/support/topic-tag/key/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 6 replies
 * 3 participants
 * Last reply from: [Kafkaesqui](https://wordpress.org/support/users/kafkaesqui/)
 * Last activity: [18 years, 3 months ago](https://wordpress.org/support/topic/php-error-message-before-posts/#post-700699)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
