סקירת התקלה
בגרסה 4.7.0 של WPML Multilingual & Multicurrency for WooCommerce ייתכן שתקבל שגיאה זו אם תבקר בעמוד מוצר או בעמוד שמכיל בורר מטבעות.
PHP Fatal error: Uncaught LogicException: A function must be an instance of Twig_FunctionInterface or Twig_SimpleFunction. in .../public_html/wp-content/plugins/sitepress-multilingual-cms/lib/twig/src/Environment.php:1119 Stack trace: #0 .../public_html/wp-content/plugins/woocommerce-multilingual/inc/template-classes/class-wcml-templates-factory.php(80): WPMLCoreTwigEnvironment->addFunction(Object(__PHP_Incomplete_Class)) #1 .../public_html/wp-content/plugins/woocommerce-multilingual/inc/template-classes/class-wcml-templates-factory.php(24): WCML_Templates_Factory->maybe_init_twig() #2 .../public_html/wp-content/plugins/woocommerce-multilingual/inc/currencies/currency-switcher/class-wcml-currency-switcher.php(143): WCML_Templates_Factory->get_view() #3 .../public_html/wp-content/plugins/woocommerce-multilingual/inc/currencies/currency in /home/326328.cloudwaysapps.com/mufdqasvkk/public_html/wp-content/plugins/sitepress-multilingual-cms/lib/twig/src/Environment.php on line 1119 [21-Oct-2019 06:34:56 UTC] PHP Fatal error: Uncaught LogicException: A function must be an instance of Twig_FunctionInterface or Twig_SimpleFunction. in .../public_html/wp-content/plugins/sitepress-multilingual-cms/lib/twig/src/Environment.php:1119
בעיה זו נגרמת עקב התמיכה בתבניות TWIG שאנו עומדים להוציא משימוש והיא תתוקן בקרוב על ידי המפתחים שלנו
פתרון עוקף
בעיה זו תוקנה. עדכון לגרסה העדכנית ביותר פותר זאת באתר שלך, לכן אתה זקוק לפתרון עוקף זה רק אם עדיין אינך יכול לעדכן.
כדי לתקן בעיה זו, פשוט עבור אל הכרטיסייה WooCommerceWCMLריבוי מטבעות באזור הניהול. האפשרות השגויה במסד הנתונים מנוקה כאן, ולא תיתקל יותר בשגיאה קריטית בעמודי מוצר.