Skip Navigation

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

Problem:
The client is experiencing issues with loading attributes for translations in WooCommerce Multilingual, encountering console errors such as 'Uncaught TypeError: Cannot read properties of undefined (reading 'innerHTML')' and 'Uncaught TypeError: Cannot read properties of undefined (reading 'label').'
Solution:
We recommend checking the settings in WPML to ensure that the taxonomies you are trying to translate are set to 'Translatable'. This can be done by navigating to WPML->Settings-> Vertaling Taxonomiën and adjusting the settings accordingly. After making these changes, you should be able to select and add translations to the attributes by going to WooCommerce->WooCommerce Multilingual->Attributes.

If this solution does not resolve your issue or seems irrelevant due to being outdated or not applicable to your specific case, we highly recommend checking related known issues at https://wpml.org/known-issues/, verifying the version of the permanent fix, and confirming that you have installed the latest versions of themes and plugins. If problems persist, please do not hesitate to open a new support ticket for further assistance at WPML support forum.

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

Last updated by c.N 2 years, 7 months ago.

Assisted by: Bobby.

Author Posts
May 9, 2022 at 1:53 pm

c.N

The client is trying to load the attributes for translations,

Console error:

Uncaught TypeError: Cannot read properties of undefined (reading 'innerHTML')
Uncaught TypeError: Cannot read properties of undefined (reading 'label')
at Object.WPML_core.templates/taxonomy-translation/status-trans-select.html (templates-compiled.js?ver=1.2.4:403:38)
at n.WPML_core.templates/taxonomy-translation/filter.html [as template]

May 9, 2022 at 2:25 pm
May 10, 2022 at 4:17 am #11185749

Bobby
Supporter

Languages: English (English )

Timezone: America/Los_Angeles (GMT-08:00)

Hi there,

Please go to WPML->Settings-> Vertaling Taxonomiën and set the taxonomies you are trying to translate to Translatable as some are set to Not Translatable

Let me know your results, please.

May 11, 2022 at 2:03 pm #11200127

c.N

I just set all of those to translatable, but they still don't load in WooCommerce Multilingual.

May 12, 2022 at 12:40 am #11203081

Bobby
Supporter

Languages: English (English )

Timezone: America/Los_Angeles (GMT-08:00)

Hi there,

When I go to WooCommerce->WooCommerce Multilingual->Attributes I can now select and add translation to them.

Can you please confirm?

hidden link