Skip Navigation

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

Problem:
A blank screen appears and after enabling debug mode, the following error appears in some configurations:

PHP Fatal error: Uncaught InvalidArgumentException: element_id and type do not match in \wp-content\plugins\sitepress-multilingual-cms\classes\core-abstract-classes\class-wpml-set-language.php on line xx

Solution:
See this errata: https://wpml.org/errata/fatal-error-invalidargumentexception-element_id-and-type-do-not-match/

Relevant Documentation:
- https://wpml.org/errata/fatal-error-invalidargumentexception-element_id-and-type-do-not-match/

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.

Tagged: ,

This topic contains 3 replies, has 2 voices.

Last updated by Waqas Bin Hasan 1 year, 6 months ago.

Assisted by: Waqas Bin Hasan.

Author Posts
July 14, 2023 at 6:32 am #14037387

chantalM-5

https://pastebin.com/pi9RpTaa

The plugin is currently disabled.

July 14, 2023 at 8:40 am #14038435

Waqas Bin Hasan
Supporter

Languages: English (English )

Timezone: Asia/Karachi (GMT+05:00)

Hi,

Thank you for contacting the support.

The issue has already been reported and I advise to check this errata https://wpml.org/errata/fatal-error-invalidargumentexception-element_id-and-type-do-not-match/ for details and workaround.

Regards.

July 14, 2023 at 4:36 pm #14040897

chantalM-5

Hello,

The issue mentioned earlier is resolved, but now there are a lot of products in the webstore that have lost their translated versions and a lot of products are now showing duplicates in the original language (NL) and have no translations. All product images have also disappeared...

Right now every issue we're having with the webstore is caused by WPML for one reason or the other. We don't report 90% of our issues but solve it ourselves. If it turns out that translated products need to be redone we want to be reimbursed for the costs we make.

See attached image for an example.

example for WPML.PNG
July 17, 2023 at 6:02 am #14045833

Waqas Bin Hasan
Supporter

Languages: English (English )

Timezone: Asia/Karachi (GMT+05:00)

Thank you for confirming about that WPML activation issue has been resolved.

For the other issues, I recommend opening separate ticket(s) because as per forum policy we can only handle one issue per ticket. So others looking for a particular solution can find it easily.

P.S.: This ticket 'll be closed as resolved.