Skip to content Skip to sidebar

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

Problem:
The client is experiencing a PHP Fatal error during the import process using the WPML plugin, specifically when using the WPML All Import addon. The error message indicates a type error with array_filter() expecting an array but receiving a boolean.

Solution:
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.
4. Ensure that the import process in WP All Import is fully completed before running the WPML importer in WPML > Export & Import.

If you're still experiencing issues after following these steps, or if the solution provided here becomes 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 for further assistance.

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.

This topic contains 0 reply, has 3 voices.

Last updated by Prosenjit Barman 7 months, 3 weeks ago.

Assisted by: Prosenjit Barman.

Author Posts
December 6, 2024 at 10:39 am #16485461

Prosenjit Barman
WPML Supporter since 03/2023

Languages: English (English )

Timezone: Asia/Dhaka (GMT+06:00)

Hello There!
I hope you're dong well!

As Marcel is on vacation, I’ve taken this ticket and will do my best to assist you further.

Thank you for sharing the video. Upon reviewing it, I noticed that right after initiating the import process in WP All Import, you opened the Export and Import page of WPML in another tab and ran the importer. However, you should only click that button after the import process initiated in the WP All Import plugin is fully completed — not before.

Running the WPML importer before the WP All Import process is finished may disrupt the synchronization or data import process, which might explain the reason behind the issue.

After initiating the WP All Import process, please wait until it is fully completed (100%). Once the import process is finished, navigate to WPML > Export and Import and then run the importer.

If the issue persists despite following this approach, please share the correct access credentials for your site, along with the CSV file you’re importing, so I can investigate further. The access details you provided in the last response appear to be incorrect. Kindly review this screenshot for reference: hidden link

I've enabled the private box for you so that you can securely share the access. Looking forward to youur response.

Best regards,
Prosenjit

December 10, 2024 at 7:56 pm #16500264

johnC-27

Here is a link to the document i am uploading
hidden link

December 11, 2024 at 6:21 am #16501539

Prosenjit Barman
WPML Supporter since 03/2023

Languages: English (English )

Timezone: Asia/Dhaka (GMT+06:00)

Hi There!
Thank you for the update.

Just to confirm—has the WP All Import translation process been completed 100%? If so, does that mean the error you initially mentioned in the ticket is no longer occurring? Am I understanding this correctly?

Once the import is fully completed, you’ll need to run the WPML Importer by going to WPML > Export and Import. This ensures that the language information and content linking are correctly applied to the imported items.

I also checked your site and can confirm that some Chinese pages are accessible. For example, this one:
hidden link.

If the error you originally mentioned in this ticket did not occur during the import and the import has been 100% completed, then the issue with the Chinese language could be unrelated. Upon reviewing the CSV file, I can see that the content is correctly set.

If you're still experiencing issues with the Chinese language, it would be best to create a new ticket for that specific problem. Since we are allowed to address only one issue per ticket, creating a new one with as many details as possible will help us focus specifically on that issue and provide the best possible solution.

I appreciate your understanding and cooperation. If you need any further assistance with the import process issue you reported in this ticket, please feel free to let me know. I’ll be happy to help!

Best regards,
Prosenjit