This thread is resolved. Here is a description of the problem and solution.
Problem: The client is experiencing issues with permanently deleting media files in a multilingual WordPress site managed with WPML. The media files, once translated, cannot be deleted unless they are removed in every language. Solution: To ensure that media files are deleted across all languages when removed from the original language, follow these steps: 1. Navigate to WPML -> Settings -> Posts and pages synchronization. 2. Select the 'When deleting a post, delete translations as well' option. 3. Click the 'Save' button. This setting will synchronize the deletion process across all languages, meaning that deleting an image in the original language will also remove its translations.
If this solution does not resolve your issue, or if it seems outdated or irrelevant to your specific case, we recommend opening a new support ticket. Additionally, we 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 at 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.
Background of the issue:
I am trying to manage media files on my site hidden link using WPML. I have read the Translate Media Documentation but am unsure if I understand it correctly.
I am experiencing issues with permanently deleting media files unless I delete them in every language that WPML has duplicated.
Symptoms:
WPML inhibits the possibility to permanently delete a media file if it has been translated.
Questions:
Could you please clarify the effect of each of the following options if checked/unchecked in the WPML Settings -> Media Translation Section?
If I uncheck all the 'duplicate media' options as follows, will the media file still be displayed on translated pages?
You can check if some attachments can be duplicated to translated content: (what do you intend by "attachments" ?)
1- Translate existing media in all languages (please clarify: duplicate)
2- Duplicate existing media for translated content (please clarify: duplicate)
3- Duplicate the featured images for translated content (please clarify: duplicate)
Media Translation Documentation
1- When uploading media to the Media library, make it available in all languages
2- Duplicate media attachments for translations (please clarify: duplicate)
3- Duplicate featured images for translations (please clarify: duplicate)
Before we proceed, I want to stress the following point: This might be an issue with syncing the media files to FileBird folders. The setting is in Settings -> FileBird. You can read about it in the guide here.
hidden link
Please see the attached screenshot.
Does this help to sync the deleted media files between the FileBird folders?
If not, please proceed with the following.
Can you please help us replicate this problem with the Filebird Pro plugin?
(We don't have the latest version of the Pro plugin.)
We need to replicate this issue on a fresh WordPress installation. Then, I'll be able to escalate it to our compatibility team. For this, I created a test website with a clean WordPress install. You can access it through this link:
hidden link
With this link, you'll be directly logged in.
Could you please install the Filebierd Pro plugin and see if the issue is replicable on a clean WordPress installation?
I've configured WPML to have Italian as the default language and English and German as the second language.
Please also ensure you install the latest version of the plugin.
Please let us know when everything is finished, and you can replicate the problem.
Important! Do not import your site to the test site. We must replicate the problem on a fresh, clean WordPress installation.
The FileBird plugin's Sync WPML option has moved to FileBird -> Tools. Please see the attached screenshot.
hidden link
With the free plugin, I could replicate the problem of deleting images from one language and not deleting them from the other languages. I'm checking further and will update you here.
I jumped to conclusions in my previous reply. To make images in the media library of other languages deleted when the original image is deleted, proceed with the following.
1. Go to WPML -> Settings -> Posts and pages synchronization.
2. Select the 'When deleting a post, delete translations as well' option. Please see the attached screenshot.
3. Click the Save button.
Now, when an image is deleted from the original language, the same images in other languages will also be deleted. I checked it on my test site, and it worked.