Title: PHP Fatal error for query.php?
Last modified: August 18, 2016

---

# PHP Fatal error for query.php?

 *  [raymondcc](https://wordpress.org/support/users/raymondcc/)
 * (@raymondcc)
 * [18 years, 6 months ago](https://wordpress.org/support/topic/php-fatal-error-for-queryphp/)
 * 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)

 *  [MichaelH](https://wordpress.org/support/users/michaelh/)
 * (@michaelh)
 * [18 years, 6 months ago](https://wordpress.org/support/topic/php-fatal-error-for-queryphp/#post-655973)
 * 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.
 *  Thread Starter [raymondcc](https://wordpress.org/support/users/raymondcc/)
 * (@raymondcc)
 * [18 years, 6 months ago](https://wordpress.org/support/topic/php-fatal-error-for-queryphp/#post-655990)
 * OK, I’ve reuploaded pluggable.php and also query.php.
 * Will update on whether the error still exist.
 * Thanks.
 *  Thread Starter [raymondcc](https://wordpress.org/support/users/raymondcc/)
 * (@raymondcc)
 * [18 years, 6 months ago](https://wordpress.org/support/topic/php-fatal-error-for-queryphp/#post-656184)
 * 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
 *  [MichaelH](https://wordpress.org/support/users/michaelh/)
 * (@michaelh)
 * [18 years, 6 months ago](https://wordpress.org/support/topic/php-fatal-error-for-queryphp/#post-656186)
 * 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](http://codex.wordpress.org/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.

## Tags

 * [fatal error](https://wordpress.org/support/topic-tag/fatal-error/)
 * [php](https://wordpress.org/support/topic-tag/php/)
 * [query.php](https://wordpress.org/support/topic-tag/query-php/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 4 replies
 * 2 participants
 * Last reply from: [MichaelH](https://wordpress.org/support/users/michaelh/)
 * Last activity: [18 years, 6 months ago](https://wordpress.org/support/topic/php-fatal-error-for-queryphp/#post-656186)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
