[Resolved] Site keeps moving between environments in WPEngine
This thread is resolved. Here is a description of the problem and solution.
Problem:
Issues with WPML key registration in migrations between staging and production environments.
I am trying to push changes from the staging to the dev environment (to update the site's content in this environment) and from staging (to prod to publish new tested content).
However, I got this message every time we push the changes from staging to prod:
“This site has moved to a new location
You or someone else moved this site to https://staging.my-domain.com. Please keep in mind that:
Translations that you do at https://staging.my-domain.com will not appear on this site.
You cannot edit translations on this site.
The site at https://staging.my-domain.com is using the same credits for automatic translation as this site.
Also, next time If possible, you can preserve the values of "WPML_SITE_ID:ate", "WPML_TM_AMS", "otgs_wpml_tm_ate_cloned_site_lock" in the wp_options table. These are three option keys that trigger the notice.
Note that you must do it before WPML request to the server i.e. change the value even before you load the site after DB restoration.
We are still working on both issues, and I hope it will be improved in future versions.
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.
I am trying to push changes from staging to dev environment (to update the site's content in this environment) and from staging (to prod to publish new tested content).
However, I got this message every time we push the changes from staging to prod:
“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
Link to a page where the issue can be seen: hidden link
We had resolved this issue before we moved to WPEngine hosting. This platform copies the entire file system and the database to the destination environment, and it makes some replacements on the wp-config.php file and the database to fix the domain mismatches.
This way both sites can use the same credits or subscription for credits and share the same translation memory and glossary on the Advanced Translation Editor.
When you move the site from staging to live and live to staging the ATE settings are copied too. Due to this, you see this notice.
We have an internal ticket and this may be improved in future versions to provide a more dynamic solution.
Also, next time If possible you can preserve the values of "WPML_SITE_ID:ate", "WPML_TM_AMS", "otgs_wpml_tm_ate_cloned_site_lock" in the wp_options table. These are three option keys that trigger the notice.
Note that you must do it before WPML request to the server i.e. change the value even before you load the site after DB restoration.
We are still working on both issues and I hope it will be improved in future versions.
I've followed your steps, and it worked for me. However, I'll need to repeat this process in a daily basis.
I hope you automate this process soon in the next update. It would be great for us and for all other companies that work with the WP Engine environments.
Thank you again and have a wonderful day!
Manage Cookie Consent
We use cookies to optimize our website and services. Your consent allows us to process data such as browsing behavior. Not consenting may affect some features.
Functional
Always active
Required for our website to operate and communicate correctly.
Preferences
The technical storage or access is necessary for the legitimate purpose of storing preferences that are not requested by the subscriber or user.
Statistics
We use these to analyze the statistics of our site. Collected information is completely anonymous.The technical storage or access that is used exclusively for anonymous statistical purposes. Without a subpoena, voluntary compliance on the part of your Internet Service Provider, or additional records from a third party, information stored or retrieved for this purpose alone cannot usually be used to identify you.
Marketing
These cookies track your browsing to provide ads relevant to you.