Skip Navigation

This thread is resolved. Here is a description of the problem and solution.

Problem:

When I log out I get a message if I'm sure that I want to log out.

Solution:

I've further investigated this issue with the Theme My Login plugin. Here are my findings.

1. The plugin is not on our compatibility list here.

https://wpml.org/documentation/plugins-compatibility/

2. I can see a few reports in our forum and from that, I can conclude that the problem that you are experiencing because this plugin is not working well with WPML.

In another forum ticket at the following link, the following was already written.

Problem: When I use the English version of the page, Theme My Login shows a menu link that redirects the user to a page, for example, Login or Register page.

When I use the Spanish translation and I try to access the links in the menu, the site is always redirecting me to the same page when I access to Login or Register page.

Solution: Theme My Login has many redirect options and filters that might interfere with WPML and it is not in our compatibility list.

A similar compatible plugin is the Clean Login plugin: https://wordpress.org/plugins/clean-login/ It's already in our official compatibility list (https://wpml.org/plugin/) and they provide a guide for its WPML configuration: http://codection.com/clean-login-wpml-compatibility/

https://wpml.org/forums/topic/theme-my-login-redirection-links-problem/

3. On another forum ticket, I can see a problem that looks similar to the issue that you have.

https://wpml.org/forums/topic/theme-my-login-and-wpml-wrong-login-page/

In our internal documentation related to the above ticket, I can see that our compatibility team tried to contact the developers of the plugin. But they didn't cooperate with us on making their plugin compatible. Therefore, we have published an errata page with a suggested workaround for this issue.

You can see it here.

https://wpml.org/errata/theme-my-login-redirects-to-login-page-in-the-wrong-language/

This is the technical support forum for WPML - the multilingual WordPress plugin.

Everyone can read, but only WPML clients can post here. WPML team is replying on the forum 6 days per week, 22 hours per day.

Tagged: 

This topic contains 10 replies, has 2 voices.

Last updated by Fabio Fava 5 months, 1 week ago.

Assigned support staff: Itamar.

Author Posts
April 6, 2020 at 6:59 am

Fabio Fava

Are you sure that you want to log out?

April 6, 2020 at 10:16 am
April 6, 2020 at 10:58 am #5847321

Itamar
Supporter

Languages: English (English ) Hebrew (עברית )

Timezone: Asia/Jerusalem (GMT+03:00)

Hi, Fabio.

On you staging site I installed and activated the WordPress default theme 2020. I also deactivate all the plugins except WPML, String Translation, Translation Management, and the Theme My Login plugin. Then I noticed that the plugin is not updated. When I pressed the Update Now link I received a message that it is not possible to update the plugin and directed me to this screen.
hidden link
Please see the attached screenshot.
It seems that there is a major update for this plugin that changes a lot in the way the plugin functions. This is why they are letting you know before you make this update. So here is what I ask you to do, please.

1. Update the Theme My Login plugin to the latest version.
2. Check if the issue persists.
3. If it does not persists then everything is good and you can continue working with this plugin and WPML.
4. If it does persist, then let me know. I'll then need a copy of your site with the Duplicator plugin. And I'll escalate it to our compatibility team.

Regards,
Itamar.

April 6, 2020 at 11:01 am #5847371

Fabio Fava

Hey Itamar,

You can set TML to update, then update it and check if it works. I've done that before and it doesn't seem to be the problem, but you may give it a try. If you later need to revert to 6.x just let me know and I send you the latest version for that branch.

April 6, 2020 at 11:09 am #5847395

Fabio Fava

I've updated TML to latest version, the problem persists.

April 6, 2020 at 11:11 am #5847401

Fabio Fava

Could you enable the fields for sending a duplicator file? May I use Duplicator from WP.org? Should I use default settings or change something? Maybe you could do yourself the Duplicator Backup, export it and scale to the relevant team?

Please let me know when I can delete the site. My server can fit up to 6 sites with the actual settings, and this is the 7th unfortunately.

April 7, 2020 at 9:20 am #5855453

Itamar
Supporter

Languages: English (English ) Hebrew (עברית )

Timezone: Asia/Jerusalem (GMT+03:00)

Hi.

I was not able to access your site now. Please see the attached screenshot.
Please use the DUplciator plugin (free or Pro) to copy your site and send me the duplicator package. https://wordpress.org/plugins/duplicator/
For this, I'm enabling a private message for the next reply.
You can also upload it to a service like Google Drive or Dropbox and share the link with me.

Thanks,
Itamar.

April 7, 2020 at 9:47 am #5855823

