Resolved
Resolved in: 3.6.3
Overview of the issue
This issue occurs when WPML is activated but its setup is not completed.
The error message starts with: PHP Fatal error: Uncaught exception ‘InvalidArgumentException’ with message ‘Argument $language_code must a non empty string.
Workaround
This issue will be fixed in a future release version. However, the problem is quickly resolved by deactivating WPML plugin or completing the setup wizard.
I get the following:
Fatal error: Uncaught exception ‘InvalidArgumentException’ with message ‘element_id and type do not match for element_id:517 the database contains post_page while this function was called with post_nav_menu_item’ in /nas/content/staging/translatemx/wp-content/plugins/sitepress-multilingual-cms/classes/core-abstract-classes/class-wpml-set-language.php:28 Stack trace: #0 /nas/content/staging/translatemx/wp-content/plugins/sitepress-multilingual-cms/sitepress.class.php(1639): WPML_Set_Language->set(‘517’, ‘post_nav_menu_i…’, NULL, ‘es’, NULL, true) #1 /nas/content/staging/translatemx/wp-content/plugins/sitepress-multilingual-cms/inc/wp-nav-menus/class-wpml-nav-menu.php(205): SitePress->set_element_language_details(‘517’, ‘post_nav_menu_i…’, NULL, ‘es’) #2 /nas/content/staging/translatemx/wp-content/plugins/sitepress-multilingual-cms/inc/wp-nav-menus/class-wpml-nav-menu.php(78): WPML_Nav_Menu->_set_menus_language() #3 [internal function]: WPML_Nav_Menu->init(”) #4 /nas/content/staging/translatemx/wp-includes/class-wp-hoo in /nas/content/staging/translatemx/wp-content/plugins/sitepress-multilingual-cms/classes/core-abstract-classes/class-wpml-set-language.php on line 28
This is while trying to activate it …
The error that you’re quoting doesn’t seem to be related to this errata. Can you create a forum ticket about it, explain what you’re doing, what your site already has, the theme and plugins? You can add another message here with the link to this ticket and I’ll follow up there.
Yes Amir i found it! I apologize and please close this ticket. Thank You!
Hi Janv,
I have got same issue like you.
Can you please suggest me some solution for this?
Thank You,
Hello Ankita,
If you are experiencing the same problem as @janv-32, could you please open a ticket on the support forum? You will get a custom assistance for your specific issue.
Yes Amir i did configure agin and that did it.! I apologize. Thank You!