تخطي الملاحة
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 سنة.

يساعده: Shekhar Bhandari.

مؤلف المقالات
مايو 23, 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… ' مغلق أمام الردود الجديدة.