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.

Tagged: 

This topic contains 2 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:09 pm #14264331

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. us what you are trying to do?

Is there any documentation that you are following?

Is there a similar example that we can see?

What is the link to your site?

August 21, 2023 at 1:13 pm #14264339

brendad-4

Hi noman i still need assistiance still the same problem

August 21, 2023 at 5:06 pm #14266097

Osama Mersal
WPML Supporter since 02/2020

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

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

Hi,

This is a duplicate ticket of this one. (https://wpml.org/forums/topic/fatal-error-uncaught-invalidargumentexception-element_id-and-type-do-not-match-6/)

I'll close this ticket and let us continue fixing the issue on the other one.

Thanks,
Osama