WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] 2.5 upgrade error - category-template.php (8 posts)

  1. ticogrande
    Member
    Posted 6 years ago #

    Just upgraded to 2.5. Nice BTW but, I am receiving this error at the top of each post:

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

    This would seem to suggest a coding error, but I am not a PHP guru.

    While this appears at the top of each post, clicking on that post displays properly and all else seems to be working fine.

    Ideas? Assistance?

    See Site http://www.hisfault.com

  2. MichaelH
    Member
    Posted 6 years ago #

    Version 2.5 has not been released so you will need to provide more detail info about the actual version your are using and when and where you downloaded that version.

  3. ticogrande
    Member
    Posted 6 years ago #

    Hi Michael

    The version is 2.5rc1

    I downloaded it here:

    http://wordpress.org/development/2008/03/25-sneak-peek/

    Note this link appears in the dashboard of all versions, so I expect I will not be the only one to install, especially as it states on that page:

    "The software is basically done and stable, and could be released today, but we’d like to incorporate feedback from a wider audience before making it available to the general public. After a few days of your feedback we’ll set a final release date. Personally, I can’t wait."

    I felt comfortable downloading it and installing. This is one of two blogs, and this one is the far less active, so I decided to give it a shot. This is not a crisis as all appears to work just fine except for that warning error in front of each post.

    I know there are a lot of coding gurus on Support and probably some of the designers as well who might have an idea.

    Any assistance would be appreciated.

    Using PHP 5.xxx

  4. Samuel Wood (Otto)
    Tech Ninja
    Posted 6 years ago #

    That error suggests that your theme has a call to in_category somewhere which is incorrect in some way. Find the call to in_category in your theme, post it, and we'll tell you what's wrong with it.

    Better yet, once you find it, post the whole file from your theme here: http://wordpress.pastebin.ca and then give us that link. We'll be able to tell what you're doing wrong.

  5. ticogrande
    Member
    Posted 6 years ago #

    /wp-content/themes/theme_name In Main Index Template ; index.php (main idex page for that theme, there is:

    http://wordpress.pastebin.ca/955613

    Thanks!

  6. Samuel Wood (Otto)
    Tech Ninja
    Posted 6 years ago #

    This code:

    $AsideId = get_settings('greenflower_asideid');
    ...
    <?php if ( in_category($AsideId)

    Suggests that your theme (Green Flower, perhaps?) has some kind of special setting in the menus for "asides". If you don't have that set to something, you'll get this sort of error.

  7. MichaelH
    Member
    Posted 6 years ago #

    See Ryan Boren's comments to this question on wp-testers:

    http://comox.textdrive.com/pipermail/wp-testers/2008-March/007194.html

  8. ticogrande
    Member
    Posted 6 years ago #

    Situation resolved. Thanks to all who set me in the correct direction.

Topic Closed

This topic has been closed to new replies.

About this Topic