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.