This thread is resolved. Here is a description of the problem and solution.
Problem:
If you're experiencing issues with registering the live site keys for WPML in Pantheon's environment, you might find that the usual instructions do not work if you register WPML on the development site before pushing the plugin to the live site.
Solution:
We recommend using the following code in your wp-config file to dynamically define the site keys based on the Pantheon environment:
if(!defined('OTGS_INSTALLER_SITE_KEY_WPML')){<br /> switch($_ENV['PANTHEON_ENVIRONMENT']){<br /> case 'live':<br /> $site_key_wpml = 'your-site-key-for-live';<br /> break;<br /> case 'test':<br /> $site_key_wpml = 'your-site-key-for-test';<br /> break;<br /> case 'dev':<br /> $site_key_wpml = 'your-site-key-for-dev';<br /> break;<br /> default:<br /> $site_key_wpml = 'your-site-key-for-default';<br /> }<br /> define('OTGS_INSTALLER_SITE_KEY_WPML', $site_key_wpml);<br />}Ensure to replace 'your-site-key-for-live', 'your-site-key-for-test', 'your-site-key-for-dev', and 'your-site-key-for-default' with your actual keys. This approach allows you to manage translations effectively across different environments without issues.
This solution might be irrelevant if it's outdated or not applicable to your case. We highly recommend checking related known issues at https://wpml.org/known-issues/, verifying the version of the permanent fix, and confirming that you have installed the latest versions of themes and plugins. If this does not resolve your issue, please open a new support ticket.
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 1 reply, has 2 voices.
Last updated by 2 years, 2 months ago.
Assisted by: Mihai Apetrei.