array_key_exists problem with wordpress installations

If you have recently upgraded your wordpress and you are getting the following errors:
Warning: array_key_exists() [function.array-key-exists]: The first argument should be either a string or an integer in /wp-includes/category-template.php on line 176

The simplest way is to open the page “category-template.php” in your wp-includes directory, go down to line 176, which should be
if(array_key_exists($category, $categories))
to
if(array_key_exists('$category', $categories))

This should solve all the problems.

Advertisements

One thought on “array_key_exists problem with wordpress installations

  1. Dear Amitji,
    namaskar,
    At first let me congratulate you on your blog.
    Yesterday I was watching your interview with Ms Barkha dutt, on the NDTV
    wherein you have taken objections to the Health Ministers advice to you and Shahrukh khan regarding smoking and drinking being shown in the films whethe it suits the situation or not)
    I sincerly feel you should take the first stepregarding the above cause
    1) Nobody will listen to Mr Ramdoss, because of so many factors, which
    you very well understand. In this context let me remind you of the miracleous escape you had from the jaws of death at bangalore.Pl note that the entire nation prayed for you.
    2) I do not understand your logic of reasoning for a good cause.Mr bachhan, I feel that GOD(SUPREME POWER) has chosen you for this noble cause.Ican vouch with my 20 years of sales experience that only AMITABH CAN DESTROY AMITABH. You are fortunately/unfortunately in the above position and your word will carry moral strength for the youth of today.
    3) In the industry, also GOD has been very graceful towards you and please let not go of this divine opportunity.I humbly request you to cement the great legacy so that we can say proudly that this gentleman made a difference to mother earth

    THANK YOU ,
    yours sincerly.

    RAJARAM. SHASTRI
    HYDERABAD
    05/05/2008

    Like

Comments are closed.