Перейти к содержанию Перейти к боковой панели
Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 -
- 13:00 – 18:00 13:00 – 18:00 13:00 – 18:00 13:00 – 18:00 13:00 – 18:00 -

Часовой пояс сторонника: Asia/Singapore (GMT+08:00)

Эта тема содержит 0 ответ, имеет 1 голос.

Последнее обновление: Jim Servaas 1 год, 1 месяц назад.

При содействии: Kor.

Автор Посты
27 мая, 2024 в 1:20 пп

Jim Servaas

Background of the issue:
I was trying to save a product in WordPress using the WPML and ACF plugins when I encountered an 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. Despite the error, the product update is completed after refreshing the page.

Questions:
What could be causing the array_filter() function to receive a string instead of an array?
How can I resolve this error to prevent it from occurring again?

27 мая, 2024 в 2:01 пп

Тема '[Закрытые] Fatal error: Uncaught Error: array_filter(): Argument #1 ($array) must be of type array, string give…' закрыта для новых ответов.