Skip to content Skip to sidebar

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

Problem:
If you're experiencing a critical error when accessing the Media Translation feature in the WPML plugin, and the error message indicates a type mismatch in the constructor arguments for WPML_Media_Translations_UI, this might be due to a version mismatch between Media Translation and String Translation.
Solution:
We recommend updating all outdated plugins and themes. If the issue persists, follow these steps:
1. Ensure that your site is registered with a valid key.
2. Deactivate all plugins and switch to a default WordPress theme to check if the issue is resolved.
3. Reactivate your theme and plugins one by one to identify the problematic component.
4. Once identified, contact the support service of the theme or plugin causing the issue.

If this solution does not resolve your issue or seems outdated, please check the related known issues, verify the version of the permanent fix, and confirm that you have installed the latest versions of themes and plugins. If necessary, do not hesitate to open a new support ticket.

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 1 replies, has 0 voices.

Last updated by Carlos Rojas 2 weeks, 3 days ago.

Assisted by: Carlos Rojas.

Author Posts
October 31, 2025 at 12:04 pm

hounOC

Background of the issue:
I am trying to access the Media Translation feature from the WPML plugin. The issue can be seen on this page: hidden link.

Symptoms:
I received an error message: "There has been a critical error on this website." The debug log shows: "PHP Fatal error: Uncaught TypeError: WPML_Media_Translations_UI::__construct(): Argument #3 ($wp_locale) must be of type WP_Locale, WPMLSTMOWPLocaleProxy given". Chat GPT suggests that this is a known version mismatch between Media Translation 3.0.0 and String Translation 3.4.1.

Questions:
How can I resolve the version mismatch between Media Translation and String Translation?
Where can I find a compatible version of Media Translation for ST 3.4.x?

October 31, 2025 at 12:43 pm #17535853

Carlos Rojas
WPML Supporter since 03/2017

Languages: English (English ) Spanish (Español )

Timezone: Europe/Madrid (GMT+01:00)

Hi there,

I left the test site in a minimal installation with only the WPML plugins and a default WordPress theme active, and the issue disappeared. This means that the cause of the problem is not in the WPML plugins.

Follow these steps to isolate the cause of the issue:
- Start by activating the theme and then the rest of the plugins, one by one, until the issue appears and you find the culprit.

Once you find the culprit, contact their support service and ask them to take a look at their code.

Have an excellent day!