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
- 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Europe/Madrid (GMT+01:00)

Tagged: 

This topic contains 0 replies, has 0 voices.

Last updated by antonioI 4 hours, 2 minutes ago.

Assisted by: Marcel.

Author Posts
February 16, 2025 at 4:17 pm #16710960

antonioI

Background of the issue:
I am trying to delete the 'leftovers' of the default English en_US, but the loading icon spins indefinitely, and no leftovers are deleted. It worked fine for other languages. Additionally, I created and deleted the custom language en_gb. When I try to create it again, it says it still exists. That's because it remained in the PHPadmin database under the 'wpcb_icl_languages' table. I had to delete that entry manually from the database, so that I could recreate that language from the admin.

Symptoms:
1) When I try to delete the 'leftovers' of the default English en_US, the loading icon spins indefinitely, and no leftovers are deleted. It worked fine when I tried to remove 'leftovers' for other languages.
2) I created a custom language en_gb from the admin, and then deleted it. Then I tried to create it again but it says it already exists. In fact, it remained in the PHPadmin database under the 'wpcb_icl_languages' table, which is causing the error when I try to recreate it in admin. I had to delete that entry manually from the database, and then the admin allowed me to create it again.

Questions:
Why does the loading icon spin indefinitely when deleting 'leftovers' of the default English en_US?
How can I recreate a custom language after deletion, without manually deleting it from the database?

February 17, 2025 at 3:50 pm #16715437

Marcel
Supporter

Languages: English (English ) German (Deutsch )

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

Hi,

1) Please check if there are any errors in your browser's JavaScript console when deleting via the "x" icon. You can do this by right-clicking on the site, selecting Inspect, and navigating to the Console tab.

2) Try renaming the language by adding something like "2" in the language table. This way, you can avoid conflicts when re-adding it.

Best regards,
Marcel

February 20, 2025 at 9:47 pm #16731590

antonioI

Hello,

1) I don't see any errors. It dosn't work just with the English (maybe because it was set as main language in the past). But as I mentioned in my previous message, it works when deleting "leftovers" of other languages. I would assume that if it was a java error, it would occur with all languages. If you want to take a look about this, I don't mind giving you WP access, just please advice how to do it privately.

2) I already found the workaround, deleting it manually from the database. Then I can recreate the language with the same name. I just thought of mentioning this issue, as I thought you would care fixing it with the future updates.

February 21, 2025 at 8:31 am #16732537

Marcel
Supporter

Languages: English (English ) German (Deutsch )

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

1) Not necessarily. An error can also occur only for a specific (active) language.

2) This is a very bad idea, as it may cause compatibility issues with third-party plugins. I strongly advise against doing this. If necessary, you should only make these changes through the GUI as described by changing the name to ensure no code is duplicated.

Best regards,
Marcel

February 21, 2025 at 3:45 pm #16734463

Marcel
Supporter

Languages: English (English ) German (Deutsch )

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

Hi,

1) Please include provide FTP access. If your site goes down due to an error, I won’t be able to restore it without FTP access.

I would need to request temporary access (WP-Admin and FTP) to your site
– preferably to a test site where the problem has been replicated if possible –
in order to be of better help and check if some configurations might need to be changed

Your next answer will be private which means only you and I have access to it.

❌ Please backup your database and website ❌

✙ I would additionally need your permission to de-activate and re-activate Plugins and the Theme, and to change configurations on the site. This is also a reason the backup is really important.

✙ Please add the Links to the […] Edit Screen, the Page/Post where you insert the […] and the corresponding Front End Page/Screen

2) We do not have plans to integrate this via the GUI. The workaround is renaming the language works fine in that case.

Best Regards,
Marcel