Fatal Error “Call to a member function get_total() on boolean”
-
Getting this error with v1.0.4 using WC 3
PHP Fatal error: Uncaught Error: Call to a member function get_total() on boolean in /.../plugins/adroll-for-woocommerce-stores-dev/dynamic_smart_pixel.php:18
The problem is on the previous line where it checks for the order
<?php if (isset($order)): ?>
as the conditional will evaluate to true for anything other thannull
.$order = wc_get_order($order_id)
is likely evaluating tofalse
which is why this is failing.
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Fatal Error “Call to a member function get_total() on boolean”’ is closed to new replies.