Skip Navigation

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

Problem:
hi, i get wordpress error, he is what i get on my email

Détails de l’erreur
======================
Une erreur de type E_ERROR a été causée dans la ligne 319 du fichier /home/clients/8d5a6dc8e643ac4da3be60ede1772f37/sites/seandive.cruises/wp-content/plugins/sitepress-multilingual-cms/classes/translation-jobs/class-wpml-element-translation-package.php. Message d’erreur : Uncaught TypeError: array_filter(): Argument #1 ($array) must be of type array, string given in /home/clients/8d5a6dc8e643ac4da3be60ede1772f37/sites/seandive.cruises/wp-content/plugins/sitepress-multilingual-cms/classes/translation-jobs/class-wpml-element-translation-package.php:319

Solution:
I have just checked now that you're facing the same error as the one explained in this errata page: https://wpml.org/errata/give-donation-fatal-error-when-trying-to-update-or-translate-a-form/

Therefore, may I kindly ask you to try the workaround described there? Just make sure to have a complete backup before doing it.

Relevant Documentation:
https://wpml.org/errata/give-donation-fatal-error-when-trying-to-update-or-translate-a-form/

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.

Tagged: 

This topic contains 3 replies, has 2 voices.

Last updated by Mateus Getulio 1 year, 6 months ago.

Assisted by: Mateus Getulio.

Author Posts
August 15, 2023 at 1:57 pm #14203601

steveD-17

hi, i get wordpress error, he is what i get on my email

Détails de l’erreur
======================
Une erreur de type E_ERROR a été causée dans la ligne 319 du fichier /home/clients/8d5a6dc8e643ac4da3be60ede1772f37/sites/seandive.cruises/wp-content/plugins/sitepress-multilingual-cms/classes/translation-jobs/class-wpml-element-translation-package.php. Message d’erreur : Uncaught TypeError: array_filter(): Argument #1 ($array) must be of type array, string given in /home/clients/8d5a6dc8e643ac4da3be60ede1772f37/sites/seandive.cruises/wp-content/plugins/sitepress-multilingual-cms/classes/translation-jobs/class-wpml-element-translation-package.php:319
Stack trace:
#0 /home/clients/8d5a6dc8e643ac4da3be60ede1772f37/sites/seandive.cruises/wp-content/plugins/sitepress-multilingual-cms/classes/translation-jobs/class-wpml-element-translation-package.php(319): array_filter('')
#1 /home/clients/8d5a6dc8e643ac4da3be60ede1772f37/sites/seandive.cruises/wp-content/plugins/sitepress-multilingual-cms/classes/translation-jobs/class-wpml-element-translation-package.php(92): WPML_Element_Translation_Package->add_custom_field_contents(Array, Object(WP_Post), Array, NULL)
#2 /home/clients/8d5a6dc8e643ac4da3be60ede1772f37/sites/seandive.cruises/wp-content/plugins/sitepress-multilingual-cms/classes/translation-dashboard/EncodedFieldsValidation/Validator.php(130): WPML_Element_Translation_Package->create_translation_package(Object(WP_Post), true)
#3 [internal function]: WPML\TM\TranslationDashboard\EncodedFieldsValidation\Validator->WPML\TM\TranslationDashboard\EncodedFieldsValidation\{closure}(Object(WP_Post), 6)
#4 /home/clients/8d5a6dc8e643ac4da3be60ede1772f37/sites/seandive.cruises/wp-content/plugins/sitepress-multilingual-cms/vendor/wpml/collect/src/Illuminate/Support/Collection.php(603): array_map(Object(Closure), Array, Array)
#5 /home/clients/8d5a6dc8e643ac4da3be60ede1772f37/sites/seandive.cruises/wp-content/plugins/sitepress-multilingual-cms/classes/translation-dashboard/EncodedFieldsValidation/Validator.php(172): WPML\Collect\Support\Collection->map(Object(Closure))
#6 /home/clients/8d5a6dc8e643ac4da3be60ede1772f37/sites/seandive.cruises/wp-content/plugins/sitepress-multilingual-cms/classes/translation-dashboard/EncodedFieldsValidation/Validator.php(66): WPML\TM\TranslationDashboard\EncodedFieldsValidation\Validator->findPostsWithEncodedFields(Array)
#7 /home/clients/8d5a6dc8e643ac4da3be60ede1772f37/sites/seandive.cruises/wp-content/plugins/sitepress-multilingual-cms/inc/translation-management/translation-management.class.php(467): WPML\TM\TranslationDashboard\EncodedFieldsValidation\Validator->validateTMDashboardInput(Array)
#8 /home/clients/8d5a6dc8e643ac4da3be60ede1772f37/sites/seandive.cruises/wp-content/plugins/sitepress-multilingual-cms/inc/translation-management/translation-management.class.php(285): TranslationManagement->process_request(Array)
#9 /home/clients/8d5a6dc8e643ac4da3be60ede1772f37/sites/seandive.cruises/wp-includes/class-wp-hook.php(310): TranslationManagement->wp_loaded('')
#10 /home/clients/8d5a6dc8e643ac4da3be60ede1772f37/sites/seandive.cruises/wp-includes/class-wp-hook.php(334): WP_Hook->apply_filters(NULL, Array)
#11 /home/clients/8d5a6dc8e643ac4da3be60ede1772f37/sites/seandive.cruises/wp-includes/plugin.php(517): WP_Hook->do_action(Array)
#12 /home/clients/8d5a6dc8e643ac4da3be60ede1772f37/sites/seandive.cruises/wp-settings.php(654): do_action('wp_loaded')
#13 /home/clients/8d5a6dc8e643ac4da3be60ede1772f37/sites/seandive.cruises/wp-config.php(101): require_once('/home/clients/8...')
#14 /home/clients/8d5a6dc8e643ac4da3be60ede1772f37/sites/seandive.cruises/wp-load.php(50): require_once('/home/clients/8...')
#15 /home/clients/8d5a6dc8e643ac4da3be60ede1772f37/sites/seandive.cruises/wp-admin/admin.php(34): require_once('/home/clients/8...')
#16 {main}
thrown

August 15, 2023 at 3:19 pm #14204127

Mateus Getulio
Supporter

Languages: English (English ) Portuguese (Brazil) (Português )

Timezone: America/Sao_Paulo (GMT-03:00)

Hello again,

I have just checked now that you're facing the same error as the one explained in this errata page: https://wpml.org/errata/give-donation-fatal-error-when-trying-to-update-or-translate-a-form/

Therefore, may I kindly ask you to try the workaround described there? Just make sure to have a complete backup before doing it.

Please let us know. Thank you.

August 16, 2023 at 3:28 am #14205843

steveD-17

It's not my server i don't have access. i install wpml for a friend. i have translated the website but ignored donation for now. maybe we will don't translate donation page because what you ask us to do is not easy for us.

August 16, 2023 at 4:44 pm #14239999

Mateus Getulio
Supporter

Languages: English (English ) Portuguese (Brazil) (Português )

Timezone: America/Sao_Paulo (GMT-03:00)

Hi there,

Thanks for your reply.

For now this workaround is what we can offer, I'm afraid.

Apart from that, we'll need to wait for the plugins authors implement a definitive fix, that should be included soon in the next Give Donation versions. You can even report this to their support as well, in order to arouse interest in the authors.

Thanks for your understanding in the meantime.

Kind regards,
Mateus.