Pular a navegação
Sun Mon Tue Wed Thu Fri Sat
- 10:00 – 17:00 10:00 – 17:00 10:00 – 17:00 10:00 – 17:00 10:00 – 17:00 -
- 18:00 – 19:00 18:00 – 19:00 18:00 – 19:00 18:00 – 19:00 18:00 – 19:00 -

Fuso horário do apoiador: Asia/Kathmandu (GMT+05:45)

Este tópico contém 0, tem 1 voz.

Última atualização: Jim Servaas 1 ano atrás.

Assistido por: Shekhar Bhandari.

Autor Posts
maio 23, 2024 em 7:37 am #15660734

Jim Servaas

Background of the issue:
The client encountered an issue while working with the WPML plugin, specifically when trying to handle custom fields values using the get_post_meta function.

After I save a product in a translation I'm getting this fatal error.

Symptoms:
Fatal error: Uncaught Error: array_filter(): Argument #1 ($array) must be of type array, string given in /wp-content/plugins/sitepress-multilingual-cms/classes/translation-jobs/class-wpml-element-translation-package.php on line 319

Questions:
What could be causing the array_filter() function to receive a string instead of an array?
How can I correct the error on line 319 to ensure the correct data type is passed to array_filter()?

O tópico '[Fechado] Fatal error: Uncaught Error: array_filter(): Argument #1 ($array) must be of type array, string give…' está fechado para novas respostas.