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.

Sun Mon Tue Wed Thu Fri Sat
9:00 – 18:00 9:00 – 18:00 9:00 – 18:00 9:00 – 18:00 9:00 – 18:00 - -
- - - - - - -

Supporter timezone: Africa/Cairo (GMT+02:00)

This topic contains 6 replies, has 2 voices.

Last updated by Osama Mersal 11 months, 2 weeks ago.

Assisted by: Osama Mersal.

Author Posts
March 11, 2024 at 12:25 pm #15394946

innovativeb

Tell us what you are trying to do?
I'm trying to translate the pages

I see this error:
[11-Mar-2024 12:02:09 UTC] EXCEPTION: item should be a Collection or an array or an object in /home/customer/www/palm.thebrinkagency.com/public_html/wp-content/plugins/sitepress-multilingual-cms/vendor/wpml/fp/core/Obj.php on line 112

What is the link to your site?
hidden link

Screenshot 2024-03-11 at 1.24.06 PM.png
March 11, 2024 at 12:33 pm #15395095

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.

Please check this page and apply the mentioned workaround. (https://wpml.org/errata/fatal-error-uncaught-invalidargumentexception-item-should-be-a-collection-or-an-array-or-an-object-when-visiting-wpml-settings/)

If the above workaround didn't help, please check if the issue persists in a minimal environment by following these steps.

1- Deactivate all the plugins except WPML CMS and String Translation.
2- Switch to a WordPress default theme like Twenty Twenty-one.

If the issue is gone, activate them one by one to see which one is causing an interaction issue.

❌ Please backup your database before performing the above test ❌

Best regards,
Osama

March 11, 2024 at 1:39 pm #15395649

innovativeb

The above steps did not fix our issue.
The error is not connected to any plugin, since after deactivating them all the translations still didn't work.

However we located and "fixed" what you can see highlighted/marked in the screenshot below - the if statement - and now the translations work again. (sitepress-multilingual cms/vendor/wpml/fp/core/Obj.php)

Is this a reported bug? Is it going to be fixed in the next update? Or could be something else that our installation cretaes? Is there another workaround for this?

image (2).png
March 11, 2024 at 1:48 pm #15395700

Osama Mersal
Supporter

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

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

Hi,

Thanks for the page. I don't think it's a known issue, so I would need to look closely at your site.

For that, I 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 would need your permission to de-activate and re-activate the Plugins and Theme 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

March 11, 2024 at 2:00 pm #15395771

Osama Mersal
Supporter

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

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

Hi,

Thanks for the access details. I ran the troubleshooting functions in WPML-> Support-> Troubleshooting. (Kindly check this hidden link)

Please let me know the steps to reproduce the error. I tried to translate the home page, and the editor worked correctly.

Best regards,
Osama

March 11, 2024 at 2:38 pm #15396056

innovativeb

Yes as I explained above, after switching the if statement the translations are working again.

March 11, 2024 at 2:59 pm #15396193

Osama Mersal
Supporter

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

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

Hi,

I've installed a new fresh copy of WPML on your site. Please check if the issue persists.

Also, please revert any code modifications you made to the WPML code so we can check the issue.

Best regards,
Osama

The topic ‘[Closed] Translations turn to blanc page’ is closed to new replies.