As per previous support ticket filed, we are an agency attempting to transfer a client site to another custodian, which means that the WPML license the site is using must be swapped with a new one. We were instructed to hardcode these keys in wp-config.php but we still get the message:
"You are using an invalid site key defined as the constant OTGS_INSTALLER_SITE_KEY_WPML (most likely in wp-config.php). Please remove it or use the correct value in order to be able to register correctly."
The keys belong to an account held by dan.mcgraw@hopeindustrial.com, and are for the following sites: hidden link hidden link hidden link
Thanks for your patience. Here is the ticket. Please let me know once you have edited the wp-config.php file and removed all redirection code or any other entries that may be interfering with the registration process.
I've looked at this response. I have coded the key switching in wp-config exactly as the reply indicates:
if (isset($_ENV['PANTHEON_ENVIRONMENT'])) {
switch($_ENV['PANTHEON_ENVIRONMENT']) {
case 'live':
define( 'OTGS_INSTALLER_SITE_KEY_WPML', '--redacted--' );
break;
case 'test':
define( 'OTGS_INSTALLER_SITE_KEY_WPML', '--redacted--' );
break;
case 'dev':
define( 'OTGS_INSTALLER_SITE_KEY_WPML', '--redacted--' );
break;
}
}
To note, the later line incorrectly references "defined" as the function to set the constant - it should be "define".
The text that follows is very unclear as to whether it is a reply to a previous attempt or if it's remarking on the code that is provided as the actual solution. I don't believe it is helpful in this case - if you disagree, I would appreciate being guided through the steps they have taken that is in any way different from the above approach.
To be clear, I haven't even gotten the DEV site to successfully register its key - there is no point to trying to register LIVE if we cannot perform updates on the DEV site properly.
I included the code as instructed. Here is an excerpt from our log showing that it was detected:
[23-Feb-2026 20:17:08 UTC] [WP-CONFIG] Loading Pantheon wp-config.php for environment: dev
[23-Feb-2026 20:17:08 UTC] [WP-CONFIG] Defining OTGS_INSTALLER_SITE_KEY_WPML as f569...... for environment dev
Error still persists: "You are using an invalid site key defined as the constant OTGS_INSTALLER_SITE_KEY_WPML (most likely in wp-config.php). Please remove it or use the correct value in order to be able to register correctly."
NOTE: Due to the transfer of custody of the client site to another developer, I am asking for this ticket to be transferred to a different account: dan.mcgraw@hopeindustrial.com
A contact form submission from this account has just been filed. Please close this ticket and pursue further investigation with that entity instead. Thank you.