דלג על ניווט
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, יש ל 1קוֹל.

עודכן לאחרונה על ידי Jim Servaas לפני שנה 1.

בסיוע: Shekhar Bhandari.

מחבר פוסטים
מאי 23, 2024בְּ- 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()?

הנושא '[סגור] Fatal error: Uncaught Error: array_filter(): Argument #1 ($array) must be of type array, string give… ' סגור לתשובות חדשות.