Skip to content Skip to sidebar

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

Problem:
The client was experiencing a PHP Fatal error: Uncaught InvalidArgumentException when trying to translate a page from English to French in WPML. This error occurred after the client added French and removed Canada French.
Solution:
We first suggested checking the plugin versions and ensuring everything was updated. After confirming the updates, we identified a potential related issue documented at https://wpml.org/errata/fatal-error-uncaught-invalidargumentexception-item-should-be-a-collection-or-an-array-or-an-object-when-visiting-wpml-settings/. We then advised the client to perform a full backup and provided steps to insert specific code into the wp-config.php file to increase memory limits:

define('WP_MAX_MEMORY_LIMIT', '256M');<br />define('WP_MEMORY_LIMIT', '128M');

Despite these steps, the error persisted, leading us to request admin access to investigate further. After additional checks and adjustments, the issue was resolved.

If this solution does not apply to your case, or if it seems outdated, we highly recommend checking 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 the problem persists, please open a new support ticket at WPML support forum.

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 replies, has 2 voices.

Last updated by Kor 1 year, 1 month ago.

Assisted by: Kor.

Author Posts
June 12, 2024 at 5:44 pm

mattB-35

Background of the issue:
I am trying to translate a page from English to French.

Symptoms:
I encountered a PHP Fatal error: Uncaught InvalidArgumentException: item should be a Collection or an array or an object in /home/835434.cloudwaysapps.com/smudjxbtdj/public_html/wp-content/plugins/sitepress-multilingual-cms/vendor/wpml/fp/core/Obj.php:112

Questions:
What could be causing the PHP Fatal error when translating a page?
How can I resolve the InvalidArgumentException error?

June 12, 2024 at 6:00 pm
June 12, 2024 at 6:01 pm #15733151

Kor
WPML Supporter since 08/2022

Languages: English (English )

Timezone: Asia/Singapore (GMT+08:00)

Thanks for your reply.

It seems to work fine now when I checked hidden link . Could you confirm?