Skip Navigation

This thread is resolved. Here is a description of the problem and solution.

Problem:
The client needed to translate a video that exceeded the upload limit of their website, and WPML Media Translations did not access the Media Library for existing files.
Solution:
Initially, we suggested increasing the server's upload limits by modifying the

php.ini

,

.htaccess

, or

wp-config.php

files with the following settings:

upload_max_filesize = 128M<br />post_max_size = 128M

However, the client was on shared hosting, which often does not allow such changes. As a workaround, we recommended using a shortcode to add the video URL, which then could be translated via WPML's String Translation. The client could add the video URL using the shortcode from our documentation here: WPML String Translation Shortcode.
Ultimately, the client discovered that the Avada video element already supported translating the video URL, which resolved the issue.

Please note that this solution might be outdated or not applicable to your specific case. If this does not resolve your issue, 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. If you still need assistance, please open a new support ticket 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.

This topic contains 3 replies, has 0 voices.

Last updated by saraG-2 1 month, 1 week ago.

Assisted by: Bruno Kos.

Author Posts
May 6, 2025 at 2:08 pm #17002164

saraG-2

Background of the issue:
I need to translate a video on my website hidden link. I have the English version, but it is over 70MB, which exceeds our upload limit. Usually, I would upload with FTP and then add it to the Media Library using a plugin like Add from Server. However, Media Translations doesn't access the Media Library and always wants to upload a new file.

Symptoms:
I can't upload the video for translation because it exceeds the upload limit, and Media Translations doesn't access the Media Library.

Questions:
How can I translate a video that exceeds the upload limit using WPML?

May 6, 2025 at 3:54 pm #17002743

Bruno Kos
WPML Supporter since 12/2018

Languages: English (English ) German (Deutsch ) French (Français )

Timezone: Europe/Zagreb (GMT+02:00)

Hi,

There is a feature request for WPML Media Translation to support selecting existing Media Library files, but unfortunately, there are no current plans for such development.

Are you unable to raise the upload limit on your server? If you're not on shared hosting, you can usually increase it by editing your `php.ini`, `.htaccess`, or `wp-config.php` files. For example, in `php.ini`:

upload_max_filesize = 128M
post_max_size = 128M

Then restart your web server (Apache or Nginx) for changes to take effect.

May 6, 2025 at 4:00 pm #17002779

saraG-2

Hello Bruno,

Unfortunately this is shared hosting (which is standard for my customer base).
Is there no other way? Many shared hosting don't allow changing the PHP limits at all.

And of course there's a +1 for the feature request using the media library. It would solve several problems with media translations.

Regards,
Sara

May 7, 2025 at 6:06 am #17004304

Bruno Kos
WPML Supporter since 12/2018

Languages: English (English ) German (Deutsch ) French (Français )

Timezone: Europe/Zagreb (GMT+02:00)

I've added your request to our feature ticket. How about this as a workaround?
https://wpml.org/documentation/support/wpml-coding-api/shortcodes/#wpml-string

So add your video URL like this, open the frontend and it will be registered in the String Translation. And you can translate the video url like that.

register.jpg
translated.jpg
embedd.jpg
May 7, 2025 at 10:14 am #17005532

saraG-2

Hi Bruno,

Thank you for the help. This workaround is adventurous (I had to use the complete video embed code), but it works.

And then I noticed that the Avada video element offers the Video URL as translatable string anyway. It was just translated incorrectly by our translator. 😉

So my problem is resolved, both with your workaround and within the normal translation editor.

Regards,
Sara