Title: Fatal error in user.php
Last modified: August 24, 2016

---

# Fatal error in user.php

 *  [niclewis](https://wordpress.org/support/users/niclewis/)
 * (@niclewis)
 * [11 years ago](https://wordpress.org/support/topic/fatal-error-in-userphp/)
 * I’m getting this error on the “update” page and on the “all users” page,can’t
   access either.
    I think it’s been there for some time, but the rest of the site
   functions fine, I just didn’t notice it until I tried to change one of the users
   status.
 * Fatal error: Call to undefined method wpdb::esc_like() in /home/kcmjo925/public_html/
   wp-includes/user.php on line 1095
 * I compared the user.php file with a fresh version, and they are different. I 
   replaced it, and that caused a different error code in another php file.
 * Should I just replace the entire folder (wp-includes)? Or should I replace more?
   Is it safe to do without loosing anything?

Viewing 1 replies (of 1 total)

 *  Moderator [Marius L. J.](https://wordpress.org/support/users/clorith/)
 * (@clorith)
 * [11 years ago](https://wordpress.org/support/topic/fatal-error-in-userphp/#post-6101825)
 * Hi,
 * It sounds like you have an incomplete setup there.
 * What I would do is [download the latest version](https://wordpress.org/latest.zip)
   from wordpress.org and upload it overwriting any existing files it finds.
 * You will not loose any content, your posts, plugins and themes will all be kept
   as they are.

Viewing 1 replies (of 1 total)

The topic ‘Fatal error in user.php’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 1 reply
 * 2 participants
 * Last reply from: [Marius L. J.](https://wordpress.org/support/users/clorith/)
 * Last activity: [11 years ago](https://wordpress.org/support/topic/fatal-error-in-userphp/#post-6101825)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
