Fatal error on Activating LearnPress plugin
-
After installing this plugin I had a fatal error and could not login to my backend.
The error was:
Fatal error: Uncaught Error: Call to undefined function wp_get_current_user()……../wp-includes/capabilities.php on line 640
The site is experiencing technical difficulties. Please check your site admin email inbox for instructions.And the temporary workaround, to be able to access my backend, for it was to go into
/wp-includes/capabilities.php
to line 640
and replaced:$current_user = wp_get_current_user();
with
if(function_exists( ‘is_user_logged_in’ )) {
$current_user = wp_get_current_user();
}Please author to correct this error.
Thanks,
Davor
The topic ‘Fatal error on Activating LearnPress plugin’ is closed to new replies.