[Resolved] After latest update doubled language directories appears!?
This thread is resolved. Here is a description of the problem and solution.
Problem: The client was experiencing an issue with doubled language directories in URLs after updating the WPML plugin.
Solution: 1. We confirmed that the WPML plugin had been updated to version 4.6.9, which might have resolved the issue automatically if automatic updates were enabled. 2. We suggested checking the Site URL and WordPress URL in "Settings > General" to ensure they do not include a trailing slash (/) at the end, as this could cause similar issues. A workaround for this can be found in our errata: WPML redirection issue in multisite network with sub-folder installation. 3. We also informed the client that the issue had been identified and a solution was included in WPML version 4.6.10 (Beta). We provided a link to download this version: WPML 4.6.10 (Beta) Changelog, and asked the client to install and activate it to see if the issue persists.
Please note that the solution provided might be irrelevant due to being outdated or not applicable to your case. If the issue persists, 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 you need further assistance, please do not hesitate to open a new support ticket at WPML support forum.
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.
Languages: English (English )Spanish (Español )French (Français )
Timezone: Europe/Paris (GMT+02:00)
Hello there,
Welcome to WPML support forum.
I would like to request temporary access (wp-admin and FTP) to your test site to take a better look at the issue. Could you please indicate me how to replicate this behaviour?
You will find the needed fields for this 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” 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 for you.
*Important: Be sure to backup your site and database first before you proceed!
You can use a plugin for this if you like. You can use the Duplicator plugin for this purpose.
See: http://wordpress.org/plugins/duplicator/
If you don't see the form below, pelase don't add your credentials as they will be publicly exposed: hidden link
Looks like now working correctly! Did you guys fix something on your plugin?
Also in that site im not installed latest version 4.6.9 of WPML- how that is possible? Did you guys force to update that?
In attached images are the plugin versions as I wrote to you..
The most important thing is öooks like it works now and the url is correct
Based on the WPML Debug Info, it appears that WPML version 4.6.9 is installed on your site. Automatic updates may be enabled on your site, which could explain why WPML updated to its latest version automatically and the problem was resolved.
Further investigation on this issue revealed that the issue might also arise if the Site URL and WordPress URL in "Settings > General" include a trailing slash (/) at the end of the URL. In such cases, you can try the workaround mentioned in the errata below which was effective in solving the issue, also in the single site.
The strangest thing is that if I clone this page to a subdomain for testing, this problem is gone!? hidden link
How can such a thing be possible and how to solve the problem?
I understand your concern. We have identified the issue, and the solution has been included in WPML 4.6.10 (Beta). Could you please download this version from here(https://wpml.org/download/wpml-multilingual-cms/?section=changelog), install and activate it on your site, and then check if the issue persists?
Let me know the update. I will be happy to help if you need further assistance in this matter.
Beta not fixed that. If I have url with language code, then it still double that language code inside url. Take a look url and see result in browser: hidden link
Since the issue persists even after updating the plugin to the Beta version, a closer inspection will be required to understand the root cause.
I would like to request temporary access (wp-admin and FTP) to your site to take a better look at the issue. It would be better to have a testing site where the issue is replicated.
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
-Please backup site files and database before providing us access.
-If you do not see the wp-admin/FTP fields this means your post & website login details will be made PUBLIC. DO NOT post your website details unless you see the required wp-admin/FTP fields. If you do not, please ask me to enable the private box. The private box looks like this: hidden link
Before we proceed further, I have an update to share with you.
I rechecked the link you shared and it directed me to the appropriate page. I didn't notice any double language code in the URL. For a clearer understanding, please refer to this video: hidden link
As everything is working fine, could you please clear the caches from your site and browser and then try again?
Let me know the update. I will be happy to help if you need further assistance in this matter.
It's great to know that everything is functioning smoothly now.
The primary problem stemmed from a slash (/) at the end of the Site URL and WordPress URL in the WordPress settings. We've addressed this issue successfully and incorporated the fix in WPML version 4.6.10 (Beta). As this version is performing well, please feel free to keep using it.
Should you require any further assistance, don't hesitate to get in touch. I'm here to assist.