• Resolved nocabt

    (@nocabt)


    Hi there, when we enable PHP 8 on WP Engine server we get the following fatal error on the “2FA Policies Page”

    An error of type E_ERROR was caused in line 94 of the file /path/wp-content/plugins/wp-2fa/includes/classes/Admin/Views/FirstTimeWizardSteps.php. Error message: Uncaught Error: Undefined constant "WP2FA\Admin\Views\php" in /path/wp-content/plugins/wp-2fa/includes/classes/Admin/Views/FirstTimeWizardSteps.php:94
    Stack trace:
    #0 /path/wp-content/plugins/wp-2fa/includes/classes/Admin/SettingsPages/class-settings-page-policies.php(601): WP2FA\Admin\Views\FirstTimeWizardSteps::select_method(false)
    #1 /path/wp-content/plugins/wp-2fa/includes/classes/Admin/SettingsPages/class-settings-page-policies.php(124): WP2FA\Admin\SettingsPages\Settings_Page_Policies->select_method_setting()
    #2 /path/wp-includes/class-wp-hook.php(307): WP2FA\Admin\SettingsPages\Settings_Page_Policies->render('')
    #3 /path/wp-includes/class-wp-hook.php(331): WP_Hook->apply_filters('', Array)
    #4 /path/wp-includes/plugin.php(474): WP_Hook->do_action(Array)
    #5 /path/wp-admin/admin.php(259): do_action('toplevel_page_w...')
    #6 {main}

    Reverting to PHP 7.4 fixes it.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Contributor robertabela

    (@robert681)

    Hello @nocabt

    Thank you very much for trying our plugin.

    We are aware of this issue. We will be releasing update 2.2.0 later on this week in which this issue is addressed. Please install that version once we release it and you can go back to PHP 8.

    Thank you for the support and sorry for the inconvenience. Should there be anything else we can assist you with, please do not hesitate to ask.

    Have a great day.

    Thread Starter nocabt

    (@nocabt)

    Thanks @robert681 ! No apologies needed, thanks for the great plugin.

    Plugin Contributor robertabela

    (@robert681)

    You’re welcome @nocabt

    Today we have just released update 2.2.0 of this plugin which is fully compatible with PHP 8. Please let us know if there is anything else we can help you with.

    Have a great day.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘PHP 8 Compatibility’ is closed to new replies.