WordPress.org

Ready to get started?Download WordPress

Forums

PHP Fatal error for query.php? (5 posts)

  1. raymondcc
    Member
    Posted 6 years ago #

    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?

  2. MichaelH
    Member
    Posted 6 years ago #

    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.

  3. raymondcc
    Member
    Posted 6 years ago #

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

    Will update on whether the error still exist.

    Thanks.

  4. raymondcc
    Member
    Posted 6 years ago #

    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

  5. MichaelH
    Member
    Posted 6 years ago #

    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.

Topic Closed

This topic has been closed to new replies.

About this Topic