I'm having this issue with WPML for a long time, and it's not the first site it's happening me with me.
Basically, while I'm normally able to edit one language (usually the main one), everytime I switch the secondary language the system asks me to log in again. Even after I do it, it will either ask me to login again everytime I go to edit or, best case scenario, the page it freezes and the builder keeps loading forever.
I'm not understanding what's the issue. I'm using the different domain option per language, and the only major plugin installed is Elementor. (but again, I had the same issue with other sites without Elementor).
Can you please help?
Thank you!
EDIT: One thing I've noticed is the url, usually sticking to the language I'm able to edit. So for example If I'm in the backend in the .com version and I switch to .pl, the backend url keeps being .com. I'm not sure if this is an indicator of the issue. Thank you
- Go to WPML > Languages > Language URL format
- Make sure the "Validate" option is enabled for the secondary domains.
- Enable the "Auto sign-in and sign-out users from all domains" option
- Save it
- Go to Dashboard > Settings > Permalinks and save the permalinks once.
- Logout from the primary domain
- Now login from both domains, you can log in from secondary domains using /wp-login.php at the end of the second domain. For example, login path will be:
hidden link hidden link
To make sure you are correctly logged in from both domains you can check if the WP top admin bar is available from both languages.
- Once you are logged in from both domains, check if you can edit the page in Elementor from the secondary language.