Skip Navigation

This thread is resolved. Here is a description of the problem and solution.

Problem:

The client is moving their website to a new WordPress installation and encountering issues with duplicate destination URLs, such as -2, -3, etc. The developer suspects this is due to WPML not being registered on the development site.

Solution:

We recommend registering the development site with a new WPML site key and ensuring WPML is updated to the latest version. Here are the steps to follow:

1. Go to

Plugins>>Add New>>Commercial

tab on your development site.
2. Click on "Unregister WPML from this site".
3. Refresh the page.
4. Click on "Get a key for this site" and follow the instructions to generate a new key.
5. Copy the newly generated code.
6. Return to

Plugins>>Add New>>Commercial

tab.
7. Register the site with the new key.
8. After registration, resave the permalinks via

Settings>>Permalinks

to check if the issue with duplicate URLs persists.

Additionally, ensure that the Advanced Translation Editor is migrated correctly if you are using it. For more details, refer to this documentation.

If this solution does not resolve your issue or seems irrelevant due to being outdated or not applicable to your case, please open a new support ticket. We also 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. For further assistance, you can contact us directly through the 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.

This topic contains 8 replies, has 1 voice.

Last updated by Bigul 1 week ago.

Assisted by: Bigul.

Author Posts
March 7, 2025 at 4:25 am #16785981
March 7, 2025 at 4:26 am #16785986

eamonnT

this is the site may with the duplicate urls
hidden link

March 7, 2025 at 4:27 am #16785987

eamonnT

i still need help

March 7, 2025 at 3:51 pm #16789230

Bigul
Supporter

Languages: English (English )

Timezone: Europe/Vienna (GMT+01:00)

Hello,

Welcome to the WPML support forum. I will do my best to help you to resolve the issue.

As a Multilingual Agency plan subscriber, you can register N number of production or development sites. Refer to this page for more details - https://wpml.org/purchase/ (in Websites row)

So please create a new site key for hidden link and then upgrade to the latest version of WPML (4.7.1 series) after a full site backup {mandatory}. You can try the following steps for it.

- Go to Plugins>>Add New>>Commercial tab of hidden link
- Click on "Unregister WPML from this site"
- Refresh the page
- Click on "Get a key for this site" - hidden link
- Copy the newly generated code
- Visit back to Plugins>>Add New>>Commercial tab
- Register the site with the new key

After that, resave the permalinks from Settings>>Permalinks and make sure the bug exists or not.

Please note, I am not able to access the sitemap - hidden link

--
Thanks!

Bigul

March 8, 2025 at 3:34 am #16790692

eamonnT

Thanks

The site is already registered, so not sure what you are asking me todo

Can u cllaify please

donealready.gif
March 8, 2025 at 8:24 am #16790845
eamonnT

okay we ran the move process again so the site is back,,, but it is still doing very strange things example it is not including the lang in the URL

hidden link
hidden link
hidden link
hidden link
hidden link
hidden link

I have set the url so it should use directories

Language URL format
Choose how to determine which language visitors see contents in
Different languages in directories ( (hidden link - English, hidden link - Chinese (Simplified)) )
Use directory for default language

see site map for all issues

hidden link

New threads created by Bigul and linked to this one are listed below:

https://wpml.org/forums/topic/the-lang-code-is-missing-in-the-url/

March 10, 2025 at 4:44 am #16794173

Bigul
Supporter

Languages: English (English )

Timezone: Europe/Vienna (GMT+01:00)

Hello,

Thank you for the details. I have requested to register the site key for the dev site, because of the following.


Symptoms:
The developer thinks it is because WPML is not registered on the dev site.

Questions:
Will activating the WPML license fix the issue with the duplicated slugs?

Also, in some cases translation will not be working as expected, if we haven't migrated the Advanced Translation Editor correctly to the staging site. Please refer to this doc for more details - https://wpml.org/documentation/translating-your-contents/advanced-translation-editor/using-advanced-translation-editor-when-you-move-or-use-a-copy-of-your-site/

Please note that I have opened a new ticket for the *language URL* issue. As per our support policies, we can address only one problem per ticket. This approach allows us to assist you more efficiently and keeps discussions focused. I will respond to the new ticket shortly. I appreciate your understanding.

--
Thanks!

Bigul

March 15, 2025 at 2:50 am #16819102
eamonnT

Hi okay making good progress.. but found another issue can u help please

okay so I am making a slight change to the English page adding a h1 tag and an icon... but I wish these changes to be reflected in the translated pages, but the system seems to be trying and charge me again for a full translation please see attached...

New h1 tag and icon added to this page

hidden link

see attachments for new section

existing pages already translated, but trying to charge full transaction when I run refresh

hidden link

New threads created by Bigul and linked to this one are listed below:

https://wpml.org/forums/topic/existing-pages-are-already-translated-but-trying-to-charge-full-transaction/

new.gif
full translation again.gif
March 16, 2025 at 10:19 am #16821293

Bigul
Supporter

Languages: English (English )

Timezone: Europe/Vienna (GMT+01:00)

Hello,

Thank you for the feedback. I have created a new ticket for the *Translation issue* and will get back to you soon in the latest ticket. Please wait.

--
Thanks!

Bigul