Background of the issue:
I was trying to navigate from a subscription to a related order in WooCommerce Subscriptions, but nothing was displayed. However, I received an email indicating a critical error occurred.
Symptoms:
A critical error occurred in the WPML plugin file 'class-wpml-element-translation.php' on line 282, described as an 'Uncaught TypeError: Illegal offset type in isset or empty'. The error was triggered during a function call that attempted to handle a WooCommerce Subscription object.
Full error description:
Error Details
=============
An error of type E_ERROR was caused in line 282 of the file /data01/virt85027/domeenid/www.anix-shop.com/htdocs/wp-content/plugins/sitepress-multilingual-cms/classes/core-abstract-classes/class-wpml-element-translation.php. Error message: Uncaught TypeError: Illegal offset type in isset or empty in /data01/virt85027/domeenid/www.anix-shop.com/htdocs/wp-content/plugins/sitepress-multilingual-cms/classes/core-abstract-classes/class-wpml-element-translation.php:282
Stack trace:
#0 /data01/virt85027/domeenid/www.anix-shop.com/htdocs/wp-content/plugins/sitepress-multilingual-cms/classes/core-abstract-classes/class-wpml-element-translation.php(113): WPML_Element_Translation->maybe_populate_cache(Object(WC_Subscription))
#1 /data01/virt85027/domeenid/www.anix-shop.com/htdocs/wp-content/plugins/sitepress-multilingual-cms/classes/url-handling/wpml-url-filters.class.php(144): WPML_Element_Translation->get_element_lang_code(Object(WC_Subscription))
#2 /data01/virt85027/domeenid/www.anix-shop.com/htdocs/wp-includes/class-wp-hook.php(324): WPML_URL_Filters->get_edit_post_link('קישור נסתר...', Object(WC_Subscription), '')
#3 /data01/virt85027/domeenid/www.anix-shop.com/htdocs/wp-includes/plugin.php(205): WP_Hook->apply_filters('קישור נסתר...', Array)
#4 /data01/virt85027/domeenid/www.anix-shop.com/htdocs/wp-content/plugins/woocommerce-subscriptions/vendor/woocommerce/subscriptions-core/includes/wcs-helper-functions.php(71): apply_filters('get_edit_post_l...', 'קישור נסתר...', Object(WC_Subscription), '')
#5 /data01/virt85027/domeenid/www.anix-shop.com/htdocs/wp-content/plugins/woocommerce-subscriptions/vendor/woocommerce/subscriptions-core/includes/admin/class-wc-subscriptions-admin.php(1597): wcs_get_edit_post_link(Object(WC_Subscription))
#6 /data01/virt85027/domeenid/www.anix-shop.com/htdocs/wp-includes/class-wp-hook.php(324): WC_Subscriptions_Admin::display_renewal_filter_notice('')
#7 /data01/virt85027/domeenid/www.anix-shop.com/htdocs/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters(NULL, Array)
#8 /data01/virt85027/domeenid/www.anix-shop.com/htdocs/wp-includes/plugin.php(517): WP_Hook->do_action(Array)
#9 /data01/virt85027/domeenid/www.anix-shop.com/htdocs/wp-admin/admin-header.php(303): do_action('admin_notices')
#10 /data01/virt85027/domeenid/www.anix-shop.com/htdocs/wp-admin/edit.php(411): require_once('/data01/virt850...')
#11 {main}
thrown
Questions:
What causes the 'Illegal offset type in isset or empty' error in the WPML plugin when handling WooCommerce Subscriptions?
How can I resolve this error to ensure smooth navigation from subscription to related order?
The topic ‘[סגור] Critical error with Woo Subscriptions’ is closed to new replies.
ניהול הסכמה לקובצי 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 אלה עוקבים אחר הגלישה שלך כדי לספק מודעות רלוונטיות עבורך.