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
9:00 – 18:00 9:00 – 18:00 9:00 – 18:00 9:00 – 18:00 9:00 – 18:00 - -
- - - - - - -

Supporter timezone: Africa/Cairo (GMT+03:00)

Tagged: 

This topic contains 16 replies, has 2 voices.

Last updated by Osama Mersal 1 year, 10 months ago.

Assisted by: Osama Mersal.

Author Posts
August 21, 2023 at 1:20 pm #14264525

brendad-4

Tell us what you are trying to do?
Fatal error: Uncaught InvalidArgumentException: element_id and type do not match for element_id:33991 the database contains post_attachment while this function was called with post_product in /home/customer/www/stoffenzaak.com/public_html/wp-content/plugins/sitepress-multilingual-cms/classes/core-abstract-classes/class-wpml-set-language.php:34 Stack trace: #0 /home/customer/www/stoffenzaak.com/public_html/wp-content/plugins/sitepress-multilingual-cms/sitepress.class.php(1529): WPML_Set_Language->set('33991', 'post_product', false, 'en', NULL, true) #1 /home/customer/www/stoffenzaak.com/public_html/wp-content/plugins/woocommerce-multilingual/inc/class-wcml-install.php(156): SitePress->set_element_language_details('33991', 'post_product', false, 'en') #2 /home/customer/www/stoffenzaak.com/public_html/wp-content/plugins/woocommerce-multilingual/inc/class-wcml-install.php(71): WCML_Install::set_language_information(Object(SitePress)) #3 /home/customer/www/stoffenzaak.com/public_html/wp-content/plugins/woocommerce-multilingual in /home/customer/www/stoffenzaak.com/public_html/wp-content/plugins/sitepress-multilingual-cms/classes/core-abstract-classes/class-wpml-set-language.php on line 34
There has been a critical error on this website.

Learn more about troubleshooting WordPress.

August 21, 2023 at 1:58 pm #14264793

Osama Mersal
WPML Supporter since 02/2020

Languages: English (English ) Arabic (العربية )

Timezone: Africa/Cairo (GMT+03:00)

Hi,

Thanks for contacting WPML forums support. I'll be glad to help you today.

1) Please check this guide and apply the mentioned workaround. (https://wpml.org/errata/fatal-error-invalidargumentexception-element_id-and-type-do-not-match/)

2) Could you please share your Debug information with me?
You can read a detailed explanation about it here. (http://wpml.org/faq/provide-debug-information-faster-support)
The debug info will give me much information about how your site is configured.

Best regards,
Osama

August 21, 2023 at 2:03 pm #14264805

brendad-4

hi sir the screen go white i cannot read the debug i try with noman to sweep the old and begin new but still same problem this is not possible!

August 21, 2023 at 2:04 pm #14264807

Osama Mersal
WPML Supporter since 02/2020

Languages: English (English ) Arabic (العربية )

Timezone: Africa/Cairo (GMT+03:00)

Hi,

It's okay. Please apply the workaround to fix the fatal error first.

Best regards,
Osama

August 21, 2023 at 2:09 pm #14264849

brendad-4

this is a issue for me im tired from it and must let go wpml i cannot find the problem

August 21, 2023 at 2:10 pm #14264853

Osama Mersal
WPML Supporter since 02/2020

Languages: English (English ) Arabic (العربية )

Timezone: Africa/Cairo (GMT+03:00)

Hi,

I would need to look closely at your site, so I would need to request temporary access (WP-Admin and FTP)
– preferably to a test site where the problem has been replicated if possible –
in order to be of better help and check if some configurations might need to be changed.

Your next answer will be private, which means only you and I can access it.

❌ Please backup your database and website ❌

✙ I would need your permission to de-activate and re-activate the Plugins and the Theme and change configurations on the site. This is also a reason the backup is critical.

✙ I also need your permission to take a local copy of your site to debug the issue without affecting your live site.

Best regards,
Osama

August 21, 2023 at 2:52 pm #14265195

Osama Mersal
WPML Supporter since 02/2020

Languages: English (English ) Arabic (العربية )

Timezone: Africa/Cairo (GMT+03:00)

Hi,

Thanks for the access details. I didn't find WPML on your site, so I uploaded and activated it without issues.

Please complete the setup and let me know if you face the same issue. (hidden link)

If you face the issue, please let me know how to reproduce it.

Best regards,
Osama

August 21, 2023 at 4:09 pm #14265851

brendad-4

Fatal error: Uncaught InvalidArgumentException: element_id and type do not match for element_id:33991 the database contains post_attachment while this function was called with post_product in /home/customer/www/stoffenzaak.com/public_html/wp-content/plugins/sitepress-multilingual-cms/classes/core-abstract-classes/class-wpml-set-language.php:34 Stack trace: #0 /home/customer/www/stoffenzaak.com/public_html/wp-content/plugins/sitepress-multilingual-cms/sitepress.class.php(1529): WPML_Set_Language->set('33991', 'post_product', false, 'en', NULL, true) #1 /home/customer/www/stoffenzaak.com/public_html/wp-content/plugins/woocommerce-multilingual/inc/class-wcml-install.php(156): SitePress->set_element_language_details('33991', 'post_product', false, 'en') #2 /home/customer/www/stoffenzaak.com/public_html/wp-content/plugins/woocommerce-multilingual/inc/class-wcml-install.php(71): WCML_Install::set_language_information(Object(SitePress)) #3 /home/customer/www/stoffenzaak.com/public_html/wp-content/plugins/woocommerce-multilingual in /home/customer/www/stoffenzaak.com/public_html/wp-content/plugins/sitepress-multilingual-cms/classes/core-abstract-classes/class-wpml-set-language.php on line 34
There has been a critical error on this website.

Learn more about troubleshooting WordPress.

Same problem Osama

August 21, 2023 at 4:13 pm #14265857

Osama Mersal
WPML Supporter since 02/2020

Languages: English (English ) Arabic (العربية )

Timezone: Africa/Cairo (GMT+03:00)

Hi,

Thanks for your update. Could you please grant me the Authentication code to your server to check the database?

You will find the code in your mail box.

Best regards,
Osama

August 21, 2023 at 5:00 pm #14266015

Osama Mersal
WPML Supporter since 02/2020

Languages: English (English ) Arabic (العربية )

Timezone: Africa/Cairo (GMT+03:00)

Hi,

Thanks for the code. Would you please check and let me know if WPML works correctly?

Best regards,
Osama

August 21, 2023 at 5:02 pm #14266085

brendad-4

one moment please Osama i will check now

August 21, 2023 at 5:08 pm #14266099

brendad-4

the server is not responding i cannot not load it now

August 21, 2023 at 5:12 pm #14266101

brendad-4

its a 502 error i think its busy now on the server i be trying have patience please Osama

August 21, 2023 at 5:19 pm #14266155

brendad-4

504 Gateway Time-out

August 21, 2023 at 5:21 pm #14266157

Osama Mersal
WPML Supporter since 02/2020

Languages: English (English ) Arabic (العربية )

Timezone: Africa/Cairo (GMT+03:00)

Hi,

It works correctly at my end. (Kindly check the attached screenshot)

Best regards,
Osama

2023-08-21_20-20-48.jpg

The topic ‘[Closed] Fatal error: Uncaught InvalidArgumentException: element_id and type do not match’ is closed to new replies.