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
- 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 -
- 12:00 – 16:00 12:00 – 16:00 12:00 – 16:00 12:00 – 16:00 12:00 – 16:00 -

Supporter timezone: Europe/Zagreb (GMT+02:00)

This topic contains 3 replies, has 1 voice.

Last updated by Dražen 2 weeks, 6 days ago.

Assisted by: Dražen.

Author Posts
April 10, 2025 at 2:26 pm #16919155

selwynH

Background of the issue:
I am trying to run an import using WPML Multilingual CMS. The issue can be seen on the page: hidden link. I expected to see an import success. If the site appears broken, I can use the recovery mode link: hidden link.

Symptoms:
Instead of a successful import, WordPress caught an error with the WPML Multilingual CMS plugin. The error details include: An error of type E_ERROR was caused in line 389 of the file /nas/content/live/homeinisrael/wp-content/plugins/sitepress-multilingual-cms/classes/translation-jobs/class-wpml-element-translation-package.php. Error message: Uncaught TypeError: array_filter(): Argument #1 ($array) must be of type array, bool given.

Questions:
What caused the critical error with WPML Multilingual CMS during the import?
How can I resolve the TypeError related to array_filter in the WPML plugin?

April 11, 2025 at 12:22 pm #16922621

Bigul
WPML Supporter since 01/2013

Languages: English (English )

Timezone: Europe/Vienna (GMT+02:00)

Hello,

Welcome to the WPML support forum. Before passing this thread to my colleague, I would like to share some suggestions and possible solutions for the issues you mentioned.

This may be a compatibility issue and is related to the following ticket. So please try the workaround suggested there after a full site backup {mandatory} and make sure you are getting the expected results or not.

https://wpml.org/forums/topic/when-importing-through-wp-import-i-am-getting-an-error-with-wpml

--
Thanks!

Bigul

April 15, 2025 at 9:16 pm #16936181

selwynH

I am having trouble locating the trouble shooting. I know that there are other imports that are working on a schedule. Please assist

April 16, 2025 at 6:39 am #16936870

Dražen
Supporter

Languages: English (English )

Timezone: Europe/Zagreb (GMT+02:00)

Hello,

Thanks for getting back.

Can you please try the suggestions from the ticket my colleague shared? I am also sharing it here so it is clear:

Try each step and after each try if this helps.

1. We recommend deactivating all plugins except for WPML and any essential plugins required for the import.
2. Navigate to WPML → Settings → Troubleshooting and perform the following actions:
- Clear the cache in WPML
- Set language information
- Fix the collation of element types
- Remove ghost entries from the translation tables
- Assign translation statuses to duplicated content
3. Replace the outdated 'WPML All Import' addon with the new 'WPML Export & Import' addon, which is compatible with WP All Export, WP All Import, and native WordPress and WooCommerce export and import methods. You can download it from here.

Let me know how it goes.

Regards,
Drazen

The topic ‘[Closed] Critical error with WPML Multilingual CMS’ is closed to new replies.