[Resolved] managing media translation - cannot use wordpress media library
This thread is resolved. Here is a description of the problem and solution.
Problem: The client is facing issues with media translation in WPML. Specifically, they are unable to replace an English PDF with an Italian version, encountering problems with file submission and duplication, and observing that deleted media still appears in WPML media translation. Solution: 1. Increase the WP Memory Limit to at least 128MB, preferably 256MB, to improve performance and potentially resolve the issue. This adjustment can be made in the wp-config.php file of the WordPress installation by adding the following lines:
2. By design, WPML does not allow selecting already uploaded media files for replacement; a new upload is necessary. 3. To ensure a media file does not appear in WPML's Media Translation after deletion, it must be removed from all language versions. This can be done using the Language Switcher in the media library. For detailed guidance on setting WP Memory Limits, visit WPML documentation. Learn more about media translation settings at WPML Media Translation Settings.
If these steps do not resolve your issue, or if the solution seems outdated or irrelevant to your specific case, we recommend opening a new support ticket. We also highly suggest checking related known issues at WPML 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 contact us through the 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:
We have problems trying to introduce a custom media for an English PDF. we are trying to custom this media for Italian so when people click to download English PDF, they download the Italian for the Italian version of the website
Symptoms:
Questions:
Here is the problem we are experiencing
1 When we try to replace the English PDF with the Italian PDF, it is refusing to allow this file to be submitted. Please see video. hidden link
2 When we try to replace the English PDF, it is only giving us the ability to upload a version rather than search for a version already in the WordPress library - this is creating duplications of pdf docs
3 When we delete from our WordPress media library all PDF assets except English version, mysteriously when we go to the WPml media translation, we can still see the old Media that we have deleted from WordPress media
I have shot a video here to help you understand more hidden link
We focus on one issue per ticket in our technical support forum. Otherwise, tickets can get cluttered and confusing for both users and supporters. In this ticket, I'll help you with the Media translation issue. For the other issue, please open a new ticket for each issue. However, I think you have already done it, and those tickets are already assigned to one of my colleagues.
1. Thanks for the video! Please correct the following and see if it helps.
The debug info you attached shows that your server WP Memory Limit is 40M. Our recommendations are to have the following as minimal requirements:
- PHP 7 and above (this OK with your installation) with a WP Memory Limit of at least 128MB while 256MB is recommended.
MySQL 5.6 and above.
Please follow this link for detailed documentation:
Is it possible for you to change those to the minimum requirement?
You may need to contact your hosting provider for that. Meeting those baseline requirements is critical before debugging and sometimes solves issues you experience. The most important thing is to raise the WP Memory Limit. Please try to raise it before you contact your hosting company. You can do it from the wp-config.php file in your WordPress installation. Insert this code in that file:
To prevent the media file from showing in WPML -> Media translation, you must delete it from all the languages. You can do it by switching the Language Switcher at the top admin bar while in the media library. Please see the attached screenshot.
As I mentioned, we focus on one issue per ticket in our technical support forum. Otherwise, tickets can get cluttered and confusing for both users and supporters.
Please open a new ticket with the PDF issue and describe it in detail.
One of our supporters will continue to help you with it.