Critical error
-
Hi, I just patched an item in your plugin that was causing a critical error.
I use the woocommerce pre order plugin: An email is sent when with woocommerce-pre-order, the restocking date of a product changes => In your plugin, there is a function that handles the email in the /shop file. eziclean.com/wp-content/plugins/weglot/src/third/woocommerce/class-wc-mail-weglot.php LINE 101 ($this->language_services->get_language_from_external( $woocommerce_order_language )->getInternalCode();) => sometimes getInternalCode() is called on an element that has a ‘null’ value, so there is a critical error and it bugs my script…
I simply patched by testing if the element value is an object, before calling getInternalCode() on it, and it works fine.
Does this speak to you?Translated with https://www.DeepL.com/Translator (free version)
The page I need help with: [log in to see the link]
- The topic ‘Critical error’ is closed to new replies.