Home›Support›English Support›[Resolved] Split: Unable to trigger upload dialog on WPML Media Translation
[Resolved] Split: Unable to trigger upload dialog on WPML Media Translation
This thread is resolved. Here is a description of the problem and solution.
Problem: The client reported issues with WPML Media Translation after updating WPML and using the Enable Media Replace plugin. Specifically, after replacing media files, the connection between the original and translated media was lost, causing translation issues and errors in media synchronization. Solution: 1. We confirmed that the issue does not occur with new image uploads but persists with existing media. Running a media synchronization for 'Existing content' at WPML > Settings > Media Translation can resolve the issue. 2. The issue with the Enable Media Replace plugin is known and a fix is expected as discussed here: https://wordpress.org/support/topic/problem-with-wpml-45/ 3. If the problem persists, especially with older media entries, syncing the existing media at WPML > Settings > Media Translation should resolve the issue.
If this solution does not resolve your issue or seems outdated, we recommend opening a new support ticket. We also 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.
I can not confirm the same issue testing "Enable Media Replace" with WPML on a new test site. WPML Media Translation keeps working as expected after replacing any original media.
The only problem I can confirm here is that the translation in some cases will still display the old media, but I can not confirm that the media can no longer be found in second languages, which is the case on your site after replacing an original image.
I will need to investigate further on your staging site and will then get back to you.
As you know, it is not the first time this happens and as my site gets bigger, it will be hard to redo pages and plug-ins are there to support an evolving website.
Thank you for getting closer to a lasting solution 😉
I adjusted the settings on your live site already, and in fact, there were only two custom fields from SiteGround. Not sure why the staging showed more entries.
The issue does currently not occur on your live site when testing with new image upload or after replacing a newly uploaded image.
You might still experience the issue on old entries, like for example on Media Translation's page 15 when trying to translate the file Elementor-post-screenshot_3474_2024-05-19-13-02-52_1e98342a.png, but the actual reason for this is that this file no longer exists on the server.
The same might happen if an original file exists but is not synced into all languages with WPML. Syncing the existing media at WPML > Settings > Media Translation will solve this issue.
Correct, hence the reason why I use Enable Replace Medi plug in and why sometimes WPML gets confused when I update/replace the original language THEN there are new URL versions of the "same file name".
THEN it either locks the Media Translate option (the + sign is not accessible) OR it won't update the FR Media Translation.
So you see how I am going around in circles sometimes...(when the original media gets updated via the Replace Media Library.
In my sandbox, I can currently not confirm the same issue.
The only issue I can confirm is that WPML will still display the old image in some cases and not consider the newly uploaded image. This is something that the "Enable Media Replace" team is already aware of, and this needs to be solved on their end.
On your staging, I replaced my newly uploaded image with a different version, and I can not confirm any issue with that on WPML > Media Translation.
Also, WPML is directly syncing the image into the second language.
This media sync seems not to work if you enable the option "Place the newly uploaded file in this folder:" before replacing the image, but the Media Translation dialog still works as expected.
Can you please take a look and let me know if you still can replicate the issue on the staging?
Now that I finally understand that the language that I upload my files are directly synced with WPML., I am more careful to upload the original images in the EN library and the FR in WMPL, which will help that times that the image was blocked from translation.
I guess I will pay more attention to that.
ONE LAST QUESTION BEFORE WE CLOSE THIS TOPIC:
When I am on the EN pages and switch to the FR language switcher, the language switcher EITHER doesn't switch OR it switches BUT reverts to EN and I need to click a few times to have it registered.
You refer to the links that you have put into the header? Note that this is not a WPML language switcher. These links will always lead to the homepage in each language.
So far, I was only able to confirm the issue if the current page is still saved as a draft. Can you please confirm if this is the cause of the issue?
If not, can you maybe name me an example of a page where the issue occurs?