Sauter la navigation

Marqué : 

Ce sujet contient 0 réponse, a 1 voix.

Dernière mise à jour par lukasS-37 Il y a 4 mois et 3 semaines.

Assisté par: Prosenjit Barman.

Auteur Articles
juillet 1, 2024 à 7:45 am #15866187

lukasS-37

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?