WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] PHP error message before posts (7 posts)

  1. Jeff1701
    Member
    Posted 6 years ago #

    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

  2. Jeff1701
    Member
    Posted 6 years ago #

    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.

  3. whooami
    Member
    Posted 6 years ago #

    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

  4. Jeff1701
    Member
    Posted 6 years ago #

    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.

  5. whooami
    Member
    Posted 6 years ago #

    http://wordpress.org/search/array_key_exists%28%29?forums=1

    Im sure there are instructions in there :)

  6. Jeff1701
    Member
    Posted 6 years ago #

    I found a solution that works. Thanks!

  7. Kafkaesqui

    Posted 6 years ago #

    Jeff apparently means one found here:

    http://wordpress.org/support/topic/136343

Topic Closed

This topic has been closed to new replies.

About this Topic