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 1 reply, has 1 voice.

Last updated by martialV 1 year, 7 months ago.

Author Posts
October 12, 2018 at 3:10 am


I am trying to: activate WPML

Link to a page where the issue can be seen: hidden link

I expected to see: WPML working 😉

Instead, I got:

Fatal error: Uncaught InvalidArgumentException: element_id and type do not match for element_id:1791 the database contains post_attachment while this function was called with post_nav_menu_item in /home2/yummy/public_html/wp-content/plugins/sitepress-multilingual-cms/classes/core-abstract-classes/class-wpml-set-language.php:32 Stack trace: #0 /home2/yummy/public_html/wp-content/plugins/sitepress-multilingual-cms/sitepress.class.php(1425): WPML_Set_Language->set('1791', 'post_nav_menu_i...', NULL, 'en', NULL, true) #1 /home2/yummy/public_html/wp-content/plugins/sitepress-multilingual-cms/inc/wp-nav-menus/class-wpml-nav-menu.php(211): SitePress->set_element_language_details('1791', 'post_nav_menu_i...', NULL, 'en') #2 /home2/yummy/public_html/wp-content/plugins/sitepress-multilingual-cms/inc/wp-nav-menus/class-wpml-nav-menu.php(78): WPML_Nav_Menu->_set_menus_language() #3 /home2/yummy/public_html/wp-includes/class-wp-hook.php(286): WPML_Nav_Menu->init('') #4 /home2/yummy/public_html/wp-includes/class-wp-hook.php(310): WP_Ho in /home2/yummy/public_html/wp-content/plugins/sitepress-multilingual-cms/classes/core-abstract-classes/class-wpml-set-language.php on line 32

October 12, 2018 at 3:41 am #2810674


My issue is resolved now. Thank you!