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.

This topic contains 20 replies, has 3 voices.

Last updated by Bigul 1 year, 10 months ago.

Assisted by: Bigul.

Author Posts
October 6, 2022 at 11:09 am #12193019

sebastiaanV-11

The main language is Dutch. Added English has second language. But sometimes WPML shows an English term as Dutch. Very confusing, because it only happens occasionally with some terms. For example, right now when translating taxonomies, I get an overview of all Dutch product categories. But just one of them shows the English category instead of Dutch like all the others. This is super confusing, because when I look at the actual product categories under WooCommerce settings, it is set correctly (in Dutch, so it should show the Dutch category, but shows an English one). I tried deleting WPML cache and some other troubleshooting options, nothing works. This also happens with other terms at times.

SEQaOMRBII.png
October 6, 2022 at 11:52 am #12193443
sebastiaanV-11

Here's more wrongly set language info. For almost all it shows original slug as english, but all original content should be in Dutch? Also languages are mixed here. Very confusing.

New threads created by Bigul and linked to this one are listed below:

https://wpml.org/forums/topic/it-shows-original-slug-in-english-instead-of-dutch/

cchASqtQin.png
October 7, 2022 at 4:34 pm #12203133

sebastiaanV-11

I have a debug.log with a bunch of errors. That should explain a lot, because they are mostly related to WPML. Please give me the option to upload those.

October 10, 2022 at 6:45 am #12210517

Nigel
Supporter

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

Hi there

Could you please upload the debug.log file to dropbox, wetransfer, or any other file-sharing service and I'll retrieve it from there.

(The link will be automatically hidden, no-one else will be able to see it.)

October 10, 2022 at 10:26 am #12212199

sebastiaanV-11

Hello. Yes of course. Here it is: hidden link

October 10, 2022 at 12:39 pm #12213513

Bigul
Supporter

Languages: English (English )

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

Hello,

Thank you for sharing the debug.log. The Debug log is showing a few Fatal errors and warnings related to WPML. The last error was recorded yesterday. So have you translated a Post or Page yesterday?


PHP Fatal error: Uncaught Error: Call to a member function get_element_id() on null in /home/mymoissanite/public_html/staging/wp-content/plugins/sitepress-multilingual-cms/classes/emails/notification/summary/class-wpml-tm-jobs-summary-report.php:81

Please visit WooCommerce>>WooCommerce Multilingual>>Status tab and check if you are getting any configuration warnings.

Also, please visit the WPML>Languages, settings page and make sure the following options are enabled.

a) Make themes work multilingual>>Adjust IDs for multilingual functionality

b) Language filtering for AJAX operations>>Store a language cookie to support language filtering for AJAX

--
Thanks!

Bigul

October 11, 2022 at 5:16 am #12217175
sebastiaanV-11

Hi Bigul. Thank you. The Adjust IDs for multilingual functionality weren't turned on. So I switched it on and deleted the cache. I tried reviewing some automatic translations. However, when I do so, it brings me to the page but doesn't show the WPML overlay with the translation functionality. So when I click on "edit translation" in the admin panel, it does bring me to the translation editor. When I then click 'complete' it sends me to the next page without actually letting me publish it. When I try to manually approve the translation in translation management I get an error "approving translations reviews failed!" I also get the following PHP warning:

