Skip Navigation

This thread is resolved. Here is a description of the problem and solution.

Problem:
The client is encountering an error during the final step of the WPML plugin registration process, with a message indicating a mismatch between 'element_id' and 'type'.

Solution:
If you're experiencing an error during the WPML plugin registration and issues when activating translation plugins, we recommend the following steps:
1. Navigate to WPML > Support in your admin panel.
2. Click on the Troubleshooting link.
3. Scroll down to the bottom of the page and use the Reset WPML option.
4. Deactivate all WPML plugins.
5. Reactivate the WPML plugin alone and attempt to complete the setup wizard again.
If these steps do not resolve your issue, please open a new support ticket with us so we can assist you further.

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

Last updated by Nigel 1 year, 7 months ago.

Assisted by: Nigel.

Author Posts
October 11, 2023 at 10:52 am #14558457

danielM-233

I am trying to register and activate WPML plugin and in last step "7" I got message like this one and I can't click Finish button.:
element_id and type do not match for element_id:129 the database contains tax_product_tag while this function was called with tax_category

There was a critical error setting up WPML. Please contact our support forum to resolve it.

It is visible inside of my admin panel

Also after turn on every plugin needed for translation I got error and need turn off them
- WooCommerce Multilingual & Multicurrency (probably this one crashed my site)

wpml-error.jpg
October 11, 2023 at 2:39 pm #14560329

Nigel
WPML Supporter since 02/2016

Timezone: Europe/Madrid (GMT+02:00)

Hi there

Given that you are just starting with WPML on this site and the initial set up has gone wrong, can I suggest that you do a complete reset and start again?

Go to WPML > Support and click the Troubleshooting link.

From the resulting page use the Reset WPML option at the bottom.

Make sure WPML plugins are deactivated, and then try re-activating WPML alone and see if it is possible to complete the wizard.

Let me know how far you get.

October 11, 2023 at 7:15 pm #14561575

danielM-233

OK I install WPML but have another problem. My main language before install WPML on site is Polish and I need add English. After activate WPML I don't see menu, can't edit templates on my site (Betheme theme).
Theoretically I have Polish in WPML language settings as a main language even that I think WPML mess something with languages after activate it.

WPML-language-settings.jpg
with-wpml-on.jpg
with-wpml-off.jpg
edit-header-WPML-on.jpg
October 12, 2023 at 9:56 am #14564567

Nigel
WPML Supporter since 02/2016

Timezone: Europe/Madrid (GMT+02:00)

Before you installed WPML was your site language Polish? Did you edit the Betheme templates then, when the site was only Polish?

I just tried setting up a new test site, in Polish, without WPML, and creating some custom templates for Betheme.

I then installed and activated WPML. During the first step of the setup wizard where you add the languages I changed the automatic selection of English as the default language and switched it to Polish, and then added English as the secondary language.

After completing the wizard, when I go to check the Betheme templates, it shows the templates I created previously (screenshot; the titles I gave the templates were in English, but the language of the site at the time was Polish).

I wonder, during the set up of WPML did you leave English as the main language and add Polish as a second language, and then later changed that in WPML > Languages to specify that Polish should be the default language?

In which case the templates would be wrongly set as English during the wizard set up.

(In your screenshots I can see it says there are English templates.)

I suggest you go to the list of Templates and then use the language switcher in the Admin Toolbar to switch to English. You should then see your templates. Edit them (not with Betheme editor, in the normal WordPress editor), and then you should be able to change the language to specify that the templates are Polish (second screenshot).

Screenshot 2023-10-12 at 10.56.10.png
Screenshot 2023-10-12 at 10.44.08.png
October 12, 2023 at 2:30 pm #14566873

danielM-233

Ok probably this is the problem but still don't know how to repair this.

I think WordPress / WPML / Betheme think is my main language is english not a polish on whole website.
So can I delete whole WPML and install again, move proccess of registrate on site where I can again setup polish as a main language and add as a second english?

Right now when I switch in Betheme templates language to english I have only 3 templates in polish 0 (but when I turn off WPML I have 15 templates). (screenshot 1)

Also in settings > reading I have message
"Your homepage does not exist or its translation has not been published in English.
Edit this page to add translations" - When I have turn off WPML everything is ok and I have setup home page in settings. (screenshot 2)

So I think when I activate WPML first time I click english as a main language and even when I have in WPML > language polish as a main language Betheme / wordpress / WPML think about english a main. (screenshot 3)

language WPML PL.png
templates EN.png
setting reading PL.png
October 12, 2023 at 2:51 pm #14567035

danielM-233

ALso what I see and what I found on web is I had earlier working WPML plugin but I redesign whole concept and install almost everything from scratch. Anyway in database and on FTP (screenshot) I have remember by wordpress installed earlier languages and maybe WPML take translations or something from there?

Should I delete all not used languages?

I do not reset whole files before prepare new website, so some of them for sure stay from old version of website. I do not install new version of WordPress :/

Maybe this will be helpful

ftp languages.png
settings general languages.png
October 12, 2023 at 4:01 pm #14567521

Nigel
WPML Supporter since 02/2016

Timezone: Europe/Madrid (GMT+02:00)

From your last update you appear to have WPML disabled, and the language dropdown shows several possible languages because the language files for WordPress for those language files have been downloaded at some point. Those are available whether or not you have WPML installed, and may be left over from previous changes you made to this existing site.

In terms of making the site multilingual (rather than just choosing what single language the site is available in), it seems like you are only at the beginning of this step.

So, perhaps the easiest thing is to start again with WPML. Reset WPML in the settings as I described before, and then go through the WPML setup wizard again. If your existing site and content is in Polish, then be very careful in the first step of the wizard to specify that Polish is the default language, and then add English as a second language.

When the wizard completes it will mark all of the existing content as Polish (including any Betheme templates you made). You can then translate them to English as required.

(Note that the Betheme interface may show in English in any case if it does not come with Polish language files, and you would need to scan and translate the theme texts if you want the Betheme interface to show in Polish.)

If you do the above then you should be starting with a clean slate and then hopefully you will avoid complications going forwards.

October 15, 2023 at 10:33 am #14579313

danielM-233

Hey Nigel,

I think my problem is solved and we can close this ticket.
Problem was as You mention in bad language chose in setup wizard steps.
I do ti again and now (for now) everything works well.

Thanks for patience.
Regards
Daniel