Fatal Error when test driving PHP 8.2
-
Is anyone else getting this error when test driving PHP8.2? Is this something that is being worked on currently? I am afraid I will have to deactivate this plugin so my sites don’t break when our server is upgraded to PHP8.2 at the end of the month.
PHP Fatal error: Uncaught TypeError: array_map(): Argument #2 ($array) must be of type array, string given in /nas/content/live/topixpharm/wp-content/plugins/members/inc/class-role.php:139#012Stack trace:#012#0 /nas/content/live/topixpharm/wp-content/plugins/members/inc/class-role.php(139): array_map(‘members_validat…’, ‘editor’)#012#1 /nas/content/live/topixpharm/wp-content/plugins/members/inc/functions-roles.php(93): Members\Role->__construct(‘internal-docume…’, Array)#012#2 /nas/content/live/topixpharm/wp-content/plugins/members/inc/functions-roles.php(47): members_register_role(‘internal-docume…’, Array)#012#3 /nas/content/live/topixpharm/wp-includes/class-wp-hook.php(310): members_register_default_roles(Object(WP_Roles))#012#4 /nas/content/live/topixpharm/wp-includes/class-wp-hook.php(334): WP_Hook->apply_filters(”, Array)#012#5 /nas/content/live/topixpharm/wp-includes/plugin.php(517): WP_Hook->do_action(Array)#012#6 /nas/content/live/topixpharm/wp-content/plugins/members/inc/functions-roles.php(27): do_action(‘members_registe…’, Object(WP_Roles))#012#7 /nas/content/live/topixpharm/wp-includes/class-wp-hook.php(310): members_register_roles(Object(WP_Roles))#012#8 /nas/content/live/topixpharm/wp-includes/class-wp-hook.php(334): WP_Hook->apply_filters(”, Array)#012#9 /nas/content/live/topixpharm/wp-includes/plugin.php(517): WP_Hook->do_action(Array)#012#10 /nas/content/live/topixpharm/wp-includes/class-wp-roles.php(303): do_action(‘wp_roles_init’, Object(WP_Roles))#012#11 /nas/content/live/topixpharm/wp-includes/class-wp-roles.php(332): WP_Roles->init_roles()#012#12 /nas/content/live/topixpharm/wp-includes/class-wp-roles.php(91): WP_Roles->for_site(NULL)#012#13 /nas/content/live/topixpharm/wp-includes/capabilities.php(1001): WP_Roles->__construct()#012#14 /nas/content/live/topixpharm/wp-includes/class-wp-user.php(509): wp_roles()#012#15 /nas/content/live/topixpharm/wp-includes/class-wp-user.php(876): WP_User->get_role_caps()#012#16 /nas/content/live/topixpharm/wp-includes/class-wp-user.php(178): WP_User->for_site(”)#012#17 /nas/content/live/topixpharm/wp-includes/pluggable.php(109): WP_User->init(Object(stdClass))#012#18 /nas/content/live/topixpharm/wp-includes/pluggable.php(743): get_user_by(‘login’, ‘stephen’)#012#19 /nas/content/live/topixpharm/wp-includes/class-wp-hook.php(310): wp_validate_auth_cookie(false)#012#20 /nas/content/live/topixpharm/wp-includes/plugin.php(205): WP_Hook->apply_filters(false, Array)#012#21 /nas/content/live/topixpharm/wp-includes/user.php(3622): apply_filters(‘determine_curre…’, false)#012#22 /nas/content/live/topixpharm/wp-includes/pluggable.php(70): _wp_get_current_user()#012#23 /nas/content/live/topixpharm/wp-includes/l10n.php(98): wp_get_current_user()#012#24 /nas/content/live/topixpharm/wp-includes/l10n.php(152): get_user_locale()#012#25 /nas/content/live/topixpharm/wp-includes/l10n.php(894): determine_locale()#012#26 /nas/content/live/topixpharm/wp-includes/class-wp-fatal-error-handler.php(47): load_default_textdomain()#012#27 [internal function]: WP_Fatal_Error_Handler->handle()#012#28 {main}#012 thrown in /nas/content/live/topixpharm/wp-content/plugins/members/inc/class-role.php on line 139
The page I need help with: [log in to see the link]
- The topic ‘Fatal Error when test driving PHP 8.2’ is closed to new replies.