Skip Navigation

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

Problem:
The client was unable to change their site from development to production due to a persistent message and was unable to refresh or remove the 'development site' notice.
Solution:
We recommended the client to:
1. Ensure a full backup of the site.
2. Add the following code snippet to the theme's

functions.php

file:

add_action('init', function(){<br />    if (isset($_GET['remove_wpml_key'])) {<br />        $installer =  WP_Installer::instance();<br />        $installer->remove_site_key('wpml', true);<br />        echo "Done. Remove the code from " .__FILE__;<br />        exit;<br />    }<br />}, 999);

3. Visit the site's URL with the query parameter

?remove_wpml_key

to trigger the code and remove the WPML site key.
4. After confirming the key has been removed, delete the code snippet from the

functions.php

file.
5. Attempt to register WPML again with a new key.
In a separate attempt, we also suggested:
1. Deactivate the WPML plugin from the individual site within the network.
2. Activate the WPML plugin network-wide through the WordPress network admin dashboard.
3. After activating WPML network-wide, unregister the site using the network URL provided.

If these solutions do not apply or are outdated, or if you're still experiencing issues, we highly recommend checking related known issues, verifying the version of the permanent fix, and confirming that you have installed the latest versions of themes and plugins. Should the problem persist, please open a new support ticket with us.

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

Last updated by Bruno Kos 8 months, 2 weeks ago.

Assisted by: Bruno Kos.

Author Posts
April 8, 2024 at 6:57 am

nicolasF-39

Sie verwenden einen abgelaufenen Account von WPML.

April 8, 2024 at 8:01 am
April 9, 2024 at 8:02 am #15497273

Bruno Kos
Supporter

Languages: English (English ) German (Deutsch ) French (Français )

Timezone: Europe/Zagreb (GMT+01:00)

Can you please try the following:

1. Ensure you have a full backup of the site
2. Add the provided code snippet to your theme's `functions.php` file:

add_action('init', function(){
		if (isset($_GET['remove_wpml_key'])) {
			$installer =  WP_Installer::instance();
			$installer->remove_site_key('wpml', true);
			echo "Done. Remove the code from " .__FILE__;
			exit;
		}
}, 999);

3. Visit hidden link to trigger the code and remove the WPML site key.
4. After confirming the key has been removed, delete the code snippet from your `functions.php` file.
5. Attempt to register WPML again with a new key.

April 9, 2024 at 9:28 am #15497872

nicolasF-39

Hello Bruno,

so did everything until step 5.. I got the message "Done. The Site key is removed" when I visited the Url you provided in Step 3. So i removed the code from the php function again. What exactly am I doing in Step 5 because when i go under registered sites in my wpml account, Mountain Tours is still there... Should I delete it and then add it there again or should I just try to reload it in the wordpress backend like in the picture I attached. Ps its still showing the option to "deregister from your Site" as you can see.

Bildschirmfoto 2024-04-09 um 11.26.21.png
April 9, 2024 at 1:20 pm #15499375

Bruno Kos
Supporter

Languages: English (English ) German (Deutsch ) French (Français )

Timezone: Europe/Zagreb (GMT+01:00)

It seems as if the process has not succeeded.

Can you install https://wordpress.org/plugins/pexlechris-adminer/ and provide me FTP access as well?

I marked your next reply as private.

April 9, 2024 at 1:46 pm
April 10, 2024 at 5:58 am #15502101

Bruno Kos
Supporter

Languages: English (English ) German (Deutsch ) French (Français )

Timezone: Europe/Zagreb (GMT+01:00)

Can you please try the following:

1. Deactivate the WPML plugin from the individual site within your network.
2. Activate the WPML plugin network-wide through your WordPress network admin dashboard.
3. After activating WPML network-wide, can you try to unregister the site from the network URL hidden link?

April 10, 2024 at 7:12 am #15502379

nicolasF-39

thanks Bruno. It works now