[Resolved] I am getting an error when editing/adding translation
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.
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?
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.
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.
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!
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.
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.
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.