Skip Navigation

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.

Tagged: 

This topic contains 11 replies, has 3 voices.

Last updated by Prosenjit Barman 1 year, 4 months ago.

Assisted by: Prosenjit Barman.

Author Posts
January 22, 2024 at 1:49 pm #15211730

priitP-4

I am trying to: update WPL plugin

Link to a page where the issue can be seen: its a live site, I restored the page

I expected to see: I was hoping to see that the plugin update would not cause a problem

Instead, I got: doubled language directories in urls! See in pic

NB! Site restored and debug info for restored site!

wpml-problem.jpg
January 22, 2024 at 5:31 pm #15213045

Andrés
Supporter

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

Privacy and Security when Providing Debug Information for Support:
https://wpml.org/purchase/support-policy/privacy-and-security-when-providing-debug-information-for-support/

January 23, 2024 at 7:15 am #15214182

priitP-4

Hey!

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

All Best,
Priit

wpml-version.jpg
January 23, 2024 at 2:04 pm #15217430

Prosenjit Barman
WPML Supporter since 03/2023

Languages: English (English )

Timezone: Asia/Dhaka (GMT+06:00)

Hi Priit,
I hope you're doing well.

Glad to hear that everything is working fine now.

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.

- https://wpml.org/errata/wpml-redirection-issue-in-multisite-network-with-sub-folder-installation/

Feel free to let me know if there is anything else you need help with. I'll be happy to help.

Best regards,
Prosenjit

January 25, 2024 at 11:34 am #15225822

priitP-4

Hey!

now I have other site same issue: hidden link
Doubled et language code in url!

How to fix?

All Best,
Priit

January 25, 2024 at 11:55 am #15225962

priitP-4

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?

January 26, 2024 at 8:53 am #15229116

Prosenjit Barman
WPML Supporter since 03/2023

Languages: English (English )

Timezone: Asia/Dhaka (GMT+06:00)

Hello Priit,

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.

Best regards,
Prosenjit

January 29, 2024 at 8:36 am #15236516

priitP-4

Hey!

Thanks for replay!

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

RESUOLT IN BROWSER:
hidden link

All Best,
Priit

January 29, 2024 at 12:48 pm #15238276

Prosenjit Barman
WPML Supporter since 03/2023

Languages: English (English )

Timezone: Asia/Dhaka (GMT+06:00)

Hello Priit,
Thank you for the update.

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

Looking forward to your response.

Best Regards,
Prosenjit

January 30, 2024 at 3:07 am #15241361

Prosenjit Barman
WPML Supporter since 03/2023

Languages: English (English )

Timezone: Asia/Dhaka (GMT+06:00)

Hi There,

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.

Best regards,
Prosenjit

January 30, 2024 at 7:54 am #15241745

priitP-4

Hi!

Now it really seems that the url is fine and there is no double language code..
Wonder what caused this problem temporarily?

All Best,
Priit

January 30, 2024 at 2:31 pm #15244374

Prosenjit Barman
WPML Supporter since 03/2023

Languages: English (English )

Timezone: Asia/Dhaka (GMT+06:00)

Hello Priit,

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.

Warm regards,
Prosenjit