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?
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.
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.
Manage Cookie Consent
We use cookies to optimize our website and services. Your consent allows us to process data such as browsing behavior. Not consenting may affect some features.
Functional
Always active
Required for our website to operate and communicate correctly.
Preferences
The technical storage or access is necessary for the legitimate purpose of storing preferences that are not requested by the subscriber or user.
Statistics
We use these to analyze the statistics of our site. Collected information is completely anonymous.The technical storage or access that is used exclusively for anonymous statistical purposes. Without a subpoena, voluntary compliance on the part of your Internet Service Provider, or additional records from a third party, information stored or retrieved for this purpose alone cannot usually be used to identify you.
Marketing
These cookies track your browsing to provide ads relevant to you.