• 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.

Viewing 2 replies - 1 through 2 (of 2 total)
  • 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.

    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.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Fatal error when accessing posts’ is closed to new replies.