Fatal Error
-
I just tried activating your plugin on one of my sites, which gave me an Fatal Error:
Fatal error: Uncaught Error: Call to undefined function wp_get_current_user() in /srv/***/public/wp-includes/capabilities.php:539 Stack trace:
#0 /srv/***/public/wp-content/plugins/woocommerce/includes/wc-user-functions.php(317): current_user_can(‘administrator’)
#1 /srv/***/public/wp-includes/class-wp-hook.php(298): wc_modify_editable_roles(Array) #2 /srv/***/public/wp-includes/plugin.php(203): WP_Hook->apply_filters(Array, Array) #3 /srv/***/public/wp-admin/includes/user.php(241): apply_filters(‘editable_roles’, Array)
#4 /srv/***/public/wp-content/plugins/woorocks-magic-content/woorocks-magic-content.php(71): get_editable_roles()
#5 /srv/***/public/wp-content/plugins/woorocks-magic-content/woorocks-magic-content.php(95): get_wp_roles()
#6 /srv/***/public/wp-settings.php(303): include_once(‘/srv/users/serv…’)
#7 /srv/user in /srv/***/public/wp-includes/capabilities.php on line 539
- The topic ‘Fatal Error’ is closed to new replies.