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 9 replies, has 2 voices.

Last updated by Andreas 1 year, 9 months ago.

Assisted by: Andreas.

Author Posts
April 4, 2023 at 2:20 pm #13401135

nunoF-6

My website crashes when I activate WPML Multilingual CMS plugin.

I have a debug.log.log file, but the "Provide WPML Debug" form continues to return an error, even with tags [php] and </ code>. How can I send you the file?

April 4, 2023 at 3:13 pm #13401543

Andreas

Hello there

Thank you for contacting us. I am happy to help you.

Debug log is different from debug info this is the reason you cannot add it.

Now please share here from the debug.log that you are having the error which is related to WPML ( not the whole debug.log ) in order to understand what is happening.

Regards,
Andreas

April 4, 2023 at 3:19 pm #13401701

nunoF-6
[04-Apr-2023 14:03:05 UTC] PHP Deprecated:  The PSR-0 `Requests_...` class names in the Request library are deprecated. Switch to the PSR-4 `WpOrg\Requests\...` class names at your earliest convenience. in /home/nm4wtrfx/public_html/maqueta/wp-includes/Requests/src/Autoload.php on line 171
[04-Apr-2023 14:03:05 UTC] PHP Fatal error:  Uncaught InvalidArgumentException: element_id and type do not match for element_id:6474 the database contains post_attachment while this function was called with post_nav_menu_item in /home/nm4wtrfx/public_html/maqueta/wp-content/plugins/sitepress-multilingual-cms/classes/core-abstract-classes/class-wpml-set-language.php:34
Stack trace:
#0 /home/nm4wtrfx/public_html/maqueta/wp-content/plugins/sitepress-multilingual-cms/sitepress.class.php(1528): WPML_Set_Language->set()
#1 /home/nm4wtrfx/public_html/maqueta/wp-content/plugins/sitepress-multilingual-cms/inc/wp-nav-menus/class-wpml-nav-menu.php(229): SitePress->set_element_language_details()
#2 /home/nm4wtrfx/public_html/maqueta/wp-content/plugins/sitepress-multilingual-cms/inc/wp-nav-menus/class-wpml-nav-menu.php(85): WPML_Nav_Menu->_set_menus_language()
#3 /home/nm4wtrfx/public_html/maqueta/wp-includes/class-wp-hook.php(308): WPML_Nav_Menu->init()
#4 /home/nm4wtrfx/public_html/maqueta/wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters()
#5 /home/nm4wtrfx/public_html/maqueta/wp-includes/plugin.php(517): WP_Hook->do_action()
#6 /home/nm4wtrfx/public_html/maqueta/wp-settings.php(623): do_action()
#7 /home/nm4wtrfx/public_html/maqueta/wp-config.php(98): require_once('/home/nm4wtrfx/...')
#8 /home/nm4wtrfx/public_html/maqueta/wp-load.php(50): require_once('/home/nm4wtrfx/...')
#9 /home/nm4wtrfx/public_html/maqueta/wp-admin/admin-ajax.php(22): require_once('/home/nm4wtrfx/...')
#10 {main}
  thrown in /home/nm4wtrfx/public_html/maqueta/wp-content/plugins/sitepress-multilingual-cms/classes/core-abstract-classes/class-wpml-set-language.php on line 34
