Background of the issue:
We are attempting to set up WPML on Pantheon, in a standard dev -> test -> live scenario, in which code is deployed upstream and database and assets are pulled down. We've followed the documentation references on both WPML and Pantheon, such as setting the license keys in wp-config, etc. We've attempted uninstalls and reinstalls, both with the installer plugin and manually, all with the same results.
Symptoms:
We are encountering issues in which WPML thinks our sites are not the original sites / inquires about copies. Also, WPML on live is referencing a URL that does not exist anywhere in our environments. At this point, we are unable to properly configure WPML for our sites.
Questions:
Is there a step-by-step process/formula that works to install WPML in a Dev, Test, and Live environment on Pantheon?
When using WPML, there is a sitekey which let's you register WPML and each site needs it's own.
Then there is also a site ID which links your site to the cloud ID where your translations via automatic trnasltaion are stored.
In order to get this flow working you will need the following:
1. Create a separate WPML site key for each environment (Dev, Test, Live) and set it with the WPML installer constant. Doing this in wp-config.php overrides whatever is in the DB, so moving DBs between envs won’t break registration.