[11-Oct-2022 05:12:46 UTC] PHP Warning:  Undefined array key "14-1-en" in /home/mymoissanite/public_html/staging/wp-content/plugins/woocommerce/src/Internal/ProductAttributesLookup/LookupDataStore.php on line 535
[11-Oct-2022 05:12:46 UTC] PHP Warning:  Undefined array key "14-5-en" in /home/mymoissanite/public_html/staging/wp-content/plugins/woocommerce/src/Internal/ProductAttributesLookup/LookupDataStore.php on line 535
[11-Oct-2022 05:12:46 UTC] PHP Warning:  Undefined array key "14-9-en" in /home/mymoissanite/public_html/staging/wp-content/plugins/woocommerce/src/Internal/ProductAttributesLookup/LookupDataStore.php on line 535
[11-Oct-2022 05:12:46 UTC] PHP Warning:  Undefined array key "15-3-en" in /home/mymoissanite/public_html/staging/wp-content/plugins/woocommerce/src/Internal/ProductAttributesLookup/LookupDataStore.php on line 535
[11-Oct-2022 05:12:46 UTC] PHP Warning:  Undefined array key "15-7-en" in /home/mymoissanite/public_html/staging/wp-content/plugins/woocommerce/src/Internal/ProductAttributesLookup/LookupDataStore.php on line 535
[11-Oct-2022 05:12:46 UTC] PHP Warning:  Undefined array key "16-1-en" in /home/mymoissanite/public_html/staging/wp-content/plugins/woocommerce/src/Internal/ProductAttributesLookup/LookupDataStore.php on line 535
[11-Oct-2022 05:12:46 UTC] PHP Warning:  Undefined array key "16-5-en" in /home/mymoissanite/public_html/staging/wp-content/plugins/woocommerce/src/Internal/ProductAttributesLookup/LookupDataStore.php on line 535
[11-Oct-2022 05:12:46 UTC] PHP Warning:  Undefined array key "16-9-en" in /home/mymoissanite/public_html/staging/wp-content/plugins/woocommerce/src/Internal/ProductAttributesLookup/LookupDataStore.php on line 535
[11-Oct-2022 05:12:46 UTC] PHP Warning:  Undefined array key "17-3-en" in /home/mymoissanite/public_html/staging/wp-content/plugins/woocommerce/src/Internal/ProductAttributesLookup/LookupDataStore.php on line 535
[11-Oct-2022 05:12:46 UTC] PHP Warning:  Undefined array key "17-7-en" in /home/mymoissanite/public_html/staging/wp-content/plugins/woocommerce/src/Internal/ProductAttributesLookup/LookupDataStore.php on line 535
[11-Oct-2022 05:12:46 UTC] PHP Warning:  Undefined array key "18-1-en" in /home/mymoissanite/public_html/staging/wp-content/plugins/woocommerce/src/Internal/ProductAttributesLookup/LookupDataStore.php on line 535
[11-Oct-2022 05:12:46 UTC] PHP Warning:  Undefined array key "18-5-en" in /home/mymoissanite/public_html/staging/wp-content/plugins/woocommerce/src/Internal/ProductAttributesLookup/LookupDataStore.php on line 535
[11-Oct-2022 05:12:46 UTC] PHP Warning:  Undefined array key "18-9-en" in /home/mymoissanite/public_html/staging/wp-content/plugins/woocommerce/src/Internal/ProductAttributesLookup/LookupDataStore.php on line 535
[11-Oct-2022 05:12:46 UTC] PHP Warning:  Undefined array key "19-4-en" in /home/mymoissanite/public_html/staging/wp-content/plugins/woocommerce/src/Internal/ProductAttributesLookup/LookupDataStore.php on line 535
[11-Oct-2022 05:12:47 UTC] PHP Warning:  Undefined array key "19-8-en" in /home/mymoissanite/public_html/staging/wp-content/plugins/woocommerce/src/Internal/ProductAttributesLookup/LookupDataStore.php on line 535
[11-Oct-2022 05:12:47 UTC] PHP Warning:  Undefined array key "20-2-en" in /home/mymoissanite/public_html/staging/wp-content/plugins/woocommerce/src/Internal/ProductAttributesLookup/LookupDataStore.php on line 535
[11-Oct-2022 05:12:47 UTC] PHP Warning:  Undefined array key "20-6-en" in /home/mymoissanite/public_html/staging/wp-content/plugins/woocommerce/src/Internal/ProductAttributesLookup/LookupDataStore.php on line 535
[11-Oct-2022 05:12:47 UTC] PHP Warning:  Undefined array key "21-en" in /home/mymoissanite/public_html/staging/wp-content/plugins/woocommerce/src/Internal/ProductAttributesLookup/LookupDataStore.php on line 535
[11-Oct-2022 05:12:47 UTC] PHP Warning:  Undefined array key "21-4-en" in /home/mymoissanite/public_html/staging/wp-content/plugins/woocommerce/src/Internal/ProductAttributesLookup/LookupDataStore.php on line 535
[11-Oct-2022 05:12:47 UTC] PHP Warning:  Undefined array key "21-8-en" in /home/mymoissanite/public_html/staging/wp-content/plugins/woocommerce/src/Internal/ProductAttributesLookup/LookupDataStore.php on line 535
[11-Oct-2022 05:12:47 UTC] PHP Warning:  Undefined array key "22-2-en" in /home/mymoissanite/public_html/staging/wp-content/plugins/woocommerce/src/Internal/ProductAttributesLookup/LookupDataStore.php on line 535
[11-Oct-2022 05:12:47 UTC] PHP Warning:  Undefined array key "22-6-en" in /home/mymoissanite/public_html/staging/wp-content/plugins/woocommerce/src/Internal/ProductAttributesLookup/LookupDataStore.php on line 535

