Skip Navigation

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 5 replies, has 1 voice.

Last updated by Alexander 3 days, 23 hours ago.

Assisted by: Mihai Apetrei.

Author Posts
February 14, 2025 at 12:38 am #16704734

Alexander

Background of the issue:
I recently transferred a website from my server to the customer's server with a WPML key registered for the test version. The WPML plugin stopped working, and I need to replace the WPML key with a new one registered for the client's domain name. It's impossible to change the domain name after the website received the 'Published' status.

Symptoms:
The WPML plugin stopped working after transferring the website.

Questions:
What will happen after replacing the WPML key? Will all the translations be gone and need to be redone from scratch?
Is there any way to update the domain name for the existing key without losing translations?

February 14, 2025 at 6:09 am #16705007

Mihai Apetrei
Supporter

Languages: English (English )

Timezone: Europe/Bucharest (GMT+02:00)

Hi there.

Before this ticket gets assigned to one of my colleagues, I will try to help.

For a new/separate WordPress setup and different domain, you will always need to go here (https://wpml.org/account/sites) and generate a new site key for that new domain. While in the process of creating the key, you can also set the key as "Production" or "Development."

For duplicating your site, I usually recommend using a plugin like "Duplicator":
- https://wordpress.org/plugins/duplicator/

Documentation can be found here:
hidden link

Here is a small tutorial on how to use Duplicator:
hidden link

This plugin should also easily take care of the URL-replacing process.

After migration, register WPML in your new site and enter the new key:
Please Login to your WPML account >> go to the "Sites" page (https://wpml.org/account/sites/) >> Remove your old site/domain from there >> and add your new site >> it will give you a new key which you can add back in your site in Plugins > Add new > Commercial.

You might want to take a look at this page, too, as it contains essential information that you might need when WPML sees that the current site has been copied over a different domain. You must set that new site to "this is a copy of the main site" or, if it was migrated from a staging site to a live site, then you have to set it up as: "I changed the address of the site to this new one".

Translations are saved into the database, so you shouldn't lose them.

I hope that you will find this information helpful.

Please let us know how things go.

Mihai Apetrei

February 14, 2025 at 10:13 pm #16708128

Alexander

Hi Mihai,
Thank you for the quick reply! Actually, everything is already done, and the website is already running on the customer's server. I got this issue a couple of weeks later after the transfer.

It's clear that I can't use the old key for this website. The question is: What will happen if I'll replace the old key with a new one? Will be the translation for all the pages (about 40) gone or everything will be left as before and working correctly?

I'm not sure, if the translations are hosted on the customer's server or on WPML servers. That's why I am reluctant to simply replace the key with a newly created one because losing all the translations would be fatal for my client.

Thanks a lot!

Best regards,
Alex

February 14, 2025 at 10:23 pm #16708129

Mihai Apetrei
Supporter

Languages: English (English )

Timezone: Europe/Bucharest (GMT+02:00)

Hi Alex, and welcome back.

The translations are saved into the site's database.

Updating the WPML key will not remove the translations from the site.

February 15, 2025 at 10:54 pm #16709804

Alexander

Hi Mihai,
Thank you for the prompt answer!

Sounds awesome! That's exactly what I wanted to know 👍
Ok, I'll try it with a new key generated for the customer's website URL.

Thanks a lot for your great assistance!

Best regards,
Alex

February 17, 2025 at 11:46 am #16713809

Mihai Apetrei
Supporter

Languages: English (English )

Timezone: Europe/Bucharest (GMT+02:00)

It was my pleasure, Alex! 🙂

Good luck with the project!

Can you also please mark this ticket as resolved and if you have a minute, maybe also leave a review regarding our conversation?

Thank you very much!

Mihai

February 18, 2025 at 12:53 am #16716727

Alexander

Thanks a lot, Mihai, for your help!
Much appreciated! 🙂
– Alex