HTTP Error 500 on Network sites
-
Hi,
We’ve noticed that wp 2fa is causing 500 errors on two of our network setups. Front pages do not load (error 500 with no server side errors). When you try to load /wp-admin URL the same thing happens (error 500) but we get the following (long) error in the logs (also happens when we try to do plugin updates using wp-cli):
[06-Sep-2023 12:57:37 UTC] PHP Fatal error: Uncaught Error: Undefined constant “SECURE_AUTH_COOKIE” in /wordpress-versions/6.3.1/wp-includes/pluggable.php:929
Stack trace: 0 /wordpress-versions/6.3.1/wp-includes/pluggable.php(694): wp_parse_auth_cookie(false, ”) 1 /wordpress-versions/6.3.1/wp-includes/class-wp-hook.php(310): wp_validate_auth_cookie(false) 2 /wordpress-versions/6.3.1/wp-includes/plugin.php(205): WP_Hook->apply_filters(false, Array) 3 /wordpress-versions/6.3.1/wp-includes/user.php(3622): apply_filters(‘determine_curre…’, false) 4 /wordpress-versions/6.3.1/wp-includes/pluggable.php(70): _wp_get_current_user() 5 /dom35785/wp-content/plugins/wp-2fa/includes/classes/Admin/Helpers/class-user-helper.php(813): wp_get_current_user() 6 /dom35785/wp-content/plugins/wp-2fa/includes/classes/Admin/Helpers/class-user-helper.php(769): WP2FA\Admin\Helpers\User_Helper::set_user(NULL) 7 /dom35785/wp-content/plugins/wp-2fa/includes/classes/Admin/Controllers/class-settings.php(210): WP2FA\Admin\Helpers\User_Helper::get_user_object() 8 /dom35785/wp-content/plugins/wp-2fa/includes/classes/Admin/Controllers/class-methods.php(51): WP2FA\Admin\Controllers\Settings::get_role_or_default_setting(‘enable_email’, ‘current’) 9 /dom35785/wp-content/plugins/wp-2fa/includes/classes/Admin/class-user-notices.php(43): WP2FA\Admin\Controllers\Methods::get_available_2fa_methods() 10 /dom35785/wp-content/plugins/wp-2fa/includes/classes/class-wp2fa.php(212): WP2FA\Admin\User_Notices::init() 11 /dom35785/wp-content/plugins/wp-2fa/wp-2fa.php(89): WP2FA\WP2FA::init() 12 /wordpress-versions/6.3.1/wp-settings.php(407): include_once(‘/dom35785/wp-co…’) 13 /dom35785/wp-config.php(71): require_once(‘/wordpress-vers…’) 14 /dom35785/wp-load.php(50): require_once(‘/dom35785/wp-co…’) 15 /wordpress-versions/6.3.1/wp-login.php(12): require(‘/dom35785/wp-lo…’) 16 {main}thrown in /wordpress-versions/6.3.1/wp-includes/pluggable.php on line 929
[06-Sep-2023 12:57:37 UTC] PHP Fatal error: Uncaught Error: Undefined constant “SECURE_AUTH_COOKIE” in /wordpress-versions/6.3.1/wp-includes/pluggable.php:929
Stack trace: 0 /wordpress-versions/6.3.1/wp-includes/pluggable.php(694): wp_parse_auth_cookie(false, ”) 1 /wordpress-versions/6.3.1/wp-includes/class-wp-hook.php(310): wp_validate_auth_cookie(false) 2 /wordpress-versions/6.3.1/wp-includes/plugin.php(205): WP_Hook->apply_filters(false, Array) 3 /wordpress-versions/6.3.1/wp-includes/user.php(3622): apply_filters(‘determine_curre…’, false) 4 /wordpress-versions/6.3.1/wp-includes/pluggable.php(70): _wp_get_current_user() 5 /wordpress-versions/6.3.1/wp-includes/pluggable.php(1163): wp_get_current_user() 6 /wordpress-versions/6.3.1/wp-includes/functions.php(1492): is_user_logged_in() 7 /wordpress-versions/6.3.1/wp-includes/functions.php(1533): wp_get_nocache_headers() 8 /wordpress-versions/6.3.1/wp-includes/functions.php(3794): nocache_headers() 9 /wordpress-versions/6.3.1/wp-includes/functions.php(3740): _default_wp_die_handler(‘<div class=”wp-…’, ‘WordPress &rsaq…’, Array) 10 /wordpress-versions/6.3.1/wp-includes/class-wp-fatal-error-handler.php(239): wp_die(Object(WP_Error), ”, Array) 11 /wordpress-versions/6.3.1/wp-includes/class-wp-fatal-error-handler.php(154): WP_Fatal_Error_Handler->display_default_error_template(Array, false) 12 /wordpress-versions/6.3.1/wp-includes/class-wp-fatal-error-handler.php(58): WP_Fatal_Error_Handler->display_error_template(Array, false) 13 [internal function]: WP_Fatal_Error_Handler->handle() 14 {main}thrown in /wordpress-versions/6.3.1/wp-includes/pluggable.php on line 929
Any help with this would be welcomed. Both Networks work flawlessly when we disable wp 2fa plugin.
Thanks,
Many
- The topic ‘HTTP Error 500 on Network sites’ is closed to new replies.