跳转至内容 跳转至侧边栏
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 -

支持人员时区: Asia/Kathmandu (GMT+05:45)

本主题包含 0 則回覆 ,有 1 嗓音 。

最后由 Jim Servaas 1 years, 2 months前 更新。

协助者:: Shekhar Bhandari.

作者 帖子
23 5 月, 2024 于 7:37 上午 #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()?

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