• I have a site at https://www.victoriangothic.org that I haven’t touched in months. Recently I noticed that the site fails to load at all, giving the following error:

    Fatal error: Call to undefined function wp_get_current_user() in /home/badclams/victoriangothic.org/wp-includes/capabilities.php on line 1281

    The segment of code referenced is as follows, line 1281 being the second below:

    function current_user_can( $capability ) {
    $current_user = wp_get_current_user();

    if ( empty( $current_user ) )
    return false;

    $args = array_slice( func_get_args(), 1 );
    $args = array_merge( array( $capability ), $args );

    return call_user_func_array( array( $current_user, ‘has_cap’ ), $args );
    }

    I’m at a loss as to what might have caused this, except to note that the theme I was using had some sort of bug that was preventing the header image from being displayed. I can’t access wp-login.php (it returns the same message.)

    I would be very grateful if anyone has suggestions that would lead me toward getting the site online again. I’m not sure where to begin, or why it should suddenly stop working when no changes have been made.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Using Cpanel or FTP of your site rename the plugin folder
    Plugins-> Plugins_old and please check again after doing this.

    I think somehow Plugin has messup with fatal error.
    The issue here is as follows:

    pluggable.php doesn’t get loaded until after all plugins are loaded. This cripples a lot of functions that then rely on, directly or indirectly, wp_get_current_user(), among others.

    Thread Starter Haystack_Madness

    (@haystack_madness)

    Thanks so much–the site displays now. The plugins are all broken, of course, but it’s online.

    Should I create a new Plugins folder and reinstall them?

    Should I create a new Plugins folder and reinstall them?

    No you just undo the rename of plugin folder (From plugins_old to plugins) and Go to admin dashboard ->Plugins and activate one by one to find which plugin is mess around with fatal error.
    Try to find and remove or update that plugin.
    That’s all.
    Let me know if it all works fine.

    Thanks.
    vicky

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Strange Error Mysteriously Kills Site’ is closed to new replies.