New threads created by Bigul and linked to this one are listed below:

https://wpml.org/forums/topic/approving-translations-reviews-failed/

October 11, 2022 at 10:37 am #12219201

Bigul
Supporter

Languages: English (English )

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

Hello,

Thank you for the updates. Please note that I have opened a new ticket for the *approving translations reviews failed!* issue to avoid discussing multiple problems here.

The following warning is coming from WooCommerce and it is not related to WPML.

PHP Warning:  Undefined array key "22-6-en" in /home/mymoissanite/public_html/staging/wp-content/plugins/woocommerce/src/Internal/ProductAttributesLookup/LookupDataStore.php on line 535

Just to make sure, are still having the issue with Product category terms like this - hidden link

If so, please increase the *MaxInputVars* of PHP settings to *10000* and make sure is there any difference in the result. Refer to the following article for more details and contact your system admin/hosting provider for upgrading this configuration.

hidden link

--
Thanks!

Bigul

October 11, 2022 at 11:36 am #12219509

sebastiaanV-11

Hi Bigul,

the issue with wrong product categories is solved. It was simply a product category that was translated twice (so double categories were added in wrong language). Not sure how that happened, but the product categories are good now.

October 11, 2022 at 12:17 pm #12219851

sebastiaanV-11

P.S Are you sure the PHP warning is coming from WooCommerce? Because I have a feeling it comes from WPML due to the 'en' being in the undefined array key, which stands for English. Could be wrong, though.

October 11, 2022 at 3:21 pm #12221561

Bigul
Supporter

Languages: English (English )

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

Hello,

Thank you for the feedback. Happy to know you are getting the expected results for Product Categories now.

Please check the following line. PHP warning is coming from WooCommerce files. I had a quick check on our old tickets. But not able to find this warning.

wp-content/plugins/woocommerce/src/Internal/ProductAttributesLookup/LookupDataStore.php on line 535

Therefore please let us know the exact steps to reproduce. It will help us to track whether this one is related to WPML or not.

--
Thanks!

Bigul

October 12, 2022 at 10:14 am #12226265

sebastiaanV-11

I have no idea what triggers this error. What would you suggest I do with this, contact woocommerce support?

October 12, 2022 at 10:42 am #12226537
sebastiaanV-11

I have done some debugging and found out the following:

The 'ProductAttributesLookup' PHP warning is coming from two taxonomies (length = lengte and ringmaat = ring size) that are translated by WPML. These should not be translated, so I disabled translation of these in WPML settings, and cleared WPML cache and did some of the other debugging functionality. Will monitor if this fixed the issue.

The ProductAttributesLookup errors, by the way, come as soon as I regenerate product lookup tables in WooCommerce. Will attempt again and notify if the issue is resolved.

Furthermore, after utilizing most of the troubleshooting tools in WPML, I got two new errors now:

[12-Oct-2022 10:33:37 UTC] PHP Warning:  exif_read_data(ava-1.jpg): Incorrect APP1 Exif Identifier Code in /home/mymoissanite/public_html/staging/wp-admin/includes/image.php on line 846
[12-Oct-2022 10:33:37 UTC] PHP Warning:  exif_read_data(ava-1.jpg): Incorrect APP1 Exif Identifier Code in /home/mymoissanite/public_html/staging/wp-admin/includes/image.php on line 846
[12-Oct-2022 10:33:39 UTC] PHP Warning:  exif_read_data(ava-3.jpg): Incorrect APP1 Exif Identifier Code in /home/mymoissanite/public_html/staging/wp-admin/includes/image.php on line 846
[12-Oct-2022 10:33:39 UTC] PHP Warning:  exif_read_data(ava-3.jpg): Incorrect APP1 Exif Identifier Code in /home/mymoissanite/public_html/staging/wp-admin/includes/image.php on line 846
[12-Oct-2022 10:33:41 UTC] PHP Warning:  exif_read_data(ava-4.jpg): Incorrect APP1 Exif Identifier Code in /home/mymoissanite/public_html/staging/wp-admin/includes/image.php on line 846
[12-Oct-2022 10:33:41 UTC] PHP Warning:  exif_read_data(ava-4.jpg): Incorrect APP1 Exif Identifier Code in /home/mymoissanite/public_html/staging/wp-admin/includes/image.php on line 846

