Skip Navigation

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

Problem:
The client is experiencing an issue where a blueprint of a previous website was used to replicate a site in Local, resulting in WPML database settings from the original site (anum.eu) persisting in the new site (vilandert.local). An error message indicates that the site has moved to a new location, and translations are not appearing correctly.
Solution:
1. Check the

wp-config.php

file for any code that defines the site and home URL. If found, remove it and set up the site URL in the WordPress admin area under Settings > General. For more details, refer to our documentation: https://wpml.org/errata/persistent-warning-this-site-has-moved-to-a-new-location/.
2. If the issue persists, follow these steps:
- Backup your database and website.
- Access your database and run the following query:

SELECT *<br />FROM wp_options<br />WHERE option_name = 'WPML_SITE_ID:ate'<br />OR option_name = 'WPML_TM_AMS'<br />OR option_name = 'otgs_wpml_tm_ate_cloned_site_lock'

Replace "wp_" with your database prefix.
- Delete the entries found by the query.
- Navigate to WPML > Settings in the admin area, select the Advanced Translation Editor (ATE), save the settings, and wait for ATE to activate.

If this solution does not seem relevant to your issue, please open a new support ticket at our 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 1 reply, has 2 voices.

Last updated by Long Nguyen 1 year, 1 month ago.

Assisted by: Long Nguyen.

Author Posts
October 14, 2023 at 7:14 pm #14577957

sipsik

There is an additional issue. The problem is, that I used a blueprint of a previous website in order to replicate this site in Local and I suppose some of the settings of this site (anum.eu) remain in the WPML database. Please see below the error message. And all this while the vilandert.local site is registered at WPML as vilandert.local with its own short key. And I am not using automatic translation on either of these sites.

This site has moved to a new location
You or someone else moved this site to hidden link. Please keep in mind that:
Translations that you do at hidden link will not appear on this site.
You cannot edit translations on this site.
The site at hidden link is using the same credits for automatic translation as this site.

If you didn't intend to move this site to hidden link, you can indicate that this site should be at hidden link.

October 16, 2023 at 4:58 am #14581165

Long Nguyen
Supporter

Languages: English (English )

Timezone: Asia/Ho_Chi_Minh (GMT+07:00)

Hi there,

Thank you for contacting WPML support, I'd be happy to help you with this issue.

Firstly, please check if you have a code that defines the site and home URL in the file wp-config.php. If yes, please remove it and setup the site URL in admin area > Settings > General.
Refer to this documentation https://wpml.org/errata/persistent-warning-this-site-has-moved-to-a-new-location/

Second, if the first step does not help, please try the workaround below:
- Backup your database and website before proceeding.
- Access your database, run this 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'

replace "wp_" with your database prefix.
- Delete those entries.
- Go to admin area WPML > Settings > Select the Advanced Translation Editor (ATE) > Save and wait for ATE to get activated.

Look forward to your reply.
Thanks

October 16, 2023 at 6:02 am #14581299

sipsik

Hi! Thank you for your support and suggestions.

It was enough to click on the error message ("you can indicate that this site should be at hidden link.") - now everything is working smoothly and WPML is registered for the correct domain (vilandert.local).