Title: Call to undefined function
Last modified: June 18, 2020

---

# Call to undefined function

 *  [ingernesto](https://wordpress.org/support/users/ingernesto/)
 * (@ingernesto)
 * [5 years, 11 months ago](https://wordpress.org/support/topic/call-to-undefined-function-33/)
 * WP 5.4.2; PHP 7.2.31; MySql 5.7; LearnPress 3.2.7.2
    After activating the plugin
   it shows me the following error and does not allow me to access the administrator
   panel, when I delete it manually everything returns to normal, the same happens
   if I try to activate Learnpress again:
 * Fatal error: Uncaught Error: Call to undefined function wp_get_current_user()
   in C:\laragon\www\buddy\wp-includes\capabilities.php:660 Stack trace: #0 C:\laragon\
   www\buddy\wp-content\plugins\learnpress\inc\admin\lp-admin-actions.php(19): current_user_can(‘
   manage_options’) #1 C:\laragon\www\buddy\wp-includes\class-wp-hook.php(287): 
   _learn_press_set_user_items(Object(WP_Query)) #2 C:\laragon\www\buddy\wp-includes\
   class-wp-hook.php(311): WP_Hook->apply_filters(NULL, Array) #3 C:\laragon\www\
   buddy\wp-includes\plugin.php(544): WP_Hook->do_action(Array) #4 C:\laragon\www\
   buddy\wp-includes\class-wp-query.php(1768): do_action_ref_array(‘pre_get_posts’,
   Array) #5 C:\laragon\www\buddy\wp-includes\class-wp-query.php(3432): WP_Query-
   >get_posts() #6 C:\laragon\www\buddy\wp-includes\post.php(2050): WP_Query->query(
   Array) #7 C:\laragon\www\buddy\wp-content\plugins\modern-events-calendar-lite\
   app\features\updateTable.php(45): get_posts(Array) #8 C:\laragon\www\buddy\wp-
   content\plugins\modern-events-calendar-lite\app\libraries\factory.php in C:\laragon\
   www\buddy\wp-includes\capabilities.php on line 660

Viewing 1 replies (of 1 total)

 *  Plugin Author [ThimPress](https://wordpress.org/support/users/thimpress/)
 * (@thimpress)
 * [5 years, 10 months ago](https://wordpress.org/support/topic/call-to-undefined-function-33/#post-13056509)
 * Hi
 * Please create a topic on our forums, our development team will check that for
   you

Viewing 1 replies (of 1 total)

The topic ‘Call to undefined function’ 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

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

 * 1 reply
 * 2 participants
 * Last reply from: [ThimPress](https://wordpress.org/support/users/thimpress/)
 * Last activity: [5 years, 10 months ago](https://wordpress.org/support/topic/call-to-undefined-function-33/#post-13056509)
 * Status: not a support question