This I believe is also coming from WPML. Alongside this one that gave a fatal error considering the exchange rates:

[12-Oct-2022 10:36:05 UTC] Exchange rates update error (currencylayer): cURL error 28: Operation timed out after 5001 milliseconds with 0 bytes received
[12-Oct-2022 10:36:05 UTC] PHP Fatal error:  Uncaught Exception: cURL error 28: Operation timed out after 5001 milliseconds with 0 bytes received in /home/mymoissanite/public_html/staging/wp-content/plugins/woocommerce-multilingual/classes/multi-currency/class-wcml-exchange-rates.php:189
Stack trace:
#0 /home/mymoissanite/public_html/staging/wp-content/plugins/woocommerce-multilingual/classes/multi-currency/class-wcml-exchange-rates.php(152): WCML_Exchange_Rates->fetch_exchange_rates_from_active_service(Array)
#1 /home/mymoissanite/public_html/staging/wp-includes/class-wp-hook.php(307): WCML_Exchange_Rates->update_exchange_rates()
#2 /home/mymoissanite/public_html/staging/wp-includes/class-wp-hook.php(331): WP_Hook->apply_filters('', Array)
#3 /home/mymoissanite/public_html/staging/wp-includes/plugin.php(524): WP_Hook->do_action(Array)
#4 /home/mymoissanite/public_html/staging/wp-cron.php(138): do_action_ref_array('wcml_exchange_r...', Array)
#5 {main}
  thrown in /home/mymoissanite/public_html/staging/wp-content/plugins/woocommerce-multilingual/classes/multi-currency/class-wcml-exchange-rates.php on line 189

I hope we can solve these each! 🙂 Thank you.

October 12, 2022 at 6:24 pm #12229525

Bigul
Supporter

Languages: English (English )

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

Hello,

Thank you for the feedback on ProductAttributesLookup errors. We will wait for your updates.

Please note that I have opened new tickets for the other issues and will get back to you soon there.

--
Thanks!

Bigul

October 15, 2022 at 3:26 pm #12246685

sebastiaanV-11

They returned. Please see:

[15-Oct-2022 15:19:49 UTC] PHP Warning: Undefined array key "15-cm" in /home/mymoissanite/public_html/staging/wp-content/plugins/woocommerce/src/Internal/ProductAttributesLookup/LookupDataStore.php on line 459
[15-Oct-2022 15:19:49 UTC] PHP Warning: Undefined array key "16-5-cm" in /home/mymoissanite/public_html/staging/wp-content/plugins/woocommerce/src/Internal/ProductAttributesLookup/LookupDataStore.php on line 459
[15-Oct-2022 15:19:49 UTC] PHP Warning: Undefined array key "18-cm" in /home/mymoissanite/public_html/staging/wp-content/plugins/woocommerce/src/Internal/ProductAttributesLookup/LookupDataStore.php on line 459
[15-Oct-2022 15:19:49 UTC] PHP Warning: Undefined array key "19-cm" in /home/mymoissanite/public_html/staging/wp-content/plugins/woocommerce/src/Internal/ProductAttributesLookup/LookupDataStore.php on line 459
[15-Oct-2022 15:19:49 UTC] PHP Warning: Undefined array key "20-cm" in /home/mymoissanite/public_html/staging/wp-content/plugins/woocommerce/src/Internal/ProductAttributesLookup/LookupDataStore.php on line 459
[15-Oct-2022 15:19:49 UTC] PHP Warning: Undefined array key "21-5-cm" in /home/mymoissanite/public_html/staging/wp-content/plugins/woocommerce/src/Internal/ProductAttributesLookup/LookupDataStore.php on line 459

These are WPML related because they have to do with product attribute (lengte) translations.

This ticket is now closed. If you're a WPML client and need related help, please open a new support ticket.