Skip Navigation

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
- 7:00 – 15:00 7:00 – 15:00 7:00 – 15:00 7:00 – 15:00 7:00 – 15:00 -
- - - - - - -

Supporter timezone: Pacific/Easter (GMT-05:00)

This topic contains 1 reply, has 2 voices.

Last updated by Ilyes 8 months, 3 weeks ago.

Assisted by: Ilyes.

Author Posts
March 1, 2024 at 10:43 am #15362324

Anja Slowinski

I am trying to: set up WPML Media. After activating the plugin there is one step necessary. This fails with this error message:
atal error: Uncaught Error: Argument 3 passed to WPML_Media_Translations_UI::__construct() must be an instance of WP_Locale, instance of WPML\ST\MO\WPLocaleProxy given, called in /var/www/cms/wp-content/plugins/wpml-media/classes/menus/wpml-media-menus.php on line 89
in /var/www/cms/wp-content/plugins/wpml-media/classes/menus/wpml-media-translations-ui.php on line 43

Call stack:

WPML_Media_Translations_UI::__construct()
wp-content/plugins/wpml-media/classes/menus/wpml-media-menus.php:89
WPML_Media_Menus::display()
wp-content/plugins/wpml-media/classes/class-wpml-media.php:361
WPML_Media::menu_content()
wp-includes/class-wp-hook.php:324
WP_Hook::apply_filters()
wp-includes/class-wp-hook.php:348
WP_Hook::do_action()
wp-includes/plugin.php:517
do_action()
wp-admin/admin.php:259

This happens on our test and our local development wordpress setting

March 1, 2024 at 9:30 pm #15364970

Ilyes
Supporter

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

Timezone: Pacific/Easter (GMT-05:00)

Hello,

Thank you for contacting WPML support team,

Please check if the issue persists in a minimal environment by following these steps.
1- Deactivate all the plugins except WPML CMS and Media Translation.
2- Switch for a moment to a WordPress default theme like Twenty Twenty-one.

If the issue is gone, activate them one by one to see which one there is causing an interaction issue.

If not, do you have any kind of custom code/function in your site similar to this case? : https://wpml.org/forums/topic/cannot-open-media-translation-ui-page-php-fatal-error-occurs/

Please backup your database before performing the above test
Best regards,

The topic ‘[Closed] WPML Media fatal error in setup’ is closed to new replies.