Support » Fixing WordPress » PHP Fatal error for query.php?

  • After server migration, I see this message on my error_log file. I tried searching for solution but couldn’t find any.

    [19-Nov-2007 23:53:24] PHP Fatal error: Call to undefined function: get_userdata() in /home/xxxxx/public_html/blog/wp-includes/query.php on line 1500

    Any ideas what is causing this and suggestions on how to fix it?

Viewing 4 replies - 1 through 4 (of 4 total)
  • That function, get_userdata is defined in the file wp-includes/pluggable.php which suggests that at the least, you need to upload a new copy of that file.

    OK, I’ve reuploaded pluggable.php and also query.php.

    Will update on whether the error still exist.


    After reuploaded pluggable.php and query.php, I am occasionally getting this error.

    [21-Nov-2007 00:19:46] PHP Warning: Cannot modify header information – headers already sent by (output started at /home/xxxxx/public_html/blog/wp-includes/wp-db.php:160) in /home/xxxxx/public_html/blog/wp-includes/pluggable.php on line 391

    Then I’d consider downloading a pristine copy of the WordPress distibution (see DOWNLOAD link at top of this page) .

    Then as explained in Steps 7 and 8 of Upgrading WordPress Extended, I’d delete the files on your host, and reupload the WordPress files.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘PHP Fatal error for query.php?’ is closed to new replies.