get_formatted_variation_attributes() function error when adding products [fixed]
-
Hi there,
We just upgraded to WooCommerce 2.5 and we got an error when adding products to a new order in the admin part.
<b>Fatal error</b>: Call to a member function get_attributes() on a non-object in <b>/path/website/wp-content/plugins/woocommerce/includes/class-wc-product-variation.php</b> on line <b>664
I fixed the problem by changing the code on line 664 from:
$attributes = $this->parent->get_attributes();
into:
$attributes = $this->get_attributes();
I am not sure what caused the problem sinds some products could be found, but some couldn’t. So I think it has something to do with the way products are set up. Let me know if you need more information.
- The topic ‘get_formatted_variation_attributes() function error when adding products [fixed]’ is closed to new replies.