• Resolved Seath

    (@seath)


    Hello your new update (2.1.0) throwing a PHP error.

    Fatal error: Uncaught Error: Undefined constant "WP2FA\Admin\Views\php" in /home/homesnorth/public_html/wp-content/plugins/wp-2fa/includes/classes/Admin/Views/FirstTimeWizardSteps.php:94
    
    Stack Trace
    1.	
    WP2FA\Admin\Views\FirstTimeWizardSteps::select_method(false)
    /home/homesnorth/public_html/wp-content/plugins/wp-2fa/includes/classes/Admin/SettingsPages/class-settings-page-policies.php:601
    2.	
    WP2FA\Admin\SettingsPages\Settings_Page_Policies->select_method_setting()
    /home/homesnorth/public_html/wp-content/plugins/wp-2fa/includes/classes/Admin/SettingsPages/class-settings-page-policies.php:124
    3.	
    WP2FA\Admin\SettingsPages\Settings_Page_Policies->render('')
    /home/homesnorth/public_html/wp-includes/class-wp-hook.php:303
    4.	
    WP_Hook->apply_filters('', Array)
    /home/homesnorth/public_html/wp-includes/class-wp-hook.php:327
    5.	
    WP_Hook->do_action(Array)
    /home/homesnorth/public_html/wp-includes/plugin.php:470
    6.	
    do_action('toplevel_page_w...')
    /home/homesnorth/public_html/wp-admin/admin.php:259
    7.	
    {main}
    thrown in /home/homesnorth/public_html/wp-content/plugins/wp-2fa/includes/classes/Admin/Views/FirstTimeWizardSteps.php on line 94
Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Contributor robertabela

    (@robert681)

    Hello @seath

    Thank you for using our plugin.

    I am sorry to read about your issue. It is strange that you are encountering this error.

    We have prepared a fix for you. Can you please download and install this version of the plugin?

    Can you please confirm to us the fix? Also, what version of WordPress and PHP are you running please?

    Thread Starter Seath

    (@seath)

    Hello,

    The WordPress is Version 5.8.3
    PHP 8

    And it did fix the problem.
    No error and its working properly.

    Plugin Contributor robertabela

    (@robert681)

    I am glad to read that the patch worked @seath

    Should you have any other questions, please do not hesitate to ask.

    Thank you again for using our plugin. Have a great day.

    Anonymous User 20213223

    (@anonymized-20213223)

    Hello @robert681, I have the same problem:

    WordPress version 5.8.3
    Current theme: Twenty Nineteen (version 2.1)
    Current plugin: WP2FA (version 2.1.0)
    PHP version 8.1.0

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

    (@robert681)

    Hello @mgomesborges

    As per my answers in this thread, this issue was solved via a patch. Please install this update.

    If the problem persists, please open your own thread since your problem might be different than the one reported in this thread.

    Thank you for using our plugin.

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