Strange Error Mysteriously Kills Site
-
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.
- The topic ‘Strange Error Mysteriously Kills Site’ is closed to new replies.