I am trying to add a translation for a media file (PDF). This worked fine for several files, but one doesn't get saved. I selected a different file for the translation, entered a different name, and after trying to save it, WPML shows a "plus" icon like nothing has been done. If I click that icon, the name I entered is gone.
When I look in the uploads directory, I do see the uploaded file. The file is named wrong (WPML adds "-1" to the file name) and WPML creates some duplicate files that should not be there, but that's another bug I reported before. My concern now is that this particular media translation does not get saved. How do I solve that?
Hi, before one of my colleagues can take the ticket, I'll provide a few steps to resolve the issue.
First, I have noticed you do not have enough memory allocated to your WP - please see this document - https://wpml.org/home/minimum-requirements/ - and follow the guidance to increase the memory allocation.
Then you should check the following:
. Check file permissions: Make sure the file permissions for the uploads directory are set correctly. The directory should have read and write permissions for the web server.
. Clear cache: Clear any caching plugins, browser cache, and server cache to ensure you see the latest version of the media translation.
. Try a different method: If the issue persists, you may want to try adding the media translation using a different method. For example, you can add the media translation directly from the Media Library instead of through the WPML Translation Editor.
If those things do not help, please let us know so we can try and help you further.
Thanks for the suggestions. I set the memory limit to 128 Mb. When I checked again, the translated name was available for the media file that had the issue. I did not enter it again though, so this may indeed have been cache related. I thought the WordPress Admin was always excluded from all caches.
It could be an issue when the WP memory limit is lower than the requirements and caching issue.
Glad to hear it works. Let me know if you have any questions.