opencredit / badgeos

BadgeOS is a plugin to WordPress that allows you to easily create badges and set up the steps and achievements users take to earn them. Badges are Mozilla OBI compatible and sharable via Credly.
http://www.badgeos.org
GNU Affero General Public License v3.0
93 stars 64 forks source link

Got some fatal error for badgeos-group-management-add-on #623

Open RocketDesigner opened 6 years ago

RocketDesigner commented 6 years ago

Fatal Error when activating BadgeOS Group Mangement add-on.

Steps to Reproduce

  1. Activating BadgeOS-Group-Management-Add-On

Actual result: Fatal error: Uncaught Error: Call to undefined function get_current_screen() in /home/startupn/public_html/wp-content/plugins/BadgeOS-Group-Management-Add-On-master/includes/badgeos-users.php:227 Stack trace: #0 /home/startupn/public_html/wp-includes/class-wp-hook.php(286): badgeos_schools_control_user_roles(Array) #1 /home/startupn/public_html/wp-includes/plugin.php(203): WP_Hook->apply_filters(Array, Array) #2 /home/startupn/public_html/wp-admin/includes/user.php(242): apply_filters('editable_roles', Array) #3 /home/startupn/public_html/wp-content/plugins/js_composer/include/classes/core/access/class-vc-current-user-access-controller.php(37): get_editable_roles() #4 /home/startupn/public_html/wp-content/plugins/js_composer/include/classes/core/access/class-vc-role-access-controller.php(92): Vc_Current_User_Access_Controller->getRole() #5 /home/startupn/public_html/wp-content/plugins/js_composer/include/autoload/vc-pages/page-design-options.php(24): Vc_Role_Access_Controller->can('vc-color-tab') #6 /home/startupn/public_ in /home/startupn/public_html/wp-content/plugins/BadgeOS-Group-Management-Add-On-master/includes/badgeos-users.php on line 227

Product Versions