Skip to content Skip to sidebar

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 1 reply, has 2 voices.

Last updated by Waqas Bin Hasan 1 year, 11 months ago.

Assisted by: Waqas Bin Hasan.

Author Posts
August 27, 2023 at 1:04 am #14295431

chrisS-20

I'm trying to configure WPML on the development (hidden link) and live (hidden link) environment of my website. This does not seem to work.

Ideally, I'd like to define the constant in my config file because of the way our hosting environment works this would allow me to define it one way for the dev environment and another way for the live environment. However, as soon as I add those constants to the config file it throws an error saying it's already registered.

I've tried removing the constants and unregistering the websites, but that didn't work. Also, the registration screen on the commercial tab will not accept the key when I paste it in there and it throws an error saying unable to parse the data.

It would seem to me the plugin is still checking in the database for registration and that there is something messed up in there, but this sort of defeats the purpose of hardcoding the site key into the config file in the first place.

Screenshot 2023-08-26 at 6.03.54 PM.png
August 28, 2023 at 11:39 am #14300223

Waqas Bin Hasan
WPML Supporter since 05/2014

Languages: English (English )

Timezone: Asia/Karachi (GMT+05:00)

Hello Chris,

Thank you for contacting the support.

May I ask you to try the followings please?

IMPORTANT: Take full backup of your website and database beforehand. It is highly advised to try the following on a staging/dev site first, so your live website isn't compromised.

- Deactivate all plugins including WPML's.
- Switch to a standard theme like 2021 or 2023.
- Delete WPML plugins.
- Download latest production versions of WPML plugins from https://wpml.org/account/downloads/.
- Upload and activate WPML plugins from Plugins -> Add New -> Upload.
- Delete old site key(s) for the said website(s) from your wpml.org account.
- Create new site key(s) accordingly, for production and development (wherever you are trying).
- Register WPML using the new site key.
- If everything goes fine, activate other plugins and switch back to your theme.

Please see https://wpml.org/faq/install-wpml/ for details. And let me know how it goes and I'll try my best to further assist you on the matter.

Regards.