Skip Navigation

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.

Sun Mon Tue Wed Thu Fri Sat
12:00 – 20:00 12:00 – 20:00 12:00 – 20:00 12:00 – 20:00 12:00 – 20:00 - -
- - - - - - -

Supporter timezone: Asia/Karachi (GMT+05:00)

This topic contains 5 replies, has 0 voices.

Last updated by Noman 1 month, 1 week ago.

Assisted by: Noman.

Author Posts
March 26, 2025 at 10:53 am #16861926

annS-8

Background of the issue:
I am trying to switch my site from development to production. I followed the instructions provided here: https://wpml.org/faq/how-to-remove-the-this-site-is-registered-on-wpml-org-as-a-development-site-notice/ to swap the development site to production.

Symptoms:
The banner indicating the site is registered as a development site still remains after following the migration instructions.

Questions:
Can you assist with deregistering and reregistering the plugin on your side?

March 26, 2025 at 11:02 am #16862021

Noman
WPML Supporter since 06/2016

Languages: English (English )

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

Hi,

Thank you for contacting WPML Support. Could you please delete the existing site key and create a new one by following below steps:

1. Please login to your WPML.org account >> Go to the Sites page: https://wpml.org/account/sites/
2. Delete the existing site key.
3. Please login to your site and go to the Dashboard >> Plugins >> Add new > Commercial tab and click the Unregister WPML from this site link if that link exists.
4. Then please click the Register WPML link.
5. Click the Get a key for this site link.
6. It will generate the Key for your site.
7. Copy the key, and paste it back into the input box, and press the Register button.
8. Clear all sorts of site/server/CDN cache

And see if this resolves your issue.

Here is a doc for more details:
https://wpml.org/faq/how-to-remove-the-this-site-is-registered-on-wpml-org-as-a-development-site-notice/

Thank you

Step 3 - Get a key for this site.png
Step 2 - Register WPML.png
Step 1 - unregister wpml.png
March 27, 2025 at 10:20 am #16867444

annS-8

Hi there, thanks for your reply.

Unfortunately I am struggling to follow the Add new plugin step because of the way our hosting is setup on WordPress. I don't have the right access and gaining that access will be difficult (see attached)

Is there another workaround?

Thanks for your help.

Screenshot 2025-03-27 at 10.19.59.png
March 27, 2025 at 10:38 am #16867607

Noman
WPML Supporter since 06/2016

Languages: English (English )

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

Okay, in that case, you may try the below steps:

1. Login to your WPML.org account >> Go to the Sites page: https://wpml.org/account/sites/
2. Delete the existing site key and create a new one with your production site URL: hidden link

3. Edit the 'wp-config.php' file of your WordPress installation and place the following line of code:

define( 'OTGS_INSTALLER_SITE_KEY_WPML', 'your-site-key' );

4. Make sure to paste this line of code right above where it reads:

/* That's all, stop editing! Happy publishing. */

Please, get your site key from your wpml.org account and adjust the provided line of code accordingly.

5. After that, please visit your site frontend again and see if that message goes away.

Here is a doc for more details:
https://wpml.org/faq/automatic-wpml-registration-using-php-for-easy-moves-between-production-development-and-staging/

If you find any issue in following the above steps, you may hide that notice from frontend by adding below CSS code in the custom CSS section of the theme:

.otgs-development-site-front-end {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
}

Please let me know the results,
Thank you

April 3, 2025 at 3:04 pm #16893336

annS-8

Hi there,

We are live now with the languages and the banner is gone: hidden link

But we have the attached error in our HubSpot which we can't seem to resolve – please can you advise?

Thanks
Nathan

Screenshot 2025-04-03 at 16.03.00.png
April 3, 2025 at 4:30 pm #16894078

Noman
WPML Supporter since 06/2016

Languages: English (English )

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

Glad to hear the development site banner is gone now.

This message is usually shown when the WPML is not registered properly. You may delete the existing site key from WPML.org Sites(https://wpml.org/account/sites/) page and make sure to generate a new key with correct site URL like this: hidden link

After that add that key in wp-config.php file and clear all sorts of cache and see if this resolves the issue.

Please let me know the results,
Thank you

The topic ‘[Closed] Switching from development to production’ is closed to new replies.