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

Last updated by quentinB 1 month, 1 week ago.

Assigned support staff: Andreas W..

Author Posts
September 6, 2019 at 12:06 pm #4525179

quentinB

I am trying to:install wpml

When plugin is activated I get a fatal error :

Fatal error: Uncaught InvalidArgumentException: element_id and type do not match for element_id:8 the database contains tax_category while this function was called with tax_nav_menu in /home/clients/3f675678cd9ba378d8a3eb7eda093299/web/wp-content/plugins/sitepress-multilingual-cms/classes/core-abstract-classes/class-wpml-set-language.php:32 Stack trace: #0 /home/clients/3f675678cd9ba378d8a3eb7eda093299/web/wp-content/plugins/sitepress-multilingual-cms/sitepress.class.php(1483): WPML_Set_Language->set('8', 'tax_nav_menu', NULL, 'de', NULL, true) #1 /home/clients/3f675678cd9ba378d8a3eb7eda093299/web/wp-content/plugins/sitepress-multilingual-cms/inc/wp-nav-menus/class-wpml-nav-menu.php(197): SitePress->set_element_language_details('8', 'tax_nav_menu', NULL, 'de') #2 /home/clients/3f675678cd9ba378d8a3eb7eda093299/web/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/3f675678cd9ba378d8a3eb7eda093299/web/wp-includes/class-wp-hook.php in /home/clients/3f675678cd9ba378d8a3eb7eda093299/web/wp-content/plugins/sitepress-multilingual-cms/classes/core-abstract-classes/class-wpml-set-language.php on line 32

September 6, 2019 at 3:07 pm #4526213

quentinB

How can I give you access safely ? (Not visible for other people).

September 6, 2019 at 4:48 pm #4526817

Andreas W.
Supporter

Languages: English (English ) Spanish (Español ) German (Deutsch )

Timezone: America/Lima (GMT-05:00)

Hello,

Thank you for contacting the WPML Support Forum.

Please go to WPML -> Support -> Troubleshooting and use the option for element_type collation. Did this solve the issue?

In case not, I would like to request temporary access (wp-admin and FTP) to your site to take a better look at the issue. It would be better to a testing site where the issue is replicated.

You will find the needed fields for this below the comment area when you log in to leave your next reply. The information you will enter is private which means only you and I can see and have access to it.

Maybe I'll need to replicate your site locally. For this, I’ll need to temporarily install a plugin called “Duplicator” on your site. This will allow me to create a copy of your site and your content. Once the problem is resolved I will delete the local site. Let me know if this is ok with you.

IMPORTANT

Please make a backup of site files and database before providing us access.
If you do not see the wp-admin/FTP fields this means your post & website login details will be made PUBLIC. DO NOT post your website details unless you see the required wp-admin/FTP fields. If you do not, please ask me to enable the private box. The private box looks like this:
hidden link

Kind regards
Andreas

September 6, 2019 at 5:37 pm #4526917

Andreas W.
Supporter

Languages: English (English ) Spanish (Español ) German (Deutsch )

Timezone: America/Lima (GMT-05:00)

Hello,

It seems that you did not complete the WPML setup wizard. There is not any language set for WPML.

Please go to WPML -> Langues -> Langues du site and select a default langauge and add the additional languages which you need for your translations.

Let me know if this solved the issue.

Kind regards
Andreas

September 6, 2019 at 5:40 pm #4526921

quentinB

The issue is when I install the other extensions (string translation, management...). If I activate them the site crashes.

September 6, 2019 at 5:43 pm #4526925

quentinB

And I can’t chose any language. Nothing shows up when I click on « edit default language » or « add/delete languages ».

September 6, 2019 at 6:52 pm #4527149

Andreas W.
Supporter

Languages: English (English ) Spanish (Español ) German (Deutsch )

Timezone: America/Lima (GMT-05:00)

Hello,

Please disable all plugins temporatily. Then activate WPML and try to select the language. Does this work? If so, complete the setup and then activate all other plugins.

I hope this will solve the issue.

Kind regards
Andreas

September 6, 2019 at 7:14 pm #4527163

quentinB

I tried to deactivate all plugins. I still can’t see anything when trying to set the languages...

September 6, 2019 at 9:17 pm #4527415

Andreas W.
Supporter

Languages: English (English ) Spanish (Español ) German (Deutsch )

Timezone: America/Lima (GMT-05:00)

Hello,

Your database is missing various tables which are necesarry to run WPML. Did you reset WPML earlier?

Do I understand right, that WPML was installed earlier and there are pages that have been translated with WPML? Are the current existing pages mandatory to run the site?

Do you still have a backup of your old database available when WPML was still running?

Kind regards
Andreas

September 6, 2019 at 9:30 pm #4527421

quentinB

No here’s shan’t happened :
1. The site was running without WPML.
2. I installed WPML
3. As soon as the 4 files were installed and activated, I got the fatal error that you can see above.
4. Since I had no more access to the site, I had to delete the files from the FTP manager. I also deleted the databases.
5. I tried again to install WPML but the site crashed again.

The plugin never worked. No page was ever translated.

The pages are mandatory.

I have backups.

September 6, 2019 at 9:37 pm #4527423

quentinB

For the first phrase above, I meant : No here's WHAT happened :

September 6, 2019 at 10:18 pm #4527461

Andreas W.
Supporter

Languages: English (English ) Spanish (Español ) German (Deutsch )

Timezone: America/Lima (GMT-05:00)

Hello,

Thank you for the information.

As far I was able to fix the issue. The database tables are recreated and the pages are now all available.

Let me know if you need any further assistance.

Kind regards
Andreas

September 7, 2019 at 7:24 am #4528711

quentinB

Thanks a lot.
I was able to translate the site.

I still get an "error" message (see image) , but everything seems to work ok.
Should I do something about this message ?

September 8, 2019 at 12:37 am #4529959

quentinB

It's OK now. Everything works. Thanks a lot.

September 8, 2019 at 12:37 am #4529961

quentinB

My issue is resolved now. Thank you!