• Testing this plugin on a site with the User Switching plugin installed throws the following error when visiting a link with the autologin enabled:

    2024/02/18 06:14:04 [error] 39262#39262: *32635 FastCGI sent in stderr: "PHP message: PHP Fatal error: Uncaught Error: Undefined constant "USER_SWITCHING_SECURE_COOKIE" in /www/public/wp-content/plugins/user-switching/user-switching.php:1356
    Stack trace:
    #0 /www/public/wp-content/plugins/user-switching/user-switching.php(1291): user_switching_get_auth_cookie()
    #1 /www/public/wp-includes/class-wp-hook.php(326): user_switching_clear_olduser_cookie('testclient@spru...')
    #2 /www/public/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters(NULL, Array)
    #3 /www/public/wp-includes/plugin.php(517): WP_Hook->do_action(Array)
    #4 /www/public/wp-content/plugins/bh-wp-autologin-urls/src/wp-includes/class-login.php(166): do_action('wp_login', 'testclient@spru...', Object(WP_User))
    #5 /www/public/wp-includes/class-wp-hook.php(324): BrianHenryIE\WP_Autologin_URLs\WP_Includes\Login->process(155)
    ....

    Refreshing the page once after receiving the error will then load the page with the user logged in.

    [removed earlier temp patch that didn’t work]

    • This topic was modified 1 year, 1 month ago by sprucelydesigned. Reason: removed earlier temp patch that didn't work
  • The topic ‘Conflict with User Switching plugin’ is closed to new replies.