Title: error message
Last modified: August 30, 2016

---

# error message

 *  [seanwalten](https://wordpress.org/support/users/seanwalten/)
 * (@seanwalten)
 * [10 years, 5 months ago](https://wordpress.org/support/topic/error-message-479/)
 * I keep getting this error while I work on my site and it stays this way for about
   30 minutes before it let’s me back in:
 * `Fatal error: Cannot call overloaded function for non-object in /home/justbaskets/
   public_html/wp-includes/user.php on line 339`
 * I have no idea what this means. Anyone have a solution?

Viewing 3 replies - 1 through 3 (of 3 total)

 *  Moderator [James Huff](https://wordpress.org/support/users/macmanx/)
 * (@macmanx)
 * [10 years, 5 months ago](https://wordpress.org/support/topic/error-message-479/#post-6816984)
 * Try [manually resetting your plugins](https://codex.wordpress.org/FAQ_Troubleshooting#How_to_deactivate_all_plugins_when_not_able_to_access_the_administrative_menus.3F)(
   no Dashboard access required). If that resolves the issue, reactivate each one
   individually until you find the cause.
 * If that does not resolve the issue, access your server via [FTP or SFTP](https://codex.wordpress.org/FTP_Clients),
   navigate to `/wp-content/themes/` and rename the directory of your currently 
   active theme. This will force the default theme to activate and hopefully rule-
   out a theme-specific issue (theme functions can interfere like plugins).
 *  Thread Starter [seanwalten](https://wordpress.org/support/users/seanwalten/)
 * (@seanwalten)
 * [10 years, 5 months ago](https://wordpress.org/support/topic/error-message-479/#post-6817221)
 * Hi again,
 * I am still getting this message and I’m even using a theme straight up. Not a
   child theme. I am getting the error on a different line of code, but the same
   user php file. My theme is Divi and this is the affected code and the offending
   error:
 * `Fatal error: Cannot call overloaded function for non-object in /home/jazzy4k/
   public_html/wp-includes/user.php on line 354`
 *     ```
       function get_current_user_id() {
       	if ( ! function_exists( 'wp_get_current_user' ) )
       		return 0;
       	$user = wp_get_current_user();<--this is line 354
       	return ( isset( $user->ID ) ? (int) $user->ID : 0 );
       }
       ```
   
 * The error message locks me out for up to 30 minutes at a time and is random.
 * AS this has happened in two different themes and a child theme, I’m concerned
   as to what the error is telling me? It doesn’t seem to theme specific.
 *  Moderator [James Huff](https://wordpress.org/support/users/macmanx/)
 * (@macmanx)
 * [10 years, 5 months ago](https://wordpress.org/support/topic/error-message-479/#post-6817222)
 * Did you try the things I left two weeks ago to isolate exactly what is causing
   the issue?

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘error message’ is closed to new replies.

## Tags

 * [fatal error](https://wordpress.org/support/topic-tag/fatal-error/)
 * [locked out](https://wordpress.org/support/topic-tag/locked-out/)
 * [user](https://wordpress.org/support/topic-tag/user/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 3 replies
 * 2 participants
 * Last reply from: [James Huff](https://wordpress.org/support/users/macmanx/)
 * Last activity: [10 years, 5 months ago](https://wordpress.org/support/topic/error-message-479/#post-6817222)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