Itamar
Supporter

Languages: English (English ) Hebrew (עברית )

Timezone: Asia/Jerusalem (GMT+03:00)

Ok that was the dev site. I can still access the staging site. I'll try to create a copy.

April 7, 2020 at 9:54 am #5855847

Fabio Fava

Hey Itamar. I've re-created that site on a simpler version so you can test. The login credentials are the same at hidden link

I've been testing a while and seems that the problem is a bit deeper, made me think about .htacces and/or wp-config.php (can't imagine how this 2nd would cause anything but the Salt Keys, wich I've recreated and the problem persists).

I've seen you've updated Theme My Login to 7.x but as you can see, this isn't the problem also. I'm pretty sure that's WPML who's causing the problem, since nothing else seems to solve. I've even tried with the most basic WP .htaccess withtou success.

I have very complex setups working with Paid Memberships Pro and Theme My Login 6.x under X and Pro themes, without any issues. Only having issues on WPML-enabled sites. You may try by yourself, enabling all plugins and using TML 6.x everything works...

I've also removed "Sub-Directory for Main Language" on WPML main settings. After we manage to make it work, then we try with this option enabled. I'm sure it's not being caused by that, and I'm starting to think there's some minor bug on some part of WPML since it's the only thing causing the issue, aparently.

The site is running with Twenty Twenty Theme, and has only WPML and TML (6.x) enabled. Is important that it works under 6.x since 7.x has changed in many ways and works actually worse with most WP setups due to not having the Login/Logout pages any longer: they're now dynamically-generated, and this doesn't allow styling, and works worse with WPML as tested before.

April 7, 2020 at 10:54 am #5856241

Itamar
Supporter

Languages: English (English ) Hebrew (עברית )

Timezone: Asia/Jerusalem (GMT+03:00)

Hi, Fabio.

I've further investigated this issue with the Theme My Login plugin. Here are my findings.

1. The plugin is not on our compatibility list here.
https://wpml.org/documentation/plugins-compatibility/

2. I can see a few reports in our forum and from that, I can conclude that the problem that you are experiencing because this plugin is not working well with WPML. In another forum ticket at the following link, the following was already written.

Problem: When I use the English version of the page, Theme My Login shows a menu link which redirects the user to a page, for example, Login or Register page. When I use the Spanish translation and I try to access the links in the menu, the site is always redirecting me to the same page when I access to Login or Register page.

Solution: Theme My Login has many redirect options and filters that might interfere with WPML and it is not in our compatibility list.

A similar compatible plugin is the Clean Login plugin: https://wordpress.org/plugins/clean-login/ It's already in our official compatibility list (https://wpml.org/plugin/) and they provide a guide for its WPML configuration: hidden link

https://wpml.org/forums/topic/theme-my-login-redirection-links-problem/

3. On another forum ticket, I can see a problem that looks similar to the issue that you have.
https://wpml.org/forums/topic/theme-my-login-and-wpml-wrong-login-page/
In our internal documentation related to the above ticket, I can see that our compatibility team tried to contact the developers of the plugin. But they didn't cooperate with us on making their plugin compatible. Therefore, we have published an errata page with a suggested workaround for this issue. You can see it here.
https://wpml.org/errata/theme-my-login-redirects-to-login-page-in-the-wrong-language/

Due to above and since we know now that the Theme My Login plugin has a new and very much changed version (maybe the developers understood that they need to change things from the root) and that you need to use the previous version, I think that it will be hard for us to help you with this issue. I'm sorry about this. But I suggest that you try either the workaround that is suggested in the errata page or that you use the suggested other plugin which is compatible with WPML.

Please let me know if you have any questions.

Regards,
Itamar.

April 7, 2020 at 10:57 am #5856277

Fabio Fava

My issue is resolved now. Thank you!

April 9, 2020 at 7:54 am #5872917

Fabio Fava

I just would like to inform that the problem is indeed on WPML. I've tried the suggested "Clean Login" plugin, wich gives the same error and others, also have horrible code and CSS. It's 100% clear that WPML is causing this issue (wich only happens when logging-off from the Frontend, if you logout from the Backend it doesn't happen).

So it's clearly WPML messing up with something, wich as a customer I would need to get solved. I've offered a Staging Site for you to test, but I couldn't see any relevant finding so I would kindly ask to escalate to a higher Developer level, so they can try to fix this for a future release.

I'll keep positive that the WPML Dev Team will be able to find what is wrong on your code.

Thank you very much again for your help, and I'll keep looking forward from WPML on this.