[Resolved] Deleting deactivated languages does not work
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.
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.
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.
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.
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:
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.
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.
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.
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
Manage Cookie Consent
We use cookies to optimize our website and services. Your consent allows us to process data such as browsing behavior. Not consenting may affect some features.
Functional
Always active
Required for our website to operate and communicate correctly.
Preferences
The technical storage or access is necessary for the legitimate purpose of storing preferences that are not requested by the subscriber or user.
Statistics
We use these to analyze the statistics of our site. Collected information is completely anonymous.The technical storage or access that is used exclusively for anonymous statistical purposes. Without a subpoena, voluntary compliance on the part of your Internet Service Provider, or additional records from a third party, information stored or retrieved for this purpose alone cannot usually be used to identify you.
Marketing
These cookies track your browsing to provide ads relevant to you.