Title: PHP errors
Last modified: January 13, 2022

---

# PHP errors

 *  Resolved [Seath](https://wordpress.org/support/users/seath/)
 * (@seath)
 * [4 years, 4 months ago](https://wordpress.org/support/topic/php-errors-260/)
 * 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](https://wordpress.org/support/users/robert681/)
 * (@robert681)
 * [4 years, 3 months ago](https://wordpress.org/support/topic/php-errors-260/#post-15260272)
 * Hello [@seath](https://wordpress.org/support/users/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](https://www.wpwhitesecurity.com/downloads/support/20220117_wp-2fa.zip)?
 * Can you please confirm to us the fix? Also, what version of WordPress and PHP
   are you running please?
 *  Thread Starter [Seath](https://wordpress.org/support/users/seath/)
 * (@seath)
 * [4 years, 3 months ago](https://wordpress.org/support/topic/php-errors-260/#post-15260298)
 * 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](https://wordpress.org/support/users/robert681/)
 * (@robert681)
 * [4 years, 3 months ago](https://wordpress.org/support/topic/php-errors-260/#post-15260524)
 * I am glad to read that the patch worked [@seath](https://wordpress.org/support/users/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)
 * [4 years, 3 months ago](https://wordpress.org/support/topic/php-errors-260/#post-15282691)
 * Hello [@robert681](https://wordpress.org/support/users/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](https://wordpress.org/support/users/robert681/)
 * (@robert681)
 * [4 years, 3 months ago](https://wordpress.org/support/topic/php-errors-260/#post-15283637)
 * Hello @mgomesborges
 * As per my answers in this thread, this issue was solved via a [patch](https://www.wpwhitesecurity.com/downloads/support/20220117_wp-2fa.zip).
   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.

 * ![](https://ps.w.org/wp-2fa/assets/icon-256x256.png?rev=2961533)
 * [WP 2FA - Two-factor authentication for WordPress](https://wordpress.org/plugins/wp-2fa/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-2fa/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-2fa/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-2fa/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-2fa/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-2fa/reviews/)

 * 5 replies
 * 3 participants
 * Last reply from: [robertabela](https://wordpress.org/support/users/robert681/)
 * Last activity: [4 years, 3 months ago](https://wordpress.org/support/topic/php-errors-260/#post-15283637)
 * Status: resolved