Skip to content Skip to sidebar

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

Problem:
The client is unable to register WPML on their multisite network because the site key is not matching, and they receive an error message indicating that they are using an expired WPML account despite having an active plan.
Solution:
We recommend two options depending on whether the client wants all sites in the multisite to use WPML or only specific subsites:
Option 1 (all subsites use WPML):
1. Unregister the plugin at the sub-site (e.g., https://poxclin.com/ch) using the 'unregister' link from the Commercial screen.
2. Network activate the WPML plugin from the main site's plugins page and register it with the key from the WPML.org accounts > sites page.
This should resolve the site key mismatch and allow WPML to be used on any website in the network.
Option 2 (specific sites use WPML):
1. Unregister the WPML plugin at the specific sub-site using the 'Unregister WPML from this site' link on the Commercial screen.
2. Register a new site on WPML.org for only this sub-site to generate a dedicated site key, and apply it to register the WPML plugin.
This treats the WPML installation as if it were a single site, requiring individual registration for each sub-site.

If these steps do not resolve your issue, or if the solution seems outdated or irrelevant to your specific 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. Additionally, you can open a new support ticket for further assistance at 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.

This topic contains 14 replies, has 2 voices.

Last updated by Lucas Vidal de Andrade 1 year ago.

Assisted by: Lucas Vidal de Andrade.

Author Posts
June 26, 2024 at 12:12 pm #15833544
June 26, 2024 at 6:02 pm #15836532

Lucas Vidal de Andrade
WPML Supporter since 11/2023

Languages: English (English ) Spanish (Español ) German (Deutsch ) Portuguese (Brazil) (Português )

Timezone: America/Sao_Paulo (GMT-03:00)

Hey there, we are still checking into your issue. I get back to you as soon as I have new information from our account team.

June 27, 2024 at 8:32 am #15841823

susiendhar kumaran

Hi support, Any update on this issue?

June 27, 2024 at 1:35 pm #15844390

Lucas Vidal de Andrade
WPML Supporter since 11/2023

Languages: English (English ) Spanish (Español ) German (Deutsch ) Portuguese (Brazil) (Português )

Timezone: America/Sao_Paulo (GMT-03:00)

Not yet, we are still investigating what's causing this. Meanwhile, could please provide me with access to hidden link? We'll only check some information and won't change any settings. Please make sure to have a full website backup before providing access.

You will find the needed fields for this below the comment area when you log in to leave your next reply. The information you will enter is private which means only you and I can see and have access to it.

IMPORTANT

- Please make a backup of site files and database before providing us access.
- If you do not see the wp-admin/FTP fields this means your post & website login details will be made PUBLIC. DO NOT post your website details unless you see the required wp-admin/FTP fields. If you do not, please ask me to enable the private box. The private box looks like this:

hidden link

June 28, 2024 at 4:21 pm #15853300

Lucas Vidal de Andrade
WPML Supporter since 11/2023

Languages: English (English ) Spanish (Español ) German (Deutsch ) Portuguese (Brazil) (Português )

Timezone: America/Sao_Paulo (GMT-03:00)

Thank you for sharing access. I'll get back to you as soon as I have new information.

July 2, 2024 at 6:31 am #15872758

susiendhar kumaran

Hi Lucas. Any update?

July 2, 2024 at 2:57 pm #15876444

Lucas Vidal de Andrade
WPML Supporter since 11/2023

Languages: English (English ) Spanish (Español ) German (Deutsch ) Portuguese (Brazil) (Português )

Timezone: America/Sao_Paulo (GMT-03:00)

Hey there,

It seems there's some misconfiguration on the multisite setup, regarding the registration of WPML. Our specialists advised you to “to have it registered on the main site and then activate the plugin for the network.”

Please check out our documentation on that:
https://wpml.org/documentation/support/multisite-support/

If it still does not work as intended after that, please provide us with access to the main site. I've activated the private fields below.

July 2, 2024 at 3:09 pm #15876491

susiendhar kumaran

Hi Lucas,

I upgraded you're privileges(super-admin). now you can access main site now.

July 2, 2024 at 3:42 pm #15876720

Lucas Vidal de Andrade
WPML Supporter since 11/2023

Languages: English (English ) Spanish (Español ) German (Deutsch ) Portuguese (Brazil) (Português )

Timezone: America/Sao_Paulo (GMT-03:00)

Did the solution we offer not work? Please share the details with me, which steps you followed and what was the result. This way I can better analyze what can be causing this behavior.

Waiting for your feedback.

July 2, 2024 at 3:55 pm #15876834

susiendhar kumaran

Hi Lucas,

It is already activated in the two network site's only so I deactivated the all wpml and wpml related plugins and activated it still have the same error.

We have lots websites have wmpl so we are not manually setup the key. we have config file it automatically setup the key in all wpml related site.

basically it is single code WordPress code run on mulltiple websites.

July 2, 2024 at 6:34 pm #15877645

Lucas Vidal de Andrade
WPML Supporter since 11/2023

Languages: English (English ) Spanish (Español ) German (Deutsch ) Portuguese (Brazil) (Português )

Timezone: America/Sao_Paulo (GMT-03:00)

Hey there, so we were able to figure out what was going on. I just want to confirm before offering the solution: do you want to have WPML on all subsites of poxclin.com/wp?

Let me know. The solution varies, depending on what exactly you want to achieve.

July 3, 2024 at 5:58 am #15880429

susiendhar kumaran

Hi Lucas,

As said earlier we have lot of websites. can you suggest both solutions because some websites have all subsite as wpml and some websites are one only 2 subsites as wpml.

in poxclin case ch and be are the wpml websites others are normal multisites.

Thanks,

July 3, 2024 at 11:42 am #15883661

Lucas Vidal de Andrade
WPML Supporter since 11/2023

Languages: English (English ) Spanish (Español ) German (Deutsch ) Portuguese (Brazil) (Português )

Timezone: America/Sao_Paulo (GMT-03:00)

Hey there,

Sure. The 2 options are: when you want all sites in the multisite to have WPML active, or if you want to have specific subsites with WPML and others without.

The issue we found in the example you sent, is that WPML wasn't network activated, and some keys weren't in fact matching. The explanation about network activation is here:

Option 1 (all subsites use WPML):
• in the sub-site hidden link unregister the plugin by using the unregister link from the Commercial screen hidden link and deactivate it
• in the main site on the plugins page hidden link network activate the WPML plugin, register it with the key from the wpml.org accounts > sites page for hidden link

-> this should resolve the communication issues and particularly the message about site key not matching
-> by network activating the WPML plugins they will be already activated and possible to use on any of the websites on the network

Note that option 1 is the preferred way and the one we mention on our documentation for registering and using WPML on a multisite installation for WordPress. Remembering the documentation: Multilingual Support for WordPress Multisites. In this option, only the main site must be registered with a key.

Option 2 (specific sites in the multisite use WPML, while others don't):
if the client does not want to have the WPML plugin network activated, which means activated on all the websites of the multisite network

• in the hidden link website on the Commercial screen hidden link unregister the WPML plugin by using the link Unregister WPML from this site that is available
• follow the link to register a new site on wpml.org for only this sub-site under his account, this will generate a dedicated site key to the specific sub-site that should be applied to the site to register WPML plugin

-> this should resolve the communication issues and particularly the message about site key not matching
-> by using this option the client is in effect using WPML as if it was a single site installation hence needs to register under his account and individually activate WPML on each of the sub-sites on the multisite installation
___________

This will require some extra work, but done correctly you should waste no more time with is. Let me know.

July 3, 2024 at 1:47 pm #15885089

susiendhar kumaran

HI Lucas,

when I click unregister I got this message. "Site-key was set by OTGS_INSTALLER_SITE_KEY_WPML, most likely in wp-config.php. Please remove the constant before attempting to unregister"

We are using OTGS_INSTALLER_SITE_KEY_WPML to automatically register in the sites.

https://wpml.org/faq/automatic-wpml-registration-using-php-for-easy-moves-between-production-development-and-staging/

now in my secrets.yml file
stage.poxclin.com: ************
poxclin.com: **************

can you confirm we need to update the secrets.yml file like this?

stage.poxclin.com/ch/wp/: ************
poxclin.com/ch/wp/: **************
stage.poxclin.com/be/wp/: ************
poxclin.com/be/wp/: **************

11.png
July 3, 2024 at 6:19 pm #15886424

Lucas Vidal de Andrade
WPML Supporter since 11/2023

Languages: English (English ) Spanish (Español ) German (Deutsch ) Portuguese (Brazil) (Português )

Timezone: America/Sao_Paulo (GMT-03:00)

Hey there,

I'm assuming you are following option #01, is that right?

If so, you need to completely remove all the site keys, independent of how they were implemented. If you have them in the secret.yml file, remove them from there and also remove any site key setting from wp-config.php. Subsequently, you can register the main site (hidden link) via the admin dashboard, as instructed, and network activate it.