跳转至内容 跳转至侧边栏
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 years, 1 months前 更新。

协助者:: Kor.

作者 帖子
27 5 月, 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 5 月, 2024 于 2:01 下午

主题 “[關閉] Fatal error: Uncaught Error: array_filter(): Argument #1 ($array) must be of type array, string give…” 已关闭,不接受新回复。