[04-Apr-2023 14:03:07 UTC] PHP Deprecated:  The PSR-0 `Requests_...` class names in the Request library are deprecated. Switch to the PSR-4 `WpOrg\Requests\...` class names at your earliest convenience. in /home/nm4wtrfx/public_html/maqueta/wp-includes/Requests/src/Autoload.php on line 171
[04-Apr-2023 14:03:07 UTC] PHP Fatal error:  Uncaught InvalidArgumentException: element_id and type do not match for element_id:6474 the database contains post_attachment while this function was called with post_nav_menu_item in /home/nm4wtrfx/public_html/maqueta/wp-content/plugins/sitepress-multilingual-cms/classes/core-abstract-classes/class-wpml-set-language.php:34
Stack trace:
#0 /home/nm4wtrfx/public_html/maqueta/wp-content/plugins/sitepress-multilingual-cms/sitepress.class.php(1528): WPML_Set_Language->set()
#1 /home/nm4wtrfx/public_html/maqueta/wp-content/plugins/sitepress-multilingual-cms/inc/wp-nav-menus/class-wpml-nav-menu.php(229): SitePress->set_element_language_details()
#2 /home/nm4wtrfx/public_html/maqueta/wp-content/plugins/sitepress-multilingual-cms/inc/wp-nav-menus/class-wpml-nav-menu.php(85): WPML_Nav_Menu->_set_menus_language()
#3 /home/nm4wtrfx/public_html/maqueta/wp-includes/class-wp-hook.php(308): WPML_Nav_Menu->init()
#4 /home/nm4wtrfx/public_html/maqueta/wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters()
#5 /home/nm4wtrfx/public_html/maqueta/wp-includes/plugin.php(517): WP_Hook->do_action()
#6 /home/nm4wtrfx/public_html/maqueta/wp-settings.php(623): do_action()
#7 /home/nm4wtrfx/public_html/maqueta/wp-config.php(98): require_once('/home/nm4wtrfx/...')
#8 /home/nm4wtrfx/public_html/maqueta/wp-load.php(50): require_once('/home/nm4wtrfx/...')
#9 /home/nm4wtrfx/public_html/maqueta/wp-admin/admin.php(34): require_once('/home/nm4wtrfx/...')
#10 /home/nm4wtrfx/public_html/maqueta/wp-admin/plugins.php(10): require_once('/home/nm4wtrfx/...')
#11 {main}
  thrown in /home/nm4wtrfx/public_html/maqueta/wp-content/plugins/sitepress-multilingual-cms/classes/core-abstract-classes/class-wpml-set-language.php on line 34
April 4, 2023 at 3:30 pm #13401843

Andreas

Thank you very much for the debug log.

You are having a know issue. You can read more details here :

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

I hope this helps. Please let us know how it goes or if you need any further assistance. I'll gladly help you. 🙂

Regards,
Andreas

April 4, 2023 at 4:35 pm #13402599

nunoF-6

Thanks Andreas.

I do not have access to dashboard, it has to be through the database. Please see the attached image. I'm on the right place? I don't see any line with error.

Captura de ecrã 2023-04-04, às 17.33.09.png
Captura de ecrã 2023-04-04, às 17.27.57.png
April 5, 2023 at 10:47 am #13409255

Andreas

Thank you for your reply.

In the errata there is also a way if you are not able to access your Dashboard.

I am pasting again the steps here :

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

1. Access to your database.
2. Open the wp_icl_translations table.
3. Search for the element_id which is throwing the error.
4. Delete the row.

See if this can help you.

Regards,
Andreas

April 5, 2023 at 4:27 pm #13412407

nunoF-6

Hi Andreas

I followed these steps yesterday and sent you a printscreen to confirm me whether I had opened the database or not. I never changed a database, I'm not a developer.

I didn't find the "wp_icl_translations" table, the table I selected was "wpde_icl_translations" for having a similar name. However none of those lines have nothing to warn that there is an error.

Can you help me?

April 6, 2023 at 9:48 am #13418463

Andreas

Thank you for your reply.

wp_ or wpde_ is the table prefix you defined in your database.

Please open wpde_icl_translations table and find the row with element id 6474 and delete it.

See if this can solve your issue.

Share with me the results.

Regards,
Andreas

April 6, 2023 at 11:18 am #13419257

nunoF-6

Thanks Andreas, it worked!

Best regards
Nuno Ferreira

April 6, 2023 at 11:31 am #13419405

Andreas

Thank you very much for your efforts and confirmation.

Do not hesitate to contact us if you need anything else

I closing the ticket as resolved.

I hope this helps. Please let us know how it goes or if you need any further assistance. I'll gladly help you. 🙂

Regards,
Andreas