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.

Elementor users - please update WPML to the latest version to maintain compatibility. More details here - https://wpml.org/changelog/2024/12/wpml-4-6-15-critical-update-for-elementor-sites/
Sun Mon Tue Wed Thu Fri Sat
- 7:00 – 12:00 7:00 – 12:00 7:00 – 12:00 7:00 – 12:00 7:00 – 12:00 -
- 13:00 – 15:00 13:00 – 15:00 13:00 – 15:00 13:00 – 15:00 13:00 – 15:00 -

Supporter timezone: Europe/Madrid (GMT+01:00)

This topic contains 0 replies, has 0 voices.

Last updated by Paola Mendiburu 4 days, 14 hours ago.

Assisted by: Carlos Rojas.

Author Posts
November 27, 2024 at 12:01 pm #16448871

danielK-111

Background of the issue:
I am trying to go into WooCommerce product, variation type, in order to modify translation of attributes. I encountered an error when accessing the translation screen. Link to a page where the issue can be seen: hidden link

Symptoms:
There has been a critical error on this website. Error Details: An error of type E_ERROR was caused in line 375 of the file /srv/htdocs/wp-content/plugins/woocommerce-multilingual/inc/translation-editor/class-wcml-editor-ui-product-job.php. Error message: Uncaught TypeError: key(): Argument #1 ($array) must be of type array, null given.

Questions:
How can I resolve the critical error when modifying translation of attributes in WooCommerce?
What steps should I take if deactivating and reactivating the WPML plugin did not help?

November 27, 2024 at 12:19 pm #16449107

Carlos Rojas
Supporter

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

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

Hello,
Thank you for contacting us

I need to take a closer look at the site configuration and the error. I have set your next message private so you can securely share the access credentials to the site.

Please don't forget to create a full site backup before sharing the credentials.

Regards,
Carlos

November 27, 2024 at 1:23 pm #16449991

Carlos Rojas
Supporter

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

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

Thank you for sharing this information.

Before we continue I need to ask you to create a full site backup and update all outdated plugins and themes that appear in this link: hidden link then double-check if the issue disappeared.

November 27, 2024 at 1:48 pm #16450175

danielK-111

this is IMPOSSIBLE at the moment.

since some plugins cause issues, we can't do updates of all plugins\themes. That is why we are preparing new site version,

I want to assure you that this issue is not related in any way to the plugins which are not updated, and is fullly related to WPML ( on new site, which is in staging, we have all plugins updated, and issue exist there, as i described before,)

November 27, 2024 at 1:54 pm #16450206

Carlos Rojas
Supporter

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

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

I understand.

I found and solved a small issue on the database. I also found that the Shop page is not created, so I kindly ask you to create the shop page and translate it.

Then (if possible) I recommend you to update at least the Woocommerce plugin and double-check if the issue disappeared.

November 27, 2024 at 4:09 pm #16451003

danielK-111

I wrote you, previous msg,

I HAVE STAGING SITE, where all plugins, themes, wordpress core UPDATED.
and the issue is same, I CAN NOT enter translation
getting error:

There has been a critical error on this website. Please check your site admin email inbox for instructions. If you continue to have problems, please try the support forums.

Learn more about troubleshooting WordPress.

I can share with you login details of staging site, where all plugins updated, but the issue is still there..

November 28, 2024 at 10:39 am #16454323

Carlos Rojas
Supporter

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

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

Hi,

Please share the access credentials to the staging site in your next message, and don't forget to create a full site backup before sharing the credentials.

I will take a look at the configuration and see if there is any other problem.

November 28, 2024 at 11:29 am #16454592

Carlos Rojas
Supporter

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

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

Thank you for sharing the credentials.

Please check if the issue in hidden link disappeared.

November 28, 2024 at 12:04 pm #16454870

danielK-111

Hi Carlos,

No,
See attached image, where i click.
here error i get:

Warning: Undefined array key "_file_paths93368" in /home/wydajnyteam/domains/staging-coinlooting-final.wydajnyteam.pl/public_html/wp-content/plugins/woocommerce-multilingual/inc/translation-editor/class-wcml-editor-ui-product-job.php on line 375

Fatal error: Uncaught TypeError: key(): Argument #1 ($array) must be of type array, null given in /home/wydajnyteam/domains/staging-coinlooting-final.wydajnyteam.pl/public_html/wp-content/plugins/woocommerce-multilingual/inc/translation-editor/class-wcml-editor-ui-product-job.php:375 Stack trace: #0 /home/wydajnyteam/domains/staging-coinlooting-final.wydajnyteam.pl/public_html/wp-content/plugins/woocommerce-multilingual/inc/translation-editor/class-wcml-editor-ui-product-job.php(375): key() #1 /home/wydajnyteam/domains/staging-coinlooting-final.wydajnyteam.pl/public_html/wp-content/plugins/woocommerce-multilingual/inc/translation-editor/class-wcml-editor-ui-product-job.php(241): WCML_Editor_UI_Product_Job->add_custom_fields_ui_section() #2 /home/wydajnyteam/domains/staging-coinlooting-final.wydajnyteam.pl/public_html/wp-content/plugins/woocommerce-multilingual/inc/translation-editor/class-wcml-editor-ui-product-job.php(86): WCML_Editor_UI_Product_Job->add_elements() #3 /home/wydajnyteam/domains/staging-coinlooting-final.wydajnyteam.pl/public_html/wp-content/plugins/woocommerce-multilingual/inc/translation-editor/class-wcml-translation-editor.php(57): WCML_Editor_UI_Product_Job->__construct() #4 /home/wydajnyteam/domains/staging-coinlooting-final.wydajnyteam.pl/public_html/wp-includes/class-wp-hook.php(324): WCML_Translation_Editor->fetch_translation_job_for_editor() #5 /home/wydajnyteam/domains/staging-coinlooting-final.wydajnyteam.pl/public_html/wp-includes/plugin.php(205): WP_Hook->apply_filters() #6 /home/wydajnyteam/domains/staging-coinlooting-final.wydajnyteam.pl/public_html/wp-content/plugins/sitepress-multilingual-cms/classes/menu/translation-editor/class-wpml-translation-editor-ui.php(342): apply_filters() #7 /home/wydajnyteam/domains/staging-coinlooting-final.wydajnyteam.pl/public_html/wp-content/plugins/sitepress-multilingual-cms/classes/menu/translation-editor/class-wpml-translation-editor-ui.php(185): WPML_Translation_Editor_UI->filter_the_model() #8 /home/wydajnyteam/domains/staging-coinlooting-final.wydajnyteam.pl/public_html/wp-content/plugins/sitepress-multilingual-cms/classes/menu/translation-editor/class-wpml-translation-editor-ui.php(91): WPML_Translation_Editor_UI->output_model() #9 /home/wydajnyteam/domains/staging-coinlooting-final.wydajnyteam.pl/public_html/wp-content/plugins/sitepress-multilingual-cms/classes/menu/translation-queue/class-wpml-translations-queue.php(78): WPML_Translation_Editor_UI->render() #10 /home/wydajnyteam/domains/staging-coinlooting-final.wydajnyteam.pl/public_html/wp-content/plugins/sitepress-multilingual-cms/classes/class-wpml-translation-management.php(373): WPML_Translations_Queue->display() #11 /home/wydajnyteam/domains/staging-coinlooting-final.wydajnyteam.pl/public_html/wp-includes/class-wp-hook.php(324): WPML_Translation_Management->translation_queue_page() #12 /home/wydajnyteam/domains/staging-coinlooting-final.wydajnyteam.pl/public_html/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters() #13 /home/wydajnyteam/domains/staging-coinlooting-final.wydajnyteam.pl/public_html/wp-includes/plugin.php(517): WP_Hook->do_action() #14 /home/wydajnyteam/domains/staging-coinlooting-final.wydajnyteam.pl/public_html/wp-admin/admin.php(259): do_action() #15 {main} thrown in /home/wydajnyteam/domains/staging-coinlooting-final.wydajnyteam.pl/public_html/wp-content/plugins/woocommerce-multilingual/inc/translation-editor/class-wcml-editor-ui-product-job.php on line 375
There has been a critical error on this website. Please check your site admin email inbox for instructions. If you continue to have problems, please try the support forums.

Learn more about troubleshooting WordPress.

Screenshot 2024-11-28 at 1.03.10 PM.png
November 28, 2024 at 12:29 pm #16454977

Carlos Rojas
Supporter

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

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

Thank you very much for your cooperation.

I have escalated this ticket to our 2nd tier of support where our specialists will take a deeper look at the issue and will isolate its cause.

I will keep you updated on the evolution of this ticket.

December 11, 2024 at 10:43 am #16502892

Carlos Rojas
Supporter

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

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

Hi there,

I have fixed a small issue in the database, left the site in a minimal setup after deactivating all plugins, except the WPML ones and Woocommerce, and activated a default WordPress theme.

I can't reproduce the error now. I kindly ask you to try reproducing the error on the staging site and if the issue disappears, start by activating the theme and then the rest of the plugins, one by one, until the issue appears again and you find the culprit.

Could you tell me the results of the steps described above?

December 11, 2024 at 10:53 am #16502909

danielK-111

Hello Carlos

we agreed that you ONLY LOOK, and do NO CHANGES without approval,
Why the hell you turn off all themes and plugins and do anything?!?!?1?!?

moreover you do it almost 2 weeks after your last msg.
This is not OKAY@!

December 11, 2024 at 10:58 am #16502924

danielK-111

I am extremely dissatisfied with the behavior of the WPML support team.

In the future, I will seriously reconsider sharing any access with you. It was clearly agreed that no changes or actions would be taken without prior discussion. However, your support agent, after two weeks of silence, decided to log in and make changes without any communication or approval.

This is utterly unprofessional.

December 11, 2024 at 11:05 am #16502943

Carlos Rojas
Supporter

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

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

Hello,
I'm sorry, it was an honest mistake.

No important changes were made to the staging site, only disabling plugins and themes so that the site is going to be back to normal after re-enabling them.

I apologize for the inconvenience, I missed out the part were you asked me not to make changes on the staging site and went ahead and isolated the cause of the issue.

December 16, 2024 at 9:56 am #16516528

Paola Mendiburu
Supporter

Languages: English (English ) Spanish (Español ) Italian (Italiano )

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

Hi there!

This is Paola and I will continue with the ticket as Carlos is on holidays.

There is an answer from the second tier that it seems a corruption in icl_translate table in the database.

Could it be possible to have access to the staging site? And do you give me permission to install plugin Adminer to have access to the database so I can check where is the corrupted elemento in the database?

I have enabled next answer as private so you can add the wordpress credentials for the staging site in a secure way.