Critical error on search
-
When someone stands in ‘WooCommerce -> Orders’ view;
Where they have selected one or several orders, meaning they have marked the checkbox in the order list. If they then do a search, they’ll get a critical error (who also is logged in fatal-errors logs).
CRITICAL Uncaught Error: Call to a member function get_id() on null in /www/site.tld/wp-content/plugins/svea-checkout-for-woocommerce/inc/Scripts.php:36 CONTEXT: {“error”:{“type”:1,”file”:”\/www\/site.tld\/wp-content\/plugins\/svea-checkout-for-woocommerce\/inc\/Scripts.php”,”line”:36},”backtrace”:[“”,”#0 \/www\/site.tld\/wp-includes\/class-wp-hook.php(324): Svea_Checkout_For_Woocommerce\Scripts->enqueue_admin_scripts()”,”#1 \/www\/site.tld\/wp-includes\/class-wp-hook.php(348): WP_Hook->apply_filters()”,”#2 \/www\/site.tld\/wp-includes\/plugin.php(517): WP_Hook->do_action()”,”#3 \/www\/site.tld\/wp-admin\/admin-header.php(118): do_action()”,”#4 \/www\/site.tld\/wp-admin\/admin.php(239): require_once(‘…’)”,”#5 {main}”,”thrown”]}
I have verified the same thing happens on other sites using Svea Checkout, and not for those using other payment providers.
It also have been a issue for some time, using various versions of both Svea Checkout and WooCommerce (now running latest), so it’s not version related. It took some time to figure out what caused it, since it just happened now and then…
- The topic ‘Critical error on search’ is closed to new replies.