PHP Fatal error get_results() on null
-
Hi,
After some updates, I’m not able to place an order. I get a Fatal error: PHP Fatal error: Uncaught Error: Call to a member function get_results() on null in woo-order-splitter/inc/functions.php:6400
Wp version: 6.5.2 | Woocommerce: 8.8.0 | woo-order-splitter: 5.0.7
This is the stack trace
PHP Fatal error: Uncaught Error: Call to a member function get_results() on null in /CODE/dev.my-website.com/live/releases/release-01/web/app/plugins/woo-order-splitter/inc/functions.php:6400\nStack trace:\n#0 /CODE/dev.my-website.com/live/releases/release-01/web/app/plugins/woo-order-splitter/inc/functions.php(7506): wc_os_crons_wos_calculate_totals(67805)\n#1 /CODE/dev.my-website.com/live/releases/release-01/web/wp/wp-includes/class-wp-hook.php(326): order_details_page_saved(67805)\n#2 /CODE/dev.my-website.com/live/releases/release-01/web/wp/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters(NULL, Array)\n#3 /CODE/dev.my-website.com/live/releases/release-01/web/wp/wp-includes/plugin.php(517): WP_Hook->do_action(Array)\n#4 /CODE/dev.my-website.com/live/releases/release-01/web/wp/wp-includes/post.php(4828): do_action(‘save_post’, 67805, Object(WP_Post), false)\n#5 /CODE/dev.my-website.com/live/releases/release-01/web/app/plugins/woocommerce/includes/data-stores/abstract-wc-order-data-store-cpt.php(98): wp_insert_post(Array, true)\n#6 /CODE/dev.my-website.com/live/releases/release-01/web/app/plugins/woocommerce/includes/data-stores/class-wc-order-data-store-cpt.php(102): Abstract_WC_Order_Data_Store_CPT->create(Object(WC_Order))\n#7 /CODE/dev.my-website.com/live/releases/release-01/web/app/plugins/woocommerce/includes/class-wc-data-store.php(186): WC_Order_Data_Store_CPT->create(Object(WC_Order))\n#8 /CODE/dev.my-website.com/live/releases/release-01/web/app/plugins/woocommerce/includes/abstracts/abstract-wc-order.php(214): WC_Data_Store->create(Object(WC_Order))\n#9 /CODE/dev.my-website.com/live/releases/release-01/web/app/plugins/woocommerce/includes/class-wc-order.php(252): WC_Abstract_Order->save()\n#10 /CODE/dev.my-website.com/live/releases/release-01/web/app/plugins/woocommerce/includes/class-wc-checkout.php(452): WC_Order->save()\n#11 /CODE/dev.my-website.com/live/releases/release-01/web/app/plugins/woocommerce/includes/class-wc-checkout.php(1268): WC_Checkout->create_order(Array)\n#12 /CODE/dev.my-website.com/live/releases/release-01/web/app/plugins/woocommerce/includes/class-wc-ajax.php(520): WC_Checkout->process_checkout()\n#13 /CODE/dev.my-website.com/live/releases/release-01/web/wp/wp-includes/class-wp-hook.php(324): WC_AJAX::checkout(”)\n#14 /CODE/dev.my-website.com/live/releases/release-01/web/wp/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters(”, Array)\n#15 /CODE/dev.my-website.com/live/releases/release-01/web/wp/wp-includes/plugin.php(517): WP_Hook->do_action(Array)\n#16 /CODE/dev.my-website.com/live/releases/release-01/web/app/plugins/woocommerce/includes/class-wc-ajax.php(96): do_action(‘wc_ajax_checkou…’)\n#17 /CODE/dev.my-website.com/live/releases/release-01/web/wp/wp-includes/class-wp-hook.php(324): WC_AJAX::do_wc_ajax(”)\n#18 /CODE/dev.my-website.com/live/releases/release-01/web/wp/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters(NULL, Array)\n#19 /CODE/dev.my-website.com/live/releases/release-01/web/wp/wp-includes/plugin.php(517): WP_Hook->do_action(Array)\n#20 /CODE/dev.my-website.com/live/releases/release-01/web/wp/wp-includes/template-loader.php(13): do_action(‘template_redire…’)\n#21 /CODE/dev.my-website.com/live/releases/release-01/web/wp/wp-blog-header.php(19): require_once(‘/CODE/bolsazone…’)\n#22 /CODE/dev.my-website.com/live/releases/release-01/web/index.php(4): require(‘/CODE/bolsazone…’)\n#23 {main}\n thrown in /CODE/dev.my-website.com/live/releases/release-01/web/app/plugins/woo-order-splitter/inc/functions.php on line 6400, referer: https://dev.my-website.com/checkout/
Seems that is missing a <span style=”text-decoration: underline;”>global $wpdb;</span>
Any ideas?
- The topic ‘PHP Fatal error get_results() on null’ is closed to new replies.