Skip Navigation

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

Problem:
I have a local environment website with WPML installed. After moving the site to the server and selecting that it's a copy on localhost, I received a notice that the site moved without the option to choose it as a copy again. Attempts to reset the key by removing URLs from wp-config.php and registering a new key didn't work.

Solution:
1. Visit WPML > Translation Management to find the notice for site movement or copying.
2. Keep localhost as a copy for using ATE; moving it disables ATE for localhost.
3. Reset ATE details on localhost to treat it as a new site following these instructions: [Using WPML on Two Domains](https://wpml.org/documentation/translating-your-contents/advanced-translation-editor/using-advanced-translation-editor-when-you-move-or-use-a-copy-of-your-site/#using-wpml-on-two-domains).
4. Create a full backup of localhost, switch to the Classic Translation Editor, clear specific database entries related to WPML settings, and then reactivate ATE in WPML settings.

Relevant Documentation:
- Using WPML on Two Domains - https://wpml.org/documentation/translating-your-contents/advanced-translation-editor/using-advanced-translation-editor-when-you-move-or-use-a-copy-of-your-site/#using-wpml-on-two-domains

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 6 replies, has 3 voices.

Last updated by Carlos Rojas 1 year, 5 months ago.

Assisted by: Carlos Rojas.

Author Posts
November 19, 2023 at 6:40 pm #14871767

andrejO

Hello,

I have a local environment website with WPML installation.

The timeline of key management was as follows:
1. First I was developing locally with key for development.
2. Then I moved to the server and set the key to production mode.
3. On localhost I selected that the site was moved and the current location is only a copy and continued with further development.
4. But recently I got a notice saying: This site has moved to a new location, without the option to choose that it is a copy.

After reading many threads with solutions such as: remove site_url and home URL form wp-config.php, and reregistering the site key with a new key.

Nothing helped.

What can I do to restore the functionality of wpml plugin, please?

Thanks In advance.

Screenshot 2023-11-19 at 19.33.36.png
November 21, 2023 at 8:51 am #14883507

Sumit
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Hi,

Thank you for contacting the support forum.
Before your ticket is assigned to one of my colleagues, please allow me to walk you through some initial debugging steps. This will help speed up the support process.

From the screenshot, I see this is the WooCommerce Multilingual tab. Please visit WPML > Translation Management there you will see the notice to move or copy.

Once you move the site to a new location you can not use the ATE on localhost. For localhost please keep it as a copy if you want to use the ATE.
The move option is for one time you can not use it again.

Now, you can reset the ATE details on localhost but that will be a new site. Please follow these articles https://wpml.org/documentation/translating-your-contents/advanced-translation-editor/using-advanced-translation-editor-when-you-move-or-use-a-copy-of-your-site/#using-wpml-on-two-domains

Hope this helps.

November 21, 2023 at 1:28 pm #14887247

andrejO

Hello, I am searching for the force enable ATE button, but cannot find him as mentioned in the link you provided.

Are there other methods of how to reset the key? I have an agency plan so creating additional keys to use should not be a problem but I need to preserve the translations stored in the glossary as there is almost everything translated.

hidden link

November 22, 2023 at 9:24 am #14894461

andrejO

Hello again,

sorry for my mistake as I had an older version of WPML CMS installed on localhost and misread it in the docs.

Now I see the option as in the attached picture, but I am unsure whether it is the correct thing to do in my scenario. I don't understand what it means that the sites will both use ATE (it means that both will edit the same glosary? I probably don't want that, I just want to use the old translations on localhost but not impact the translations on production server) and the sentence "Don't use this if you've moved or copied the site to a different domain on a different server" appears to me that it is my scenario.

I have a local host copy of the production site where I want to develop further and don't want to mess up translations on the production site.

Thanks for further help.

Screenshot 2023-11-22 at 10.19.00.png
November 23, 2023 at 9:41 am #14905665

Carlos Rojas
WPML Supporter since 03/2017

Languages: English (English ) Spanish (Español )

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

Hello,
My name is Carlos and I will continue working on this site.

I understand that you desire to keep both sites (localhost and production) separated. If this is correct, then please follow these steps:
- Create a full backup of the site in localhost
- Go to WPML -> Settings -> Activate the Classic Translation Editor -> Save the changes
- Connect to the database via an Adminer plugin or PHPMyAdmin and run the following query:

select *
from wp_options
where option_name = 'WPML_SITE_ID:ate'
OR option_name = 'WPML_TM_AMS'
OR option_name = 'otgs_wpml_tm_ate_cloned_site_lock'

*this code assumes that the prefix of your database is wp_
- Delete the results
- Go to WPML -> Settings -> Activate ATE -> Save the changes
- Double-check if the issue disappeared

Could you tell me the results of the steps described above?

Regards,
Carlos

November 24, 2023 at 1:49 pm #14917995

andrejO

Hello,

This solution helped and solved the problem.

Thank you

November 24, 2023 at 1:51 pm #14918003

Carlos Rojas
WPML Supporter since 03/2017

Languages: English (English ) Spanish (Español )

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

Hi there,

I'm glad to hear that the issue is solved 🙂

Please don't hesitate to contact us if you need our help in the future with WPML. We will be more than happy to help.
Best regards,
Carlos