Skip Navigation

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

Problem:
You are trying to delete deactivated languages via the WPML UI, but after deletion and refreshing the page, the languages reappear.
Solution:
To resolve this issue, follow these steps:
1. Activate the languages you want to delete.
2. Ensure that all related taxonomies are deleted. Refer to the guide on deleting languages and plugin data: Deleting Languages and Plugin Data by Doing a WPML Reset.
3. Go to WPML -> Languages.
4. Click on 'Add/Remove languages'.
5. Select the language (e.g., Croatian) and save.
6. Navigate to Appearance -> Menus.
7. Delete the menus associated with the language.
8. Return to WPML -> Languages.
9. Click on 'Add/Remove languages' again.
10. Unselect the language and save.

If this solution does not apply to your case, or if it seems outdated, 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 visit our support forum: 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 8 replies, has 3 voices.

Last updated by Osama Mersal 1 year, 1 month ago.

Assisted by: Osama Mersal.

Author Posts
May 13, 2024 at 3:01 pm #15621536

georgL-15

I am trying to delete the deactivated languages via WPML UI. After I click delete and it spins a little bit, it seems that the language is deleted. After refreshing the page all the "deleted" languages pop up again in the table.

I need to delete all the deactivated languages but seems that it is bugging.

May 13, 2024 at 3:59 pm #15621790

Mateus Getulio
Supporter

Languages: English (English ) Portuguese (Brazil) (Português )

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

Hello,

Thanks for contacting us.

Before your ticket is assigned to one of my colleagues, please allow me to walk you through some initial debugging steps. This will help speed up the support process.

If the loading wheel is spinning indefinitely when you're trying to delete a language, it often indicates a problem with the website's backend processes

1. Increase Execution Time: The script might be timing out. Increase the PHP maximum execution time in your website's settings. This can often be done in the .htaccess file, php.ini file, or directly in WordPress if your hosting allows it.

2. Check for JavaScript Errors: Use your browser's developer tools (usually accessible by pressing F12) to check the console for JavaScript errors. If there are errors, they might point to the cause of the issue.

3. Inspect Network Activity: In the same developer tools, you can also monitor network activity to see if a specific request is failing. Look for any requests that do not complete or return an error.

4. Disable Caching Plugins: If you're using any caching plugins on your WordPress site, temporarily disable them as they can sometimes interfere with backend operations.

5. Server Resources: If your hosting server is under-resourced or experiencing high usage, it might not be able to complete the process. Check your hosting environment to ensure it has enough resources.

6. Deactivate non-WPML plugins for now: Please create a full website backup, then disable all the non-WPML plugins (leave just the WPML plugins active) and see if the issue is still happening.

Please let us know how things go.
Mateus

May 14, 2024 at 7:37 am #15623533

georgL-15

Hello.

The loading wheel does not keep spinning. It looks like it works and deletes the stuff from database (it will get removed from the Site Languages table too) but once I refresh or revisit the page the deleted languages are back in that table just like before.

May 14, 2024 at 8:51 am #15624149

Osama Mersal
WPML Supporter since 02/2020

Languages: English (English ) Arabic (العربية )

Timezone: Africa/Cairo (GMT+03:00)

Hi,

Thanks for contacting WPML forums support. I'll be glad to help you today.

1) Please share a screen-recorded video while reproducing the issue.

Also, kindly check this guide. (https://wpml.org/faq/how-to-completely-remove-a-language-from-your-site/)

2) It's not related to the issue, but according to your Debug.info, the WP memory limit needs to be increased. PHP memory is fine, but WordPress uses 40Mb as default. The minimum requirements for WPML are 128 MB. (Kindly check this page https://wpml.org/home/minimum-requirements/)

You can increase it by adding the following code in your wp-config.php file right before the /* That's all, stop editing! Happy publishing. */ line:

/* Memory Limit */
define('WP_MEMORY_LIMIT', '256M');
define( 'WP_MAX_MEMORY_LIMIT', '256M');

Best regards,
Osama

May 14, 2024 at 9:39 am #15624555

georgL-15

Hello

I have uploaded a quick screen record here - hidden link

As you can see, I delete the languages from the table and they disappear from there too. Once I refresh or revisit the page they are back in the table.

I'm also aware of the guide you shared, tried deleting .mo and .po files too but unfortunately the issue persists.

Also increased the memory limit, thanks.

May 14, 2024 at 11:28 am #15624935

Osama Mersal
WPML Supporter since 02/2020

Languages: English (English ) Arabic (العربية )

Timezone: Africa/Cairo (GMT+03:00)

Hi,

Thanks for the video. The issue is caused by the taxonomies. Please activate the languages, make sure that all taxonomies are deleted, and delete the languages.

Please check the note in step 1 of this guide. (https://wpml.org/documentation/getting-started-guide/language-setup/deleting-languages-and-plugin-data-by-doing-a-wpml-reset-on-your-site/#step-1-remove-the-secondary-languages-and-all-existing-translations)

Best regards,
Osama

May 14, 2024 at 1:16 pm #15625552

georgL-15

Hello

I have deleted the taxonomies, the table shows 0 taxonomies too, but the issue still persists.

May 14, 2024 at 1:35 pm #15625615

Osama Mersal
WPML Supporter since 02/2020

Languages: English (English ) Arabic (العربية )

Timezone: Africa/Cairo (GMT+03:00)

Hi,

Thanks for your update. I would need to look closely at your site, so I would need to request temporary access (WP-Admin and FTP)
Preferably to a test site where the problem has been replicated.

Your answer will be private, meaning only you and I can access it.

❌ Please backup your database and website ❌

✙ I need your permission to deactivate and reactivate the plugins and themes and change site configurations. This is also why the backup is critical.

✙ I also need your permission to take a local copy of your site to debug the issue without affecting your live site.

Best regards,
Osama

May 15, 2024 at 8:29 am #15628281

Osama Mersal
WPML Supporter since 02/2020

Languages: English (English ) Arabic (العربية )

Timezone: Africa/Cairo (GMT+03:00)

Hi,

Thanks for the access details. I deleted the Croatian language by the following steps:

1- Go to WPML-> Languages
2- Click Add/Remove languages
3- Select Croatian and save
4- Go to Appearance-> Menus
5- Delete the Croatian menus
6- Go to WPML-> Languages
7- Click Add/Remove languages
8- Unselect Croatian and save

Please apply the same steps to the Hungarian language, and check if it's deleted correctly.

Best regards,
Osama