Fatal error in PHP logs
-
Hello,
Thanks for your work on this plugin. We are noticing the following fatal error in the PHP error logs using PHP 8 on the latest WordPress version 6.1.1:
PHP message: Warning: Attempt to read property "roles" on bool in /var/www/wp-content/plugins/password-policy-manager/app/policies/class-ppm-wp-options.php on line 405 [/wp-admin/admin-ajax.php] [wp-content/plugins/password-policy-manager/app/policies/class-ppm-wp-options.php:301 PPM_WP_Options->user_role_policy(), wp-content/plugins/password-policy-manager/app/class-ppm-wp.php:331 PPM_WP_Options->init(), wp-includes/class-wp-hook.php:308 PPM_WP->init(), wp-includes/class-wp-hook.php:332 WP_Hook->apply_filters(), wp-includes/plugin.php:517 WP_Hook->do_action(), wp-settings.php:617 do_action('init'), wp-config.php:53 require_once('wp-settings.php'), wp-load.php:50 require_once('wp-config.php'), wp-admin/admin-ajax.php:22 require_once('wp-load.php')] PHP message: PHP Fatal error: Uncaught TypeError: reset(): Argument #1 ($array) must be of type array, null given in /var/www/wp-content/plugins/password-policy-manager/app/policies/class-ppm-wp-options.php:406 Stack trace: #0 /var/www/wp-content/plugins/password-policy-manager/app/policies/class-ppm-wp-options.php(406): reset(NULL) #1 /var/www/wp-content/plugins/password-policy-manager/app/policies/class-ppm-wp-options.php(301): PPM_WP_Options->user_role_policy() #2 /var/www/wp-content/plugins/password-policy-manager/app/class-ppm-wp.php(331): PPM_WP_Options->init() #3 /var/www/wp-includes/class-wp-hook.php(308): PPM_WP->init('') #4 /var/www/wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters(NULL, Array) #5 /var/www/wp-includes/plugin.php(517): WP_Hook->do_action(Array) #6 /var/www/wp-settings.php(617): do_action('init') #7 /var/www/wp-config.php(53): require_once('/var/www/wp-set...') #8 /var/www/wp-load.php(50): require_once('/var/www/wp-con...') #9 /var/www/wp-admin/admin-ajax.php(22): require_once('/var/www/wp-loa.... PHP message: Fatal error: Uncaught TypeError: reset(): Argument #1 ($array) must be of type array, null given in /var/www/wp-content/plugins/password-policy-manager/app/policies/class-ppm-wp-options.php:406 Stack trace: #0 /var/www/wp-content/plugins/password-policy-manager/app/policies/class-ppm-wp-options.php(406): reset(NULL) #1 /var/www/wp-content/plugins/password-policy-manager/app/policies/class-ppm-wp-options.php(301): PPM_WP_Options->user_role_policy() #2 /var/www/wp-content/plugins/password-policy-manager/app/class-ppm-wp.php(331): PPM_WP_Options->init() #3 /var/www/wp-includes/class-wp-hook.php(308): PPM_WP->init('') #4 /var/www/wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters(NULL, Array) #5 /var/www/wp-includes/plugin.php(517): WP_Hook->do_action(Array) #6 /var/www/wp-settings.php(617): do_action('init') #7 /var/www/wp-config.php(53): require_once('/var/www/wp-set...') #8 /var/www/wp-load.php(50): require_once('/var/www/wp-con...') #9 /var/www/wp-admin/admin-ajax.php(22): require_once('/var/www/wp-loa...')
I’m not sure the steps to reproduce the issue, but I hope this helps. Thanks!
~James
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Fatal error in PHP logs’ is closed to new replies.