Skip Navigation

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

Problem:
You are experiencing a fatal error when trying to edit or add a translation in WPML, despite having updated PHP and WP memory limits and contacting your hosting provider to address issues in the wp-option table.
Solution:
First, ensure that your user profile under Users-> Profile includes an email and a nickname, and make sure to update this information. Next, navigate to WPML-> Translation Management -> Translators tab and verify that your profile is listed as a translator with the correct language pairs.

If this solution does not resolve your issue or seems outdated, we recommend checking for 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 open a new support ticket at WPML support forum for further assistance.

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 1 reply, has 1 voice.

Last updated by Osama Mersal 19 hours, 49 minutes ago.

Assisted by: Osama Mersal.

Author Posts
December 20, 2024 at 5:38 pm #16535115

rabeeK

Background of the issue:
I am trying to edit or add a translation using WPML. I have already increased the PHP and WP memory limits, ensured WPML is up to date, and contacted my hosting provider to delete the acfml_field_name_patterns key in the wp-option table, but they couldn't find it and they have escalated the issue to tech level 2. i dont know if they will able to help me since the issue on WPML plugin.

Symptoms:
I am getting the following error message: Fatal error: Uncaught InvalidArgumentException: item should be a Collection or an array or an object in /home/xdwpb781/public_html/wp-content/plugins/sitepress-multilingual-cms/vendor/wpml/fp/core/Obj.php:112. There has been a critical error on this website.

Questions:
How can I resolve the fatal error when editing or adding a translation?
What should I do if my hosting provider cannot find the acfml_field_name_patterns key?

December 21, 2024 at 1:24 am #16535726

rabeeK

Good day,

Any update on this ticket please? I am not able to work at all on my website because of this issue.

December 22, 2024 at 2:29 pm #16537801

Osama Mersal
Supporter

Languages: English (English ) Arabic (العربية )

Timezone: Africa/Cairo (GMT+02:00)

Hi,

Thanks for contacting WPML forums support. I'll be glad to help you today.

First of all, sorry for the late reply; it was due to a higher workload.

I would need to look closely at your site, so I would need to request temporary access (WP-Admin and FTP)
Preferably to a test site where the problem has been replicated.

Your answer will be private, meaning only you and I can access it.

❌ Please backup your database and website ❌

✙ I need your permission to deactivate and reactivate the plugins and themes and change site configurations. This is also why the backup is critical.

✙ I also need your permission to take a local copy of your site to debug the issue without affecting your live site.

Best regards,
Osama

December 22, 2024 at 4:37 pm #16538136

Osama Mersal
Supporter

Languages: English (English ) Arabic (العربية )

Timezone: Africa/Cairo (GMT+02:00)

Hi,

Thanks for the access details. I tried to edit a translated page using Elementor and WPML Translation Editor, which worked correctly. (Kindly check the attached screenshot)

Please provide me with the steps to reproduce this issue. If you know of a problematic page, please share its URL so I can check it.

Best regards,
Osama

2024-12-22_18-34-52.png
December 22, 2024 at 5:36 pm #16538210

rabeeK

Hello Osama,

This is so weird!!

I access my dashboard > Page/Post > click the setting gear/+ to start the translation.

This is the link to one of the pages that I am attempting to translate.

hidden link

Screenshot 2024-12-22 123446.jpg
December 22, 2024 at 5:53 pm #16538227

Osama Mersal
Supporter

Languages: English (English ) Arabic (العربية )

Timezone: Africa/Cairo (GMT+02:00)

Hi,

The translation of the page you mentioned worked correctly. (Kindly check the attached screenshot)

Please use the provided account and a private window to test the issue using a different account without browser caching.

Best regards,
Osama

2024-12-22_19-51-46.png
December 22, 2024 at 6:01 pm #16538245

rabeeK

Hello Osama,

I used the credential i provided to you (Techsupport) and the and the translations functioned without any problems. but it does not work with my account which has exactly same rights!! This is quite confusing and does not make any sense!

what is your explanation about this?

regards,

December 22, 2024 at 6:23 pm #16538253

Osama Mersal
Supporter

Languages: English (English ) Arabic (العربية )

Timezone: Africa/Cairo (GMT+02:00)

Hi,

Please go to Users-> Profile and ensure your profile has an email and nickname, then update it.

After that, please go to WPML-> Translation Management -> Translators tab and ensure your profile is added as a translator with the correct language pairs.

Best regards,
Osama

December 22, 2024 at 6:33 pm #16538263

rabeeK

Hi Osama,

IT WORKS!!!! My name was not in the translator page which. i dont know why lol.
I was translating last week with no issue and suddenly this happens.. but anyway...

Thank you very much for your help. really appreciate it. You have been super helpful.

Regards,

December 22, 2024 at 7:30 pm #16538354

Osama Mersal
Supporter

Languages: English (English ) Arabic (العربية )

Timezone: Africa/Cairo (GMT+02:00)

Hi,

It's great to hear that the issue is fixed. 🙂 Please don't hesitate to open a new ticket if you face any other issues. We are always happy to help you.

Have a great day!

Best regards,
Osama