Log out page errors

Hi guys,

I’m having trouble with the logout page (https://flit.bike/wp-login.php?action=logout). The log out link on the site is directed to this link, but when clicked it goes to a page saying “You are attempting to log out of Flit. Do you really want to log out?”. When you then click logout, nothing happens on screen but you’re taken to this link https://www.flit.bike/wp-login.php?action=logout&_wpnonce=08e0e9e02c. You then have to click the logout link again to actually logout (a bit of a faff)

Screenshot of second screen reached here:

Do you know how to fix the problem? It would be best if the logout link just logs you out directly instead of having to click so many times to do so.

Many thanks,

Gemma

Hi Gemma.

That is not handled by s2Member, it’s WordPress… Or maybe some other plugin is affecting it, but s2 doesn’t interfere with it.

If you use the s2Member-Login shortcode you can set the logout redirection, but only for the link it generates, other logout links will have their own behavior. http://web.archive.org/web/20161225035433/http://s2member.com/kb-article/s2member-login-shortcode-documentation/

I hope that helps. :slight_smile:

Hi Cristián,

Thanks for your reply!

I know that there’s conflict between S2 and woocommerce which I think is what is causing the errors. Do you have any documentation on how to solve conflicts between the two plugins?

Many thanks,

Gemma

What conflict are you referring to?

And does WooCommerce have anything to do with the logout redirection?

:slight_smile:

Hi Cristián,

Yes I think it’s Woocommerce which is causing the log out redirection. I’ve changed all of the log out links to the Woocommerce customer logout end point https://www.flit.bike/my-account/customer-logout/ as this solves the error code problem, however the link seems to have the following added https://www.flit.bike/my-account/customer-logout/?_wpnonce=ad322c5d4c which means you still have to click logout twice in order to successfully log out.

Do you know how I could solve this?

Many thanks,

Gemma

No, I’m not familiar with WooCommerce. I recommend that you ask that in their forum, it’s likely that someone there will know. https://wordpress.org/support/plugin/woocommerce/

:slight_smile: