Background of the issue:
I am trying to fix a fatal error in the WPML plugin. The error occurs in the file D:wamp64wwwpracticebuzzmtcthemewp-contentpluginssitepress-multilingual-cmsclassescore-abstract-classesclass-wpml-element-translation.php on line 286. I expected to see a fix by adding this code in your next release: private function maybe_populate_cache( in sitepress-multilingual-cmsclassescore-abstract-classesclass-wpml-element-translation.php to handle the error gracefully if ( ! $element_id || ! is_scalar( $element_id ) ) { return false; } The bug was there because element_id is an array. Invalid $element_id: Array ( [0] => 60715 [1] => 60720 [2] => 60804 [3] => 60811 [4] => 60828 [5] => 60834 [6] => 60850 [7] => 60855 [8] => 60862 [9] => 60866 ). Link to a page where the issue can be seen: קישור נסתר
Symptoms:
PHP Fatal error: Uncaught TypeError: Illegal offset type in isset or empty in D:wamp64wwwpracticebuzzmtcthemewp-contentpluginssitepress-multilingual-cmsclassescore-abstract-classesclass-wpml-element-translation.php:282
Questions:
How can I fix the fatal error in the WPML plugin?
Is there a workaround for the issue with element_id being an array?
הנושא '[סגור] fatal error in the plugin ' סגור לתשובות חדשות.
ניהול הסכמה לקובצי Cookie
אנו משתמשים בקובצי Cookie כדי לייעל את האתר והשירותים שלנו. הסכמתך מאפשרת לנו לעבד נתונים כגון התנהגות גלישה. אי הסכמה עשויה להשפיע על תכונות מסוימות.
פונקציונלי
תמיד פעיל
נדרש כדי שהאתר שלנו יפעל ויתקשר בצורה נכונה.
העדפות
The technical storage or access is necessary for the legitimate purpose of storing preferences that are not requested by the subscriber or user.
סטטיסטיקה
אנו משתמשים בהם כדי לנתח את הנתונים הסטטיסטיים של האתר שלנו. המידע שנאסף הוא אנונימי לחלוטין. האחסון או הגישה הטכנית שמשמשים באופן בלעדי לצרכים סטטיסטיים אנונימיים. ללא זימון, הסכמה וולונטרית מצד ספק שירותי האינטרנט שלך, או רשומות נוספות מצד שלישי, המידע המאוחסן או המוחזר למטרה זו בלבד לא ניתן בדרך כלל לשימוש לצורך זיהויך.
שיווק
קובצי Cookie אלה עוקבים אחר הגלישה שלך כדי לספק מודעות רלוונטיות עבורך.