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.
Sun | Mon | Tue | Wed | Thu | Fri | Sat |
---|---|---|---|---|---|---|
- | 9:00 – 18:00 | 9:00 – 18:00 | 9:00 – 18:00 | 9:00 – 18:00 | 9:00 – 18:00 | - |
- | - | - | - | - | - | - |
Supporter timezone: Asia/Karachi (GMT+05:00)
This topic contains 12 replies, has 0 voices.
Last updated by Waqas Bin Hasan 3 hours, 39 minutes ago.
Assisted by: Waqas Bin Hasan.
Author | Posts |
---|---|
March 4, 2025 at 5:28 pm #16775347 | |
T4ng |
Background of the issue: Symptoms: Questions: |
March 5, 2025 at 11:40 am #16778182 | |
Waqas Bin Hasan Supporter
Languages: English (English ) Timezone: Asia/Karachi (GMT+05:00) |
Hi, Thank you for contacting the support. WordPress does not support SVG by default and the support is added via 3rd party plugins (or custom code). Most of these may not be compatible with WPML, like the "Safe SVG" which I can't find on our compatibility list. I'll recommend checking with the plugin author, because I see the plugin was updated some months ago (https://wordpress.org/plugins/safe-svg/) and may need a compatibility update. Theme and plugin authors are welcome to join WPML’s Go Global program, which helps them make their code multilingual ready. Together with WPML’s compatibility team, they can test and confirm that their theme or plugin works with WPML. See https://wpml.org/documentation/support/go-global-program/ for details and you can refer your theme/plugin provider to this as well. Regards. |
March 5, 2025 at 11:51 am #16778273 | |
T4ng |
I'll contact them. |
March 5, 2025 at 11:54 am #16778319 | |
T4ng |
Coud you create a test environment where we could reproduce the issue? Best Regards, |
March 5, 2025 at 12:44 pm #16778575 | |
Waqas Bin Hasan Supporter
Languages: English (English ) Timezone: Asia/Karachi (GMT+05:00) |
Sure, I've created hidden link (one-click login). Remember to configure WPML as needed and add your desired SVG plugin, before going to reproduce the problem. About the SVG Support plugin, that's still not compatible with WPML and our team has tried several times to contact them and even created a report in their support, which was closed without resolution, a long time ago. You may try the fix provided for the SVG Support plugin, but with only this plugin and its latest version. This fix may not work for Safe SVG plugin. Again it is better to check with Safe SVG support and get any relevant/technical information and then I can check with our team for any possibility. |
March 5, 2025 at 2:35 pm #16779477 | |
T4ng |
I configured the environment to perform the same tests as in my local environment. 1. I activated WPML Media Translation Results : hidden link 2. With SVG Support activated instead of Safe SVG, I also get the same results : "Security check failed" (see attached) In the end both of these plugins allow to upload SVG to the library, but none of them allows to translate SVG to WPML Media *anymore*. While both obviously still used to until very recently. |
March 6, 2025 at 5:57 am #16781069 | |
Waqas Bin Hasan Supporter
Languages: English (English ) Timezone: Asia/Karachi (GMT+05:00) |
Thank you for the updates, I've observed the issue in the sandbox site. I'm checking with my team and 'll get back to you accordingly. |
March 6, 2025 at 11:55 am #16782992 | |
Waqas Bin Hasan Supporter
Languages: English (English ) Timezone: Asia/Karachi (GMT+05:00) |
Thank you for your patience and cooperation. I've escalated the matter to our 2nd tier team for some insights, I'll get back to you as soon as I hear back. |
March 11, 2025 at 9:49 am #16800519 | |
Waqas Bin Hasan Supporter
Languages: English (English ) Timezone: Asia/Karachi (GMT+05:00) |
Thank you for your patience and cooperation. I consulted with the team and looks like there's the problem with the SVG image itself. Because I just tried with another image and it worked just fine. You can login to the same sandbox site and try yourself. I've activated Safe SVG plugin at the moment. Please try different SVG images, I got some from hidden link and not every image here works as well. So probably there's the issue in how SVGs are being generated. |
March 11, 2025 at 10:15 am #16800727 | |
T4ng |
Hi, Thanks from getting back to me. The image(s) I tested could be uploaded from the library. Why would it be different when processed through WPML Media Translation? By the way, I tried to upload the adobe logo (from your list) Still, I noticed the file was appended -1 >> adobe-1.svg (french library). Which is a sign that the image was somewhat processed, and saved in the db. Media Translation obviously adds a layer that prevents many svg to be properly uploaded, and it's new. Therefore, I tried to test against previous versions of code by downgrading WPML Media trough the CLI. the cli sayed it wordk, the admin kept saying WPML Media Translation was still in the lastest version. So that I didn't know where I sit. That's something you might want to test. |
March 12, 2025 at 7:47 am #16805314 | |
Waqas Bin Hasan Supporter
Languages: English (English ) Timezone: Asia/Karachi (GMT+05:00) |
Thank you for the updates, I've checked on those lines already, however, I gave it a fresh try again, here's hidden link">my screen recording. As you can see that this is even not reproducible anymore, not even with the same image I had tried previously. I can upload SVGs to media library in any language and then can add translated version vis Media Translation as well. Yes, its true that when I upload via media translation, the preview of uploaded image isn't available at first, but after saving it is visible in Media Translation page, as well as, if I click edit again. Can you try in a different environment? And if you do and find the same issue there, please provide the temporary access (WP-Admin and FTP), preferably to a test site where the problem has been replicated. Your next answer will be private, to share this information safely. Also provide detailed steps to reproduce the issue and links to pages in the admin and on the frontend. IMPORTANT: Please take a complete backup of the site to avoid data loss. I may need to activate/deactivate plugins also. See https://wpml.org/purchase/support-policy/privacy-and-security-when-providing-debug-information-for-support/ for details on privacy and security. P.S.: If you don't see the section for providing access information, do not write in the message box or the information may appear as public. |
March 12, 2025 at 9:16 am #16805839 | |
T4ng |
Hi, Unfortunately, I must say I just don't get it. To make it short, you say the issue doesn't even occur *anymore*... "not even with the same image I had tried previously." So, I just did the as well on your test env., and indeed it works. So I did a new test, from *my* environments (my website), same tests as I did las week, and it works as well! How comes it's different now? The plugins versions didn't change, WP neither... nb: I did a small config adjustement to meet the expected behavior on our website (see attached). |
March 12, 2025 at 12:57 pm #16807127 | |
Waqas Bin Hasan Supporter
Languages: English (English ) Timezone: Asia/Karachi (GMT+05:00) |
Well I'm also surprised and can't find a logical reason to this, that nothing changed in terms of WP and Plugins and it is working now. In the sandbox, I didn't even change that setting which is by default turned off. That setting simply adds a DB record for the same image, for other translations. Since it is off by default, the same image is used without a translated DB entry. Anyways, I think we can close here as issue isn't reproducible anymore. However, please free to report back if you find any clue or even open a new ticket if anytime in future it happens again. Have a great time. |