Title: Fatal error on Activating LearnPress plugin
Last modified: November 13, 2019

---

# Fatal error on Activating LearnPress plugin

 *  [dageci](https://wordpress.org/support/users/dageci/)
 * (@dageci)
 * [6 years, 6 months ago](https://wordpress.org/support/topic/fatal-error-on-activating-learnpress-plugin-2/)
 * 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

Viewing 2 replies - 1 through 2 (of 2 total)

 *  [hadam](https://wordpress.org/support/users/hadam3003/)
 * (@hadam3003)
 * [6 years, 6 months ago](https://wordpress.org/support/topic/fatal-error-on-activating-learnpress-plugin-2/#post-12130101)
 * Hi dageci,
 * Thank for the report.
 * We will check it and fix it in the next update.
 *  [coolchemone](https://wordpress.org/support/users/coolchemone/)
 * (@coolchemone)
 * [6 years, 5 months ago](https://wordpress.org/support/topic/fatal-error-on-activating-learnpress-plugin-2/#post-12154311)
 * Hollo I have same error in one of my pages (I use LP in two sites).
 * In one of them, I´m unable to access backend because of LP.
    My hosting send 
   me server logs with a fatal error because of LP

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Fatal error on Activating LearnPress plugin’ is closed to new replies.

 * ![](https://ps.w.org/learnpress/assets/icon-256x256.gif?rev=3254420)
 * [LearnPress - WordPress LMS Plugin for Create and Sell Online Courses](https://wordpress.org/plugins/learnpress/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/learnpress/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/learnpress/)
 * [Active Topics](https://wordpress.org/support/plugin/learnpress/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/learnpress/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/learnpress/reviews/)

## Tags

 * [fatal error](https://wordpress.org/support/topic-tag/fatal-error/)

 * 2 replies
 * 3 participants
 * Last reply from: [coolchemone](https://wordpress.org/support/users/coolchemone/)
 * Last activity: [6 years, 5 months ago](https://wordpress.org/support/topic/fatal-error-on-activating-learnpress-plugin-2/#post-12154311)
 * Status: not a support question