Fatal error when accessing posts (3 posts)

  1. f650gstx
    Posted 5 years ago #

    I host my blogs on hostmonster and just upgraded to version 3.1-RC3. I can log into my blog through WordPress, but when I try to access the posts I get the following error:

    I am very new to WordPress and don't have much experience with PHP. I was able to fix a couple errors in the PHP code after the upgrade, but I researched and can't find a solution to the following problem.

    Fatal error: Call to undefined function: array_intersect_key() in /public_html/blog/wp-admin/includes/class-wp-list-table.php on line 274

    These are the lines of code it references:
    [Code moderated as per the Forum Rules. Please use the pastebin]

    If anyone can tell me how to fix the code I would appreciate it.

  2. Hiranthi
    Posted 5 years ago #

    It means the function array_intersect_key is being used, but it doesn't exist in your environment.

    Since this function was introduced in PHP 5.1.0 this means that you're running a version prior to that.

  3. Andrew Nacin
    Lead Developer
    Posted 5 years ago #

    Yeah, my bad. We're still PHP4 compatible, so we removed the function usage. You won't have any problems anymore.

    *However*, you're going to have some serious problems come WordPress 3.2, as we're moving to PHP 5.2. Please contact your host -- there's likely a switch you can hit to move yourself to PHP5, and if not, please find a better host. PHP 4 was end-of-life (no updates, even for security) more than two years ago.

Topic Closed

This topic has been closed to new replies.

About this Topic