• Resolved jkvgo

    (@jkvgo)


    Hi,

    We’ve recently upgraded out wordpress site to 5.1.1 and we’ve started having issues with wp_logout() throwing us a 302 http response with no errors/warnings.

    We’ve narrowed it down to do_action(‘wp_logout’) causing the error and after some more troubleshooting we’ve seen that the Trusona plugin is adding some hooks/functions to the wp_logout action. After temporarily deactivating Trusona the issue has been resolved.

    So my question is, is there any new functionality with Trusona that triggers a 302 redirect starting from WordPress 5.1.1?

    Wordpress: 5.1.1
    PHP: 7.2.16
    Trusona: 1.4.5

    Any help will be appreciated as we still plan on using Trusona in our WordPress site. Thanks in advance!

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author Trusona

    (@hauz)

    Hello there! We can confirm that there is not any new functionality within the logout hook of the plugin. Nonetheless, thank for the raising the concern and for providing your deployed configuration versions. We shall take a look and determine what the issue is and get back to you.

    Trusona

    Thread Starter jkvgo

    (@jkvgo)

    Thank you! Please let me know if there are updates to this so we can re-enable the Trusona plugin in our site.

    Best regards!
    John

    Plugin Author Trusona

    (@hauz)

    Hello there! There are no updates yet to the plugin because on a new install of PHP 7.2.16 and WordPress 5.1.1 with the latest plugin, we do not see any behaviour that is not expected on logout.

    What is the list of plugins you have installed on your setup? We would like to replicate your setup fully.

    Also, you can examine the plugin logout hook too and note that the redirect that we are doing is via a WordPress function that is required after the authorization cookie is cleared.

    Trusona

    Thread Starter jkvgo

    (@jkvgo)

    Hi! Yup it seems it is the wp_safe_redirect() that might be causing this issue.

    May I know if there was any change to:

    /**
    * logout method – called from wp_logout action
    */
    public function trusona_openid_logout()
    {
    wp_clear_auth_cookie();
    wp_safe_redirect(admin_url(‘index.php’));
    exit;
    }

    or any part of the logout process from Trusona plugin 1.4.1 to 1.4.5?

    Thanks!

    Plugin Author Trusona

    (@hauz)

    Hello! The two lines in the logout hook have not changed since the plugin’s implementation. It is also the only logout hook in the plugin.

    Would you give us the list of plugins installed on your end so that we can try to replicate your setup?

    Trusona

    Thread Starter jkvgo

    (@jkvgo)

    Hi!

    Sorry for the late reply, the plugins we are using are:
    bbPress
    Display PHP Version
    English WordPress Admin
    Error Log Monitor
    jQuery Updater
    Limit Posts
    Search Everything
    Updraft Plus
    View own posts and media library items only
    Wordpress HTTPS
    WP Database Backup
    WP External Links
    WP Mobile Detect
    WP ULike

    My guess is that WordPress 5.1.1 somehow added something to wp_safe_redirect that is causing the problem?

    Thanks!

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘wp_logout() action change on WordPress 5.1.1’ is closed to new replies.