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.

Our next available supporter will start replying to tickets in about 2.08 hours from now. Thank you for your understanding.

This topic contains 1 reply, has 2 voices.

Last updated by Bigul 10 months, 2 weeks ago.

Assigned support staff: Bigul.

Author Posts
July 17, 2019 at 10:45 am #4228785


I am trying to:

Link to a page where the issue can be seen:

I expected to see:

Instead, I got:

Fatal error: Uncaught InvalidArgumentException: element_id and type do not match for element_id:30381 the database contains post_attachment while this function was called with post_nav_menu_item in /home/clients/0c8fd8f4ac91291c408ae5f05989f9a5/rachupochu/wp-content/plugins/sitepress-multilingual-cms/classes/core-abstract-classes/class-wpml-set-language.php:32 Stack trace: #0 /home/clients/0c8fd8f4ac91291c408ae5f05989f9a5/rachupochu/wp-content/plugins/sitepress-multilingual-cms/sitepress.class.php(1489): WPML_Set_Language->set('30381', 'post_nav_menu_i...', NULL, 'en', NULL, true) #1 /home/clients/0c8fd8f4ac91291c408ae5f05989f9a5/rachupochu/wp-content/plugins/sitepress-multilingual-cms/inc/wp-nav-menus/class-wpml-nav-menu.php(211): SitePress->set_element_language_details('30381', 'post_nav_menu_i...', NULL, 'en') #2 /home/clients/0c8fd8f4ac91291c408ae5f05989f9a5/rachupochu/wp-content/plugins/sitepress-multilingual-cms/inc/wp-nav-menus/class-wpml-nav-menu.php(78): WPML_Nav_Menu->_set_menus_language() #3 /home/clients/0c8fd in /home/clients/0c8fd8f4ac91291c408ae5f05989f9a5/rachupochu/wp-content/plugins/sitepress-multilingual-cms/classes/core-abstract-classes/class-wpml-set-language.php on line 32
The site is experiencing technical difficulties. Please check your site admin email inbox for instructions.

July 17, 2019 at 5:44 pm #4232725


Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)


Welcome to the WPML support forum. I will do my best to help you to resolve these issues.

This kind of error is happening because of corrupt entry or misconfiguration in the Database. In this case element_type which has element_id 30381 of wp_icl_translations database table doesn't match tax_category of this entry in wp_posts database table.

Please try the following steps after a full site backup to fix the issue.

1) Go to your database using phpMyAdmin(or something similar)

2) Go to wp_icl_translations database table(Maybe the Table prefix will be different in your case)

3) Find entry with element_id:30381 and delete that row



The topic ‘[Closed] I am getting this error from one of the plugin’ is closed to new replies.