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).
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.
Did you try the things I left two weeks ago to isolate exactly what is causing the issue?