Skip Navigation

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

Problem:

PHP Fatal error: Uncaught InvalidArgumentException: Argument ID must be numeric and greater than 0. in /wp-content/plugins/sitepress-multilingual-cms/classes/translations/class-wpml-translation-element.php:29

Solution:
https://wpml.org/errata/fatal-error-while-trying-to-add-a-post-that-contains-images-to-the-translation-basket/

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 2 voices.

Last updated by Bruno Kos 3 months, 2 weeks ago.

Assigned support staff: Bruno Kos.

Author Posts
March 5, 2021 at 11:46 am

clausR-2

We are experiencing an issue in the translation management, where it get stuck on loading when select a page for translation. admin-ajax.php shows error 500 in the console.

March 5, 2021 at 12:15 pm
March 7, 2021 at 1:55 pm #8245395

Bruno Kos
Supporter

Languages: English (English ) German (Deutsch )

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

Hi,

Can you check and try this?
https://wpml.org/errata/fatal-error-while-trying-to-add-a-post-that-contains-images-to-the-translation-basket/

Does it work if you use that workaround?

Regards,
Bruno Kos

March 8, 2021 at 7:31 am #8248253

clausR-2

That seams to have done the trick. My issue is resolved now. Thank you! Can we expect this fix in the next update ? 🙂

March 8, 2021 at 7:36 am #8248265

Bruno Kos
Supporter

Languages: English (English ) German (Deutsch )

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

Hi,

Yes, it should go possibly even in the next version of Media Translation plugin, as the fix was already merged into master and develop branches and should be included in the next bug release.

When you see next Media Translation update, check the changelog to see if it is in:
https://wpml.org/download/wpml-media/?section=changelog

Changelog entry as of now: "Fixed the error when post with non-existing image is being sent to translations in TM Dashboard."

Regards,
Bruno Kos