Skip to content Skip to sidebar

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: Asia/Yerevan (GMT+04:00)

Tagged: 

This topic contains 5 replies, has 2 voices.

Last updated by Christopher Amirian 1 year, 11 months ago.

Assisted by: Christopher Amirian.

Author Posts
August 22, 2023 at 1:41 am #14267397

freshoP

Tell us what you are trying to do? Installed plugin and then selected translation languages

Is there any documentation that you are following? yes general setup

Is there a similar example that we can see? u can check site, I have enabled debugging. it is displaying issue

What is the link to your site? hidden link

Fatal error: Uncaught InvalidArgumentException: element_id and type do not match for element_id:2528 the database contains post_attachment while this function was called with post_nav_menu_item in /nas/content/live/freshostaging/wp-content/plugins/sitepress-multilingual-cms/classes/core-abstract-classes/class-wpml-set-language.php:34 Stack trace: #0 /nas/content/live/freshostaging/wp-content/plugins/sitepress-multilingual-cms/sitepress.class.php(1529): WPML_Set_Language->set('2528', 'post_nav_menu_i...', NULL, 'en', NULL, true) #1 /nas/content/live/freshostaging/wp-content/plugins/sitepress-multilingual-cms/inc/wp-nav-menus/class-wpml-nav-menu.php(229): SitePress->set_element_language_details('2528', 'post_nav_menu_i...', NULL, 'en') #2 /nas/content/live/freshostaging/wp-content/plugins/sitepress-multilingual-cms/inc/wp-nav-menus/class-wpml-nav-menu.php(85): WPML_Nav_Menu->_set_menus_language() #3 /nas/content/live/freshostaging/wp-includes/class-wp-hook.php(308): WPML_Nav_Menu->init('') #4 /nas/content/live/freshostaging/wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters(NULL, Array) #5 /nas/content/live/freshostaging/wp-includes/plugin.php(517): WP_Hook->do_action(Array) #6 /nas/content/live/freshostaging/wp-settings.php(623): do_action('init') #7 /nas/content/live/freshostaging/wp-config.php(122): require_once('/nas/content/li...') #8 /nas/content/live/freshostaging/wp-load.php(50): require_once('/nas/content/li...') #9 /nas/content/live/freshostaging/wp-admin/admin.php(34): require_once('/nas/content/li...') #10 {main} thrown in /nas/content/live/freshostaging/wp-content/plugins/sitepress-multilingual-cms/classes/core-abstract-classes/class-wpml-set-language.php on line 34

August 22, 2023 at 7:59 am #14268623

Christopher Amirian
WPML Supporter since 07/2020

Languages: English (English )

Timezone: Asia/Yerevan (GMT+04:00)

Hi there,

Would you please kindly follow the steps below mentioned in the errata?

https://wpml.org/errata/fatal-error-invalidargumentexception-element_id-and-type-do-not-match/

Thanks.

August 30, 2023 at 1:49 am #14309675

freshoP

Hi Chris

Please Read my query and issue, Installing wpml has crashed the site and I am not able to access wp admin. So I am not sure how I am supposed to follow those steps

August 30, 2023 at 1:50 am #14309677

freshoP

Home › Support › English Support › [Assigned] Site crashed
[Assigned] Site crashed
It is in the support ticket name, SITE CRASHED

August 30, 2023 at 3:24 pm #14314857

Christopher Amirian
WPML Supporter since 07/2020

Languages: English (English )

Timezone: Asia/Yerevan (GMT+04:00)

Hi there,

I'd appreciate it if you follow the other section that is mentioned in the documentation:

Please, make a full backup of your site before proceeding.

If you can’t access or it does not help:

Access to your database.
Open the wp_icl_translations table.
Search for the element_id which is throwing the error.
Delete the row.
You might need to repeat the workflow several times until the issue is fixed.

If needed, I can help you. Please make sure you have a complete backup and the share in the next reply by setting the reply as private, information to be able to access your website database and I can perform the steps mentioned.

Thanks.

August 30, 2023 at 3:30 pm #14314869

Christopher Amirian
WPML Supporter since 07/2020

Languages: English (English )

Timezone: Asia/Yerevan (GMT+04:00)

Hi there,

For the exam[ple that you mentioned for sure ti should be empty as you selected Phone Number.

Phone Number is a custom field of a post type called Agent. But you used the Field and text inside a page and it is natural that there will be no value.

But if you select for example, if you use the same thing inside a single custom post type edit screen of the Agent post type it will work.

Also in the pop up wizard when you want to select the phone number you can select the ID of the Agent in question and then the content will show.

For the second question answer. Yes, P tag is printed.

Thanks.

The topic ‘[Closed] Site crashed’ is closed to new replies.