This thread is resolved. Here is a description of the problem and solution.
Problem:
You are encountering a persistent issue with an import script that fails every time it runs, throwing a Fatal error: Uncaught TypeError: array_filter(): Argument #1 ($array) must be of type array, false given. This occurs due to the script receiving a false value from
get_post_meta
when an invalid post_id is used.
Solution:
We recommend trying the following steps to potentially resolve the issue:
1. Ensure you take a backup of your site's database.
2. Navigate to WPML -> Support -> Troubleshooting.
3. On the troubleshooting screen, press 'Remove ghost entries from the translation tables'.
*** Please backup your database before using this.***
If this solution does not resolve your issue or seems irrelevant due to being outdated or not applicable to your case, 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.
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 4 replies, has 2 voices.
Last updated by 9 months, 2 weeks ago.
Assisted by: Itamar.