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, 11 months ago.

Assisted by: Bigul.

Author Posts
October 16, 2022 at 5:34 am #12248273

sebastiaanV-11

Here's another error I got alongside more PHP warnings like the ones above:

[15-Oct-2022 20:11:23 UTC] WordPress database error Duplicate entry '147976-en' for key 'trid_lang' for query INSERT INTO `wp_icl_translations` (`element_type`, `language_code`, `source_language_code`, `trid`, `element_id`) VALUES ('post_product_variation', 'en', 'nl', '147976', '20147') made by require('wp-blog-header.php'), wp, WP->main, WP->parse_request, do_action_ref_array('parse_request'), WP_Hook->do_action, WP_Hook->apply_filters, rest_api_loaded, WP_REST_Server->serve_request, WP_REST_Server->dispatch, WP_REST_Server->respond_to_request, WPML\TM\ATE\REST\Download->download, WPML\TM\ATE\Download\Process->run, WPML\Collect\Support\Collection->map, array_map, WPML\TM\ATE\Download\Process->WPML\TM\ATE\Download\{closure}, WPML\TM\ATE\Download\Consumer->process, WPML_TM_ATE_Jobs->apply, wpml_tm_save_data, WPML_Save_Translation_Data_Action->save_translation, do_action('icl_pro_translation_completed'), WP_Hook->do_action, WP_Hook->apply_filters, WCML_Synchronize_Product_Data->icl_pro_translation_completed, WCML_Synchronize_Product_Data->sync_product_data, WCML_Synchronize_Variations_Data->sync_product_variations, SitePress->set_element_language_details, WPML_Set_Language->set, WPML_Set_Language->insert_new_row

October 16, 2022 at 5:47 am #12248311

sebastiaanV-11

Upon working on translations, more PHP warnings and again I cannot edit some translations from the translation queue (same issue as before, only shows the product page without any WPML editing functionality):

[16-Oct-2022 05:43:55 UTC] PHP Warning: foreach() argument must be of type array|object, null given in /home/mymoissanite/public_html/staging/wp-content/plugins/woocommerce-multilingual/inc/translation-editor/class-wcml-synchronize-product-data.php on line 609
[16-Oct-2022 05:43:55 UTC] PHP Warning: Undefined array key "fields" in /home/mymoissanite/public_html/staging/wp-content/plugins/woocommerce-multilingual/inc/translation-editor/class-wcml-synchronize-product-data.php on line 597

October 16, 2022 at 2:34 pm #12249307

sebastiaanV-11

I just tried to edit a translation that's waiting for review and I got another of those PHP warnings:

[16-Oct-2022 14:28:44 UTC] PHP Warning: Undefined array key "fields" in /home/mymoissanite/public_html/staging/wp-content/plugins/woocommerce-multilingual/inc/translation-editor/class-wcml-synchronize-product-data.php on line 597
[16-Oct-2022 14:28:44 UTC] PHP Warning: foreach() argument must be of type array|object, null given in /home/mymoissanite/public_html/staging/wp-content/plugins/woocommerce-multilingual/inc/translation-editor/class-wcml-synchronize-product-data.php on line 609
[16-Oct-2022 14:28:44 UTC] PHP Warning: Undefined array key "fields" in /home/mymoissanite/public_html/staging/wp-content/plugins/woocommerce-multilingual/inc/translation-editor/class-wcml-synchronize-product-data.php on line 597
[16-Oct-2022 14:28:44 UTC] PHP Warning: foreach() argument must be of type array|object, null given in /home/mymoissanite/public_html/staging/wp-content/plugins/woocommerce-multilingual/inc/translation-editor/class-wcml-synchronize-product-data.php on line 609
[16-Oct-2022 14:28:44 UTC] PHP Warning: Undefined array key "fields" in /home/mymoissanite/public_html/staging/wp-content/plugins/woocommerce-multilingual/inc/translation-editor/class-wcml-synchronize-product-data.php on line 597
[16-Oct-2022 14:28:44 UTC] PHP Warning: foreach() argument must be of type array|object, null given in /home/mymoissanite/public_html/staging/wp-content/plugins/woocommerce-multilingual/inc/translation-editor/class-wcml-synchronize-product-data.php on line 609
[16-Oct-2022 14:28:44 UTC] PHP Warning: Undefined array key "fields" in /home/mymoissanite/public_html/staging/wp-content/plugins/woocommerce-multilingual/inc/translation-editor/class-wcml-synchronize-product-data.php on line 597
[16-Oct-2022 14:28:44 UTC] PHP Warning: foreach() argument must be of type array|object, null given in /home/mymoissanite/public_html/staging/wp-content/plugins/woocommerce-multilingual/inc/translation-editor/class-wcml-synchronize-product-data.php on line 609
[16-Oct-2022 14:28:44 UTC] PHP Warning: Undefined array key "fields" in /home/mymoissanite/public_html/staging/wp-content/plugins/woocommerce-multilingual/inc/translation-editor/class-wcml-synchronize-product-data.php on line 597
[16-Oct-2022 14:28:44 UTC] PHP Warning: foreach() argument must be of type array|object, null given in /home/mymoissanite/public_html/staging/wp-content/plugins/woocommerce-multilingual/inc/translation-editor/class-wcml-synchronize-product-data.php on line 609
[16-Oct-2022 14:28:44 UTC] PHP Warning: Undefined array key "fields" in /home/mymoissanite/public_html/staging/wp-content/plugins/woocommerce-multilingual/inc/translation-editor/class-wcml-synchronize-product-data.php on line 597
[16-Oct-2022 14:28:44 UTC] PHP Warning: foreach() argument must be of type array|object, null given in /home/mymoissanite/public_html/staging/wp-content/plugins/woocommerce-multilingual/inc/translation-editor/class-wcml-synchronize-product-data.php on line 609

October 17, 2022 at 9:47 am #12252107

Bigul
Supporter

Languages: English (English )

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

Hello,

Thank you for the updates. We can resolve the issues one by one. It will help us to troubleshoot the bugs better. I have updated you on the other tickets. Please check it.

--
Thanks!

Bigul

October 23, 2022 at 2:16 pm #12295443
sebastiaanV-11

I continually keep receiving MANY of the following PHP errors, even after completely disabling RankMath and flushing all cache:

[23-Oct-2022 14:13:17 UTC] PHP Warning: Attempt to read property "element_id" on null in /home/mymoissanite/public_html/staging/wp-content/plugins/sitepress-multilingual-cms/classes/API/REST/jobs/class-wpml-tm-rest-jobs-view-model.php on line 171

[23-Oct-2022 14:14:18 UTC] PHP Warning: Undefined array key "14-1" in /home/mymoissanite/public_html/staging/wp-content/plugins/woocommerce/src/Internal/ProductAttributesLookup/LookupDataStore.php on line 459

The first one happens every time I attempt to review a translation. The second one happens usually when publishing a translation. It's considering product attributes that for some reason give issues. Please help me with this, I've been having these errors for weeks.

October 24, 2022 at 3:38 pm #12301839

Bigul
Supporter

Languages: English (English )

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

Hello,

Thank you for the updates. I have added new tickets for these warnings. We will debug it further and get back to you on the latest tickets as soon as possible.

--
Thanks!

Bigul

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