Call to undefined function
-
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
- The topic ‘Call to undefined function’ is closed to new replies.