Skip to content Skip to sidebar

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

Problem:
The client is experiencing an issue with WPML registration despite using the correct 10-character alphanumeric site key. The error message indicates an invalid site key defined as the constant OTGS_INSTALLER_SITE_KEY_WPML, likely in wp-config.php.
Solution:
1. Verify the site key for case sensitivity and ensure it matches exactly what is provided in the WPML account. Use the following code snippet to check:

define('OTGS_INSTALLER_SITE_KEY_WPML', 'SITEKEY');

2. Refresh the repository information from the WordPress Dashboard > Updates page.
3. If the issue persists, follow these steps:
- Ensure a complete backup of the site, files, and database.
- Access the site's database via PHPMyAdmin.
- Navigate to the wp_options table and delete the wp_installer_settings key.
4. Check for any warning messages in WPML>>Support>>Installer Support. For more details on checking the installer support log for errors, visit WPML support documentation.
5. Consider potential conflicts with caching mechanisms or specific architectures like Bedrock that might affect key validation.

If these steps do not resolve the issue or if the solution seems outdated or irrelevant to your case, we recommend opening a new support ticket. We also 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. For further assistance, please contact us through the WPML support forum.

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

Last updated by Bigul 9 months, 3 weeks ago.

Assisted by: Bigul.

Author Posts
September 9, 2024 at 9:10 am #16154710

Bigul
WPML Supporter since 01/2013

Languages: English (English )

Timezone: Europe/Vienna (GMT+02:00)

Hello,

Thank you for the details. The issue is existing after the initial testing on your site. It shows the following warning in a minimal setup.

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.

I have one question: In which file do you add the *OTGS_INSTALLER_SITE_KEY_WPML* code? It does not appear in the wp-config.php file or functions.php of your theme.

--
Thanks!

Bigul

September 9, 2024 at 5:08 pm #16158113

Bigul
WPML Supporter since 01/2013

Languages: English (English )

Timezone: Europe/Vienna (GMT+02:00)

Hello,

Thank you for the details. I have shared the details with our team for an expert opinion. We will get back to you as early as possible. Please wait.

--
Thanks!

Bigul

September 11, 2024 at 10:09 am #16165732

Bigul
WPML Supporter since 01/2013

Languages: English (English )

Timezone: Europe/Vienna (GMT+02:00)

Hello,

We are still working on this. Just to make sure, please visit https://wpml.org/account/sites/ and make sure you are registered for the staging with
hidden link URL or hidden link URL.

Because the site admin URL is hidden link and hidden link is showing the following error now.

This page isn't working

*****.site redirected you too many times.

Try deleting your cookies.

ERR_TOO_MANY_REDIRECTS

--
Thanks!

Bigul

September 11, 2024 at 2:09 pm #16166865

edA

We are registered under the hidden link domain. Are you trying to say we need to be registered under the hidden link domain?

I'm still able to access the back end of the site through hidden link as I still am logged in, but I can confirm I am also seeing the ERR_TOO_MANY_REDIRECTS on the front page of the site. We haven't made any changes to the site. We also don't see any code changes that might have caused this issue (we noticed the addition of duplicator and twentytwentyfour and not much else). Using my backend access to the site and the Site Health Troubleshooting tool I can confirm that enabling sitepress-multilingual-cms (WPML) is what is causing the redirect issue.

Since it's not a code change, I'm assuming there was a database change that caused this redirect issue. Would you like us to "reset" the staging site by pulling a working copy of the database into it and recreating the test admin account? Or do you know the cause of the issue and can move ahead?

September 11, 2024 at 4:47 pm #16167644

Bigul
WPML Supporter since 01/2013

Languages: English (English )

Timezone: Europe/Vienna (GMT+02:00)

Hello,

Thank you for the details. One doubt. How are you managing the Dashboard URL as hidden link instead of hidden link

Also, are you using the same structure for your live site?

--
Thanks!

Bigul

September 11, 2024 at 5:26 pm #16167760

edA

We are using that same structure with our live site. It's the same structure through all of the sites we're currently using with WPML. It's a side effect of being on the Roots Bedrock architecture; that's just where the WordPress folders and files are in the filesystem.

September 11, 2024 at 5:41 pm #16167774

edA

Per the https://wpml.org/forums/topic/translation-of-the-strings-are-not-showing-in-the-frontend/ ticket the site at hidden link has had the database copied down from production and the test account already listed on this ticket recreated.

September 12, 2024 at 7:05 am #16169152

Bigul
WPML Supporter since 01/2013

Languages: English (English )

Timezone: Europe/Vienna (GMT+02:00)

Hello,

Thank you for the updates. I have shared it with our team. We will get back to you soon. Please wait.

--
Thanks!

Bigul

September 13, 2024 at 4:03 pm #16176812

Bigul
WPML Supporter since 01/2013

Languages: English (English )

Timezone: Europe/Vienna (GMT+02:00)

Hello,

The ticket is escalated to our second-tier team for detailed debugging. We will get back to you as soon as possible. Please wait.

--
Thanks!

Bigul

October 7, 2024 at 4:07 pm #16262864

Bigul
WPML Supporter since 01/2013

Languages: English (English )

Timezone: Europe/Vienna (GMT+02:00)

Hello,

Sorry for the late response. We were looking for a possible workaround for this. Unfortunately, we are unable to reproduce the issue exactly on our testing servers and sites.

While checking through SFTP we see that there are 3 environments and 3 keys defined in your setup. Normally, this shouldn’t cause any issues. However, if the data is cached (such as in deep op cache or object cache), it’s possible that this could lead to some misinterpretation. Maybe it will be a conflict with Bedrock architecture also.

Therefore please check it and let us know your feedback.

--
Thanks!

Bigul