• 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

    (@macmanx)

    Try manually resetting your plugins (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, 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

    (@seanwalten)

    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

    (@macmanx)

    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.