Hi, I have a staging version of the site where I tested removing the WPML language with all other plugins deactivated, and removing the language took from 15:39 to 19:10. I don't understand why it takes so long when I added the language just to export the files in translation for analysis. I suspect that ajax is not working, because I had to confirm the deletion of attachments many times, each time the window lost focus. Is this normal behavior or does WPML not support the Brave browser?
Languages: English (English )German (Deutsch )French (Français )
Timezone: Europe/Zagreb (GMT+01:00)
Hi,
So the removal of the French took as many hours and after site reload, it was in fact never removed?
Can I ask you the following? In order to debug this issue, I will install Duplicator plugin, will create packages and will try this on my localhost and escalate further to 2nd tier.
I will exclude all the media files, etc, to keep the package minimal.
Languages: English (English )German (Deutsch )French (Français )
Timezone: Europe/Zagreb (GMT+01:00)
Hi,
I'm afraid I have no solution or workaround, apart from repeating the process several times until finished:
I tried this on my localhost and you can see how it works, it removes e.g. 100 images and about 1-2 minutes, even though this can vary because I did this when I disabled all the other plug-ins on the website.
hidden link
The code in wp-content/plugins/sitepress-multilingual-cms/classes/post-translation/endpoints/DeleteTranslatedContentOfLanguages.php is responsible for this. That runs the logic in \WPML\DatabaseQueries\TranslatedPosts::getIdsForLangs in wp-content/plugins/sitepress-multilingual-cms/classes/database-queries/translated-posts.php which obtains the IDs of all posts in said language.
However due to complexity of all this we have no workaround that would speed things up I'm afraid.
That being said, this issue has been escalated to WPML developers.
I will keep this thread updated as soon as I get any new information from them!