Skip Navigation

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

Problem:
The client is experiencing issues when copying their Production environment to the Development environment on a multisite network hosted on WPEngine. After the copy, WPML detects a new address for the site and prompts a migration process. Despite completing the process, the client encounters the same message again, and the Production environment's connected site list grows with each attempt.

Solution:
1. If you're experiencing a similar issue after copying your Production environment to your Development environment, it's important to ensure that you're not forcing HTTPS or a specific domain in your wp-config or elsewhere in your installation. This could cause the site to be accessed with two domains, leading to the repeated migration banner.
2. Follow the instructions in our guide on Using Advanced Translation Editor when you move or use a copy of your site to resolve the issue.
3. Make sure to be using our latest WPML version (4.6.9 at the time of writing this summary).

Please note that the solution provided might be irrelevant if it's outdated or not applicable to your case. We highly recommend checking related known issues on the WPML Known Issues page, verifying the version of the permanent fix, and confirming that you have installed the latest versions of themes and plugins. If the problem persists, please open a new support ticket with us.

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

Last updated by Alejandro 1 year, 1 month ago.

Assisted by: Alejandro.

Author Posts
January 30, 2024 at 3:19 pm #15244950

johnM-108

My site is a multisite network hosted on WPEngine. I am trying to copy the Production environment to the Development environment, but am running into problems with WPML.

====================================================================
Step 1: Copy Production to Development environment using WPEngine

Simply using the WPEngine admin, I chose to copy the Production environment to the Deveopment environment, including all files and databases.

====================================================================
Step 2: WPML detected a new address for this site

After the copy is complete, I login to the Development site admin and am presented with the "WPML detected a new address for this site" message (see Attachment 1). I choose the "Yes" option and click Continue.

====================================================================
Step 3: Translation credtis for this site

Now, I'm presented with the message you see in Attachment 2. I choose the "Yes (recommended)" option and click Continue.

====================================================================
Step 4: Migration Code

(Sorry I didn't get a screen capture of this step.) Now, I'm given instructions regarding the migration code. I click the provided link which opens-up the admin for the Production environment. I go to the "Connected Sites" section, copy the migration code, paste it into the Development site page and click Continue.

====================================================================
Step 5: You're all set

Now, I'm shown the "You're all set" message and click Close (see Attachment 3).

====================================================================
Step 6: WPML detected a new address for this site

After clicking close in the previous step, I'm immediately shown the same message as in Step 2 above, but the message reads:
"Looks like this site was previously at hidden link and now it's all hidden link." which is confusing.

What's going on? What do I do?

====================================================================
Bonus Question: Production environment connected site list grows

I performed the steps above first thing this morning, then restored a backup of the Development environment so I could grab these screenshots. On the Production site, the connected site list added two new instances (one for each attempt) of the hidden link site.

Is this right/normal?

Attachment-5.jpg
Attachment-4.jpg
Attachment-3.jpg
Attachment-2.jpg
Attachment-1.jpg
January 31, 2024 at 11:08 am #15248634

Alejandro
Supporter

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

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

Ok, in step 2 you see a migration banner and the entire behaviour and reason to be there is found here: https://wpml.org/documentation/translating-your-contents/advanced-translation-editor/using-advanced-translation-editor-when-you-move-or-use-a-copy-of-your-site/

The option you selected is ok when you have 2 sites working in parallel which is ok. the second message instead is appearing because you probalby have a code in your wp-config or somewhere in your installation where you're forcing HTTPS or a specific domain and this means that the site is not using 1 but 2 (being redirected or accessing one or another).

thanks to this situation, your site is constantly being accessed in 2 domains but you can't really see it and the system is probably not picking up the correct one and end up showing incorrectly the same URL in the migration banner (and shows the migration banner in the first place).

To have it fixed, please follow the instructions on this guide: 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

Regards.

January 31, 2024 at 1:25 pm #15249502

johnM-108

Great, thank you! I've asked this question of multiple WPML support members. Nobody told me that there was a BUTTON to fix this. Thank you, twice!

January 31, 2024 at 4:00 pm #15250286

Alejandro
Supporter

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

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

Oh it's my pleasure.

This feature is relatively new and came only with WPML version 4.6.8 so if you asked and that version wasn't released then that might've been why they never mentioned it.

However that option will only appear if the problem is happening, so if you don't see it, it means the problem might look the same but it's actually different.

Regards!