• Resolved jperksmower

    (@jperksmower)


    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)
  • sohamwp

    (@sohamwp)

    Hi?@jperksmower,

    Thank you for reaching out to us.

    We have checked this issue on our side and we were not able to replicate it.
    It might be a site-specific issue so could you please reach out to us through our support form or by sending an email to [email protected]?so that we can look into this and make it work for you?

    Thanks & Regards,
    miniOrange team

    sohamwp

    (@sohamwp)

    Hi @jperksmower ,

    It has been over a day since I replied to this issue you are facing.
    We have constantly been testing for this but have not come across it.
    Therefore, I am marking this issue as resolved.

    Feel free to reach out to us through our support form or by sending an email to [email protected] if you are still facing this issue.

    We also offer premium password security plans in our password policy manager plugin with role based and user based features like enforce strong password, enforce password reset, one click password reset, password history manager and many more to ensure secure passwords.

    You can reach out to us through the above for the same.

    Thanks & Regards,
    miniOrange Team

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Fatal error in PHP logs’ is closed to new replies.