Compability issue with WPML -Can’t log out with secondary language
-
Hello,
I am building a multi-lingual woocommerce site. The default language is English. The secondary language is Danish. The problem is when logging out from the secondary language ‘My Account’ page the plugin adds the danish language code to the custom-login slug made using WPS Hide Login. Ex. https://www.site.com/custom-login becomes https://www.site.com/da/dacustom-login. The first /da/ is is provided by WPML and is fine. It is the ‘da’ attached to the front of the custom-login that is the culprit and makes WP return a 404 page error as WPS Hide Login then redirects to a page that doesn’t exist.
In WPML’s support forum I saw a ticket referring to a similar issue and WPML developers suggested a patch to the “/classes/plugin.php” that solved the problem for the ticket creators. The patch was to comment out the following line (line 189):
return $this->user_trailingslashit( site_url( ‘/’, $scheme ) . $this->new_login_slug() );
https://wpml.org/forums/topic/wps-hide-login-secondary-language-logout-error/page/2/
However this doesn’t solve the problem for me. Ex. WPS Hide Login now just redirects to the English language home page and the user is still not logged out.
Will you consider making WPS Hide Login compatible with WPML?
I really like the simplicity of you plugin and what it does. But as I am building a multi-language webshop this functionality is really important to me.I can provide you a link to a staging site illustrating the problem, in a private message, if needed.
Thanks
Rikke
- The topic ‘Compability issue with WPML -Can’t log out with secondary language’ is closed to new replies.