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.

Sun Mon Tue Wed Thu Fri Sat
- 8:00 – 15:00 8:00 – 15:00 8:00 – 15:00 8:00 – 15:00 8:00 – 15:00 -
- 16:00 – 17:00 16:00 – 17:00 16:00 – 17:00 16:00 – 17:00 16:00 – 17:00 -

Supporter timezone: Europe/Rome (GMT+01:00)

This topic contains 68 replies, has 3 voices.

Last updated by Alejandro 1 year, 1 month ago.

Assisted by: Alejandro.

Author Posts
September 12, 2023 at 9:37 am

bjornL-7

This site has moved to a new location

September 12, 2023 at 10:01 am
September 12, 2023 at 10:03 am #14382561

Carlos Rojas
Supporter

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

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

Hi there,
This is the forum ticket where we will continue working on this issue

Please share the URL of the new staging site and confirm you have checked the two errata pages I shared.

Looking forward to your message.
Regards,
Carlos

September 12, 2023 at 10:27 am #14382757

bjornL-7

Same URL to the staging site: hidden link
I have not done ANYTHING since the staging site was created. I have not even got the question that asks if the site should be moved or if it's a copy.

wp-config file does not contain WP_HOME nor WP_SITEURL

September 12, 2023 at 10:36 am #14382803

Carlos Rojas
Supporter

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

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

Hi there,
Thank you for your message

I will consult my colleagues about this issue and I will get back to you as soon as I have an answer.

September 12, 2023 at 11:59 am
September 12, 2023 at 12:08 pm #14383509

bjornL-7

Two questions:
1. Where do I "Enable CTE"?
2. Should I do this on the staging site, or the live site?

September 12, 2023 at 12:43 pm #14383833

Carlos Rojas
Supporter

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

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

Hi,

1.- You can enable the Classic Translation Editor (CTE) in WPML -> Settings

2.- You should do this in the staging site

September 13, 2023 at 6:50 am #14387177

bjornL-7

Hi,
I have followed the instructions and deleted the three entries in the db, and re-enabled ATE.

1. How do I confirm that this fixed the issue? I don't see the moved warning at least. Could you perhaps login and see if the issues are resolved?
2. Should I push the staging site to our live environment now?

September 13, 2023 at 6:56 am #14387235

Carlos Rojas
Supporter

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

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

Hi there,

1.- The issue is solved as soon as you stop seeing the warning

2.- Unfortunately you can't push this staging site to live because the previous steps just disconnect them and create an independent account in our servers. If your plan is to use the staging site to make changes and then push this 'updated' staging site to the live environment, then you I recommend you to follow the steps described in this FAQ: https://wpml.org/faq/automatic-wpml-registration-using-php-for-easy-moves-between-production-development-and-staging/

September 13, 2023 at 7:19 am #14387293

bjornL-7

So I can add this line (with the correct site key for staging and live) to the wp-config.php file of the staging and live site:

define( 'OTGS_INSTALLER_SITE_KEY_WPML', 'your-site-key' );

And THEN push the current staging to live?

September 13, 2023 at 7:25 am #14387319

Carlos Rojas
Supporter

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

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

You should add this key to the live site before creating the staging. Then make sure that when you create the staging you don't get the warning and if everything goes correctly, then you can push back from the staging to live.

September 13, 2023 at 8:58 am #14388159

bjornL-7

OK so I have
* Added the line in wp-config.php for the live site, with the live site-key
* Pushed live to staging

I still get the "This site has moved to a new location" warning on the staging site.

Should I now add the line in wp-config.php for the staging site, with the staging site-key?

September 13, 2023 at 9:42 am #14388739

Carlos Rojas
Supporter

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

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

Hi there,

I have been consulting with my colleagues what is the best workflow and how to avoid any issues when creating the staging site and then pushing it back to production. We decided to escalate this ticket to our 2nd tier of support so our specialists can take a deeper look at this a find a solution. I will get back to you as soon as I get a final answer.

Thank you very much for your patience and understanding!

September 13, 2023 at 11:19 am #14389687

Carlos Rojas
Supporter

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

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

Hi there,

After discussing this scenario with my colleagues we have a workaround (our specialists are still working on a final solution for future releases of the plugin).

First, you need to follow the steps described in this message: https://wpml.org/forums/topic/this-site-has-moved-to-a-new-location-14/#post-14383357

Second: When you push the staging to production, you need to use the migration code to merge both sites and don't lose any information. In this link you will find the steps to follow: https://wpml.org/documentation/automatic-translation/automatic-translation-subscription-for-multiple-sites/

The topic ‘[Closed] This site has moved to a new location’ is closed to new replies.