Background of the issue:
I have the same import with WP All Import in French, German, and English. French is the base import, and it works perfectly. The others are 100% identical, with conditions that select a field with 'de' as language instead of 'fr'. For example, for the title, the field is [FOREACH({translations/item_2})] [IF({locale[.='de']})][IF({field[.='name']})]{content[1]}[ENDIF][ENDIF] [ENDFOREACH] instead of [FOREACH({translations/item_2})] [IF({locale[.='fr']})][IF({field[.='name']})]{content[1]}[ENDIF][ENDIF] [ENDFOREACH]. The French import works, but the other two are terminated with 'Your server terminated the import process. Read more about how to prevent this from happening again.' I also have other imports in all languages, and they all work. I reported this to WP All Import, and they told me to contact you based on the error log I sent them.
Symptoms:
The import process for German and English terminates with 'Your server terminated the import process.' The error log shows a fatal error caused by the 'sitepress-multilingual-cms' (WPML) plugin: PHP Fatal error: Uncaught TypeError: array_filter(): Argument #1 ($array) must be of type array, bool given in /home/clients/2ae4fae3a4ccb477a1ff5428c494f624/sites/stage.nord-vaudois.ch/wp-content/plugins/sitepress-multilingual-cms/classes/translation-jobs/class-wpml-element-translation-package.php:319.
Questions:
Can you help me resolve the fatal error caused by the WPML plugin during the import process for German and English?
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.