Background of the issue:
I want to log out from the admin area but I'm not able to do so. The issue is tested on 3 sites having the latest WPML CMS v4.6.12, String Translation v3.2.14, and Media Translation v2.7.3. In every case, English is NOT the default language (HU is; no more languages besides enabled). On 1 site English is NOT hidden, on 2 it IS hidden.
Symptoms:
Where EN is hidden, the logout link (admin area, top right corner, etc.) incorrectly looks like: hidden link so it contains 'en' incorrectly!
Questions:
Why does the logout link contain 'en' when English is hidden?
How can I fix the logout link issue when English is hidden?
1) I don't want to disable "Allow translating the login and registration pages"
Managing mono- or multilingual sites with non-English default language has a best practice, what I also follow:
- install WP, themes, plugins, while WPML default language is EN
- install theme templates, which means say about 5 pages ( About, Contact, Login/Logout, etc.), so these pages will be in WPML in EN for sure
- scan WP, theme, relevant plugin strings
- set most of WPML settings to final setting
- change default language, finalize WPML settings like: hide EN
- keep my admin default language as EN, mainly for troubleshooting purpose
So i clearly want to have pages also of hidden languages, eg. for WPML debugging of other possible issues.
i repeat: the admin links URL should be consistent for all possible WPML settings, either ALL should contain the reference to the profile default language (EN) or NONE, it must not be mixed up, as of now, when "Edit Profile" link URL DOESN'T contain "en", while "Logout link URL DOES !
2) I checked your repro site and I see it works.
Can you compare with a tool, eg. programatically the difference of the WPML settings of the 2 sites, eg. from the WPML support data I've uploaded to the ticket?
Comparing it manually is a pain in the...
and I hope this exported support data is for such a purpose.
BTW "Allow translating the login and registration pages" setting should not affect a page's URL modifier ( adding or not "en" into the URL )...
- You wrote you could reproduce the issue on a clean site and when I asked you whether you need admin access to my site anymore, you answered no, so I removed your admin access...
- after activating "Display hidden languages" logout works.
I'll think about and test it whether it causes any unwanted issues on 2 of my sites,
I think it is just a workaround, it should work properly with both settings, but maybe acceptable...
Languages: English (English )Spanish (Español )Italian (Italiano )
Timezone: Europe/Madrid (GMT+02:00)
That is expected when language is hidden that is the reason why you need to activate the option "Display hidden languages" otherwise will not work.
The topic ‘[Closed] Logout not working when language is hidden’ is closed to new replies.
Manage Cookie Consent
We use cookies to optimize our website and services. Your consent allows us to process data such as browsing behavior. Not consenting may affect some features.
Functional
Always active
Required for our website to operate and communicate correctly.
Preferences
The technical storage or access is necessary for the legitimate purpose of storing preferences that are not requested by the subscriber or user.
Statistics
We use these to analyze the statistics of our site. Collected information is completely anonymous.The technical storage or access that is used exclusively for anonymous statistical purposes. Without a subpoena, voluntary compliance on the part of your Internet Service Provider, or additional records from a third party, information stored or retrieved for this purpose alone cannot usually be used to identify you.
Marketing
These cookies track your browsing to provide ads relevant to you.