Deprecated WooCommerce function
-
Hi there,
There is a function in your plugin which uses the deprecated woocommerce function
get_product_from_item
Specifically, line 583 and 677 in /includes/class-wc-jilt-order.php
The deprecated function is creating error messages in our log, which are so large they cause a buffer overflow and create a 502 error. How do I know? I just spent the last 5 hours looking for the problem ??
When other integrations try to use the WooCommerce order API, the Jilt plugin gets called and triggers this error and returns a 502.
Could you please update the plug-in to remove this dependancy?
I would greatly appreciate it.If you have any questions about this issue, please let me know.
2020/09/09 05:48:21 [error] 4870#4870: *2572 FastCGI sent in stderr: "PHP message: The WC_Abstract_Legacy_Order::get_product_from_item function is deprecated since version 4.4.0. Replace with $item->get_product().PHP message: The WC_Abstract_Legacy_Order::get_product_from_item function is deprecated since version 4.4.0. Replace with $item->get_product().PHP message: The WC_Abstract_Legacy_Order::get_product_from_item function is deprecated since version 4.4.0. Replace with $item->get_product().PHP message: The WC_Abstract_Legacy_Order::get_product_from_item function is deprecated since version 4.4.0. Replace with $item->get_product().PHP message: The WC_Abstract_Legacy_Order::get_product_from_item function is deprecated since version 4.4.0. Replace with $item->get_product().PHP message: The WC_Abstract_Legacy_Order::get_product_from_item function is deprecated since version 4.4.0. Replace with $item->get_product().
- The topic ‘Deprecated WooCommerce function’ is closed to new replies.