דלג לתוכן דלג לסרגל צד
Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 18:00 9:00 – 18:00 9:00 – 18:00 9:00 – 18:00 9:00 – 18:00 -
- - - - - - -

אזור זמן של התומך: Asia/Karachi (GMT+05:00)

נושא זה מכיל 0 1, יש ל 1קוֹל.

עודכן לאחרונה על ידי ludekC-3 לפני חודש 8, שבוע 3.

בסיוע: Waqas Bin Hasan.

מחבר פוסטים
3 ביולי 2025 ב-9:53 #17196283

ludekC-3

Background of the issue:
I am trying to resolve a recurring error in the WPML plugin. The error occurs because a function is receiving a non-scalar value, causing an issue on line 282 in the file /sitepress-multilingual-cms/classes/core-abstract-classes/class-wpml-element-translation.php. This is the line causing the error: if ( ! $element_id || ! isset( $this->translations[ $element_id ] ) ) {. Link to a page where the issue can be seen: קישור נסתר

Symptoms:
Uncaught TypeError: Illegal offset type in isset or empty on line 282 of the file /public_html/wp-content/plugins/sitepress-multilingual-cms/classes/core-abstract-classes/class-wpml-element-translation.php. The error occurs during the synchronization of product translations.

Questions:
What could be the reason that the function is getting an unexpected value in a variable?
Please improve the condition to be prepared for this possibility and avoid the error.

הנושא '[סגור] Uncaught TypeError: Illegal offset type in isset or empty (class-wpml-element-translation.php:282)' סגור לתגובות חדשות.