Missing Argument 1 for WC_Order::__construct()
-
Warning: Missing argument 1 for WC_Order::__construct(), called in wp-content/themes/replete/config-woocommerce/config.php on line 320 and defined in wp-content/plugins/woocommerce/includes/class-wc-order.php on line 19
I am seeing this error in the header area on a clients site all of a sudden. I have go so far as to rename the config.php file within the theme and still the error appears. I do not have a desired to edit the plugin files.
Line 320 of config.php
$order = new WC_Order();
Line 19 of class-wc-order.php
public function __construct( $order ) {
I assume it may have something to do with $order being used in both places, but not certain. Any help is appreciated.
- The topic ‘Missing Argument 1 for WC_Order::__construct()’ is closed to new replies.