• Resolved nerdlogger

    (@nerdlogger)


    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

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

    (@robert681)

    Hello @nerdlogger

    Thank you for using our plugin. I am sorry to read about your issue.

    We will need more information to find the source of the problem. Can you please answer the below questions to help us find the source of the problem?

    1. What version of the plugin, WordPress and PHP are you running?
    2. When are you seeing such error? Is it during activation, or the plugin is activated successfully but when there are certain actions it crashes?
    3. It seems like you have multiple multisite networks and on the others the plugin is running without any issues. Do you know if there are any major / obvious differences between the networks on which the plugin is working well and those on which it isn’t ?

    Looking forward to hearing from you.

    Hi there, we are experiencing a similar issue on a multi-site network (subfolder setup i.e. website.com.au/site1, website.com.au/site2).

    When trying to access wp-admin of any website (after logging into the main network site), we are redirected to website.com.au/sitename/404.

    After reverting your plugin back to 2.4.2, from 2.5.0, the issue is resolved. It appears 2.5.0 is causing this issue.

    Thread Starter nerdlogger

    (@nerdlogger)

    Hi @robert681,

    Thank you for the quick response. After extensive testing over the weekend, it looks like WP 2FA is in the clear. The “real” culprit was “all-in-one-seo-pack” plugin that was present on both networks. Once it was removed the WP 2FA plugin can be enabled at network level without any issues (crossing my fingers).

    I’ve confirmed that with both plugs active at network level, all visits to wp-admin/wp-login.php and the front ends of any subsite will produce a error. If “wp 2fa” plugin is disabled, the interactive sessions (above) will start to work, but any “core” (in my case user password reset) operation via wp-cli command (from bash) will produce an errors from “all-in-one-seo-pack”. This was very useful and helped solve the problem.

    Once I reversed the situation (wp2fa: Network ON, all-in-one-seo-pack: REMOVED), everything works beautifully.

    I guess we need a new SEO plugin now ??

    Thanks again for the follow up. Hopefully @joshjcobb is in a similar boat :-).

    TTYL

    Many

    Plugin Contributor robertabela

    (@robert681)

    Thank you for the update Many. I am glad you found the source of the problem.

    Should you have any other questions, please do not hesitate to ask. Also, please considering rating our plugin and service. These ratings are really helpful.

    Have a great day.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘HTTP Error 500 on Network sites’ is closed to new replies.