This thread is resolved. Here is a description of the problem and solution.
Problem:
The client updated WordPress to version 6.7 and all WPML plugins to the latest versions. However, they encountered an issue where they could not switch the frontend language to German (DE) by clicking on the DE flag in the main menu. The domain for the German language was incorrectly redirecting to the main domain.
Solution:
We first ensured that the client was using the latest WPML version by advising them to update their WPML plugin and add-ons to version 4.6.14. We then guided the client to check their domain and 'A different domain per language' setup according to our guide.
Further troubleshooting steps included:
- Synchronizing posts taxonomies
- Clearing the cache in WPML
- Resaving the permalink structure
Upon deeper investigation, it was found that the issue was due to a server-level redirection, likely configured in the LiteSpeed server settings or the hosting control panel. We recommended checking the LiteSpeed server configuration, hosting control panel redirects, and DNS settings for the domain.
If these steps do not resolve the issue, we advised contacting the hosting provider for further assistance.
If this solution does not apply to your case, or if it seems outdated, we highly recommend checking related known issues at https://wpml.org/known-issues/, verifying the version of the permanent fix, and confirming that you have installed the latest versions of themes and plugins. If the problem persists, please open a new support ticket.
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: Not WPML issue
This topic contains 5 replies, has 1 voice.
Last updated by urbanP 1 week, 1 day ago.
Assisted by: Prosenjit Barman.
Author | Posts |
---|---|
November 15, 2024 at 10:43 am #16407229 | |
urbanP |
Background of the issue: Symptoms: Questions: |
November 15, 2024 at 11:59 am #16408155 | |
Andrey Supporter Languages: English (English ) Russian (Русский ) Timezone: Europe/Kyiv (GMT+02:00) |
While one of my teammates takes care of your ticket, I will provide you with the first debugging steps. I noticed that you are still using WPML 4.6.13. Please update your WPML plugin and add-ons to the latest version, 4.6.14, to benefit from the latest bug fixes and improvements. This may not necessarily resolve your problem; however, we need to work on the latest code to troubleshoot the issue best. You can check the latest released versions under "My Account -> Downloads" on this site. Instructions to update can be found here: http://wpml.org/faq/install-wpml/ If you do not see the updates, you might need to click the Check for updates button in the Plugins → Add New Plugin → Commercial tab. Please remember to backup your database before you proceed. Let us know if the issue persists after an update has been done. |
November 15, 2024 at 12:14 pm #16408203 | |
urbanP |
Hi! I use latest plugin versions, I checked. I don’t know why Debug tools obviously creates wrong report. I attached a screenshot from hidden link. |
November 15, 2024 at 12:23 pm #16408235 | |
urbanP |
Sorry, this also lists wrong version numbers and the same is in Plugins list also. I don't know what is wrong :S If I check and open readme.txt in each plugin in /wp-content/plugins/ (main, string translation, media translation) I see: === SitePress Multilingual CMS === === WPML String Translation === === WPML Media Translation === These are all latest versions. What I did. I downloaded all 3 plugins from your website, latest version under Manual download. FTPd to server, deleted all 3 folders from /wp-content/plugins/ and uploaded the downloaded, latest versions. I can give you access to the /wp-admin/ if you need. Urban |
November 18, 2024 at 8:06 am #16413208 | |
Prosenjit Barman Supporter
Languages: English (English ) Timezone: Asia/Dhaka (GMT+06:00) |
Hello Urban, I've taken over this ticket and would be happy to assist you further in this matter. Upon reviewing your site, I noticed that the domain for the German language is incorrectly redirecting to the main domain. I tried identifying the cause of the redirection, but the redirect data is missing in the developer console. If the other language domain is configured correctly, this redirection shouldn’t occur. on trying to access the domain, the default language page should appear, but without any redirection. Could you please review this guide and double-check the configuration to ensure everything is set up properly? If the domain and the different domain per language setup are configured correctly but the issue still persists, please try the following steps. - Please go to WPML > Support > Troubleshooting -- Synchronize posts taxonomies [Select the post type from the dropdown and then click the button] - Once done, go to "Settings > Permalinks" and resave the permalink structure, ensuring the Plain structure is selected. Please try and let me know how it goes. I'll be happy to help if you need further assistance in this matter. Best regards, |
November 18, 2024 at 8:26 am #16413246 | |
urbanP |
Hi Prosenjit! The DE domain was working before the updates, I check this after each plugin/core update. I made a screenshot of the setup in attachment. The DE domain hidden link is "Valid" when I save the settings. I still don't know what is wrong with the plugin versions 🙁 I uploaded via FTP the latest versions, readme.txt files also say so, but in Plugins and Commercial tab it says I have pre-last ones. What is up with that? Urban |
November 19, 2024 at 4:15 am #16417357 | |
Prosenjit Barman Supporter
Languages: English (English ) Timezone: Asia/Dhaka (GMT+06:00) |
Hi Urban! Thank you for confirming that the different domains per language setting is configured correctly. Please note that with the latest version of WPML, we haven’t received any reports of issues related to this setup. Therefore, it’s likely that the issue is related to a specific configuration on your site. Could you please also confirm if you have completed the troubleshooting steps I shared in my previous response? If the issue persists even after that, a closer inspection will be required to understand the root cause of the issue. I would like to request temporary access (wp-admin and FTP) to your site to take a better look at the issue. You will find the needed fields below the comment area when you log in to leave your next reply. The information you will enter is private which means only you and I can see and have access to it. Maybe I'll need to replicate your site locally. For this, I’ll need to temporarily install a plugin called “Duplicator” or "All in One WP Migration" on your site. This will allow me to create a copy of your site and your content. Once the problem is resolved I will delete the local site. Let me know if this is ok with you. IMPORTANT Looking forward to your response. Best Regards, |
November 20, 2024 at 4:05 am #16422204 | |
Prosenjit Barman Supporter
Languages: English (English ) Timezone: Asia/Dhaka (GMT+06:00) |
Hi Urban, Thank you for sharing the access. I've thoroughly checked everything and would like to provide you with a detailed update on this issue. What I’ve Done So Far: 1. Analyzed HTTP Headers: 2. Ruled Out WordPress Core and Plugins: 3. Checked LiteSpeed Server and Cache: 4. Reviewed `.htaccess` File: Findings So Far - The redirection is confirmed to be a server-level configuration, likely originating from: - WordPress and its plugins (including WPML) do not appear to be the cause of this redirection. This is evident because: To resolve this issue, I recommend the following steps: 1. Check LiteSpeed Server Configuration: 2. Check Hosting Control Panel Redirects: 3. Inspect DNS Configuration: If the steps outlined above do not uncover or resolve the source of the issue, it would be best to reach out to your hosting provider. They have access to server-level tools that can analyze and diagnose redirects more thoroughly. Their insights can help identify the exact cause of the redirection and provide guidance on implementing a solution effectively. I hope you can understand. If you have any other questions or need help, feel free to let me know. I'll be happy to help. Best regards, |
November 20, 2024 at 8:29 am #16422918 | |
urbanP |
Prosenjit, thank you so much for a detailed analysis. Meanwhile I found out that the hosting company got merged with another one and all the sites were migrated to their servers. Looks like they made a mistake in that procedure. Let me first find out what the actual setup is now and try to fix the problem. I will get back here and let you know if it is fixed. with regards |
November 20, 2024 at 9:54 am #16423592 | |
urbanP |
All is fixed, it was a hosting domain setting problem. Thank you for all your help with the analysis of the problem, your support work is amazing! You can close this ticket. with regards |