• Resolved gamefreak

    (@gamefreak)


    Ok I only got the problem on the template “JustSimple” on the default template I dont get the problem. Maybe I get the problem because JustSimple template is for only earlier versions of wordpress?

    Thanks for any help.

    Here is the message I get:

    Warning: array_key_exists(): The first argument should be either a string or an integer in /hsphere/local/home/zeev4802/blogg.xn--frskringsjuristen-sqb35a.se/wp-includes/category-template.php on line 176

    and here is the site there the problem occurs

    https://blogg.f?rs?kringsjuristen.se

Viewing 2 replies - 1 through 2 (of 2 total)
  • Moderator Samuel Wood (Otto)

    (@otto42)

    www.remarpro.com Admin

    A number of themes use the “in_category” function in a way that can cause this warning. You found one of them. This has to do with what version of PHP you have, the theme, how it works, etc, etc. Combination of circumstances creates the warning, basically.

    This was just fixed yesterday in WordPress 2.5. So the problem will go away when you upgrade after it comes out. Soon.

    If you want to fix it in 2.3.3, edit the in_category function in category-template.php, and add this to the very top of the function, after the global declaration (line 172):
    if ( empty($category) ) return false;

    Thread Starter gamefreak

    (@gamefreak)

    Ok I gona try to fix it ??

    Ohh just one thing. Where can I find the php file? In
    which directory

    Nwm stupid me ?? didnt read the error message enough lol

    Thanks for the help

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Got a message that I dont understand on my site’ is closed to new replies.