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.

This topic contains 3 replies, has 2 voices.

Last updated by Mateus Getulio 1 year, 3 months ago.

Assisted by: Mateus Getulio.

Author Posts
August 22, 2023 at 1:26 pm #14271641

kristoferS-2

Tell us what you are trying to do?

I have created a staging site and when I open the dashboard I get the error "This site has moved to a new location". I expect to be able to choose between COPY or MOVE, as I have in the past, but intead of getting these options I only get an option to move by clicking a link:

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

Is there a similar example that we can see?

In another ticket with the same issue for another site (same account) I got help from Christopher Amirian remotely to downgrade the site to force the migration dialog to show the MOVE and COPY options. Now I tried to downgrade this other site to cms 4.6.4 by myself but there is no change in the dialog.

What is the link to your site?
Should be in the debug info. I would rather not disclose the site publicly.

August 23, 2023 at 12:42 pm #14278503

Mateus Getulio
Supporter

Languages: English (English ) Portuguese (Brazil) (Português )

Timezone: America/Sao_Paulo (GMT-03:00)

Hi there,

Thanks for your contact!

Could you please check if your case is the same as in this errata page: https://wpml.org/errata/persistent-warning-this-site-has-moved-to-a-new-location/? If it is, just test one of the workarounds suggested there.

Another attempt that you can try is to re-migrate the website. And if the problem remains, e might be facing an interaction issue with a third-party functionality, in this case:

- Make sure to have a complete backup
- Deactivate all the plugins that are not related to WPML
- Switch for a moment to a WordPress default theme like Twenty Twenty-one
- If the issue is gone, activate one by one to see with which one there is an interaction issue

Please give it a try and let us know how it goes. Thank you.

Regards,
Mateus.

August 23, 2023 at 2:29 pm #14278977

kristoferS-2

Hi Mateus,

Found another thread with the same issue as me: https://wpml.org/forums/topic/this-site-has-moved-to-a-new-locationthis-site-has-moved-to-a-new-location/

What I did to resolve my issue was

1. Delete the staging site
2. Delete records from wp_options database table as per the link above

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'

3. Create a new staging site
4. Login as admin on the new staging site

After that I got the wizard to ask me if I wanted to move or copy. Naturally I chose copy.

I also found that you can hardcode the site key in wp-config.php here: https://wpml.org/faq/automatic-wpml-registration-using-php-for-easy-moves-between-production-development-and-staging/

This is not viable when using Softaculous WordPress management, since it would replace wp-config.php when creating new staging sites and has no possibility to refresh an existing with production data.

Luckily, my web host (binero.se) offers WP Manager in cPanel which is a more modern solution to the same problem. It can update existing staging sites without deleting and reacreating and will not touch wp-config.php.

I wish I knew all this a year ago. Would have saved me so much time fiddling with license activation and lost translation memory accounts.

August 23, 2023 at 6:38 pm #14280299

Mateus Getulio
Supporter

Languages: English (English ) Portuguese (Brazil) (Português )

Timezone: America/Sao_Paulo (GMT-03:00)

Hi there,

Thanks for your reply, and glad that you were able to resolve this.

Please make sure to read and follow our doc related: https://wpml.org/documentation/translating-your-contents/advanced-translation-editor/using-advanced-translation-editor-when-you-move-or-use-a-copy-of-your-site/, in order to understand better these options and avoid having the issue again.

Since you confirmed it is fixed now, I hope we are good to close here. Feel free to contact us any time if you need assistance with our products.

Kind regards,
Mateus.