Title: Deprecated Function in Plugin &#8211; Update Needed
Last modified: September 1, 2020

---

# Deprecated Function in Plugin – Update Needed

 *  Resolved [bcolflesh](https://wordpress.org/support/users/bcolflesh/)
 * (@bcolflesh)
 * [5 years, 8 months ago](https://wordpress.org/support/topic/deprecated-function-in-plugin-update-needed/)
 * “PHP message: The WC_Abstract_Legacy_Order::get_product_from_item function is
   deprecated since version 4.4.0. Replace with $item->get_product()”
 * \woocommerce-delivery-notes\templates\print-order\print-content.php
 * line 110

Viewing 4 replies - 1 through 4 (of 4 total)

 *  [kenil802](https://wordpress.org/support/users/kenil802/)
 * (@kenil802)
 * [5 years, 8 months ago](https://wordpress.org/support/topic/deprecated-function-in-plugin-update-needed/#post-13350262)
 * Hi [@bcolflesh](https://wordpress.org/support/users/bcolflesh/),
 * Regarding the error, could you please let us know where exactly are you finding
   this message? It would be great if you can share the screenshot of the same and
   the steps to replicate it so that we can assist you in a better way.
 * Regards,
    Kenil Shah
 *  [4boards](https://wordpress.org/support/users/4boards/)
 * (@4boards)
 * [5 years, 8 months ago](https://wordpress.org/support/topic/deprecated-function-in-plugin-update-needed/#post-13381480)
 * Have the same problem since updating to Woocommerce 4.4.1 (live site [https://4boards.co.uk/](https://4boards.co.uk/))
   and Woocommerce 4.5.0 (Staging site [https://staging-laqaxewe.kinsta.cloud/](https://staging-laqaxewe.kinsta.cloud/))
 * The error appears in the Kinsta site Error Log accessible through the host Dashboard.
 * 2020/09/09 10:17:41 [error] 74862#74862: *18242 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()” while reading response
   header from upstream, client: 217.44.21.244, server: staging-laqaxewe.kinsta.
   cloud, request: “GET /wp-admin/admin-ajax.php?print-order=34357&print-order-type
   =delivery-note&action=print_order HTTP/1.0”, upstream: “fastcgi://unix:/var/run/
   php7.4-fpm-laqaxewe.sock:”, host: “staging-laqaxewe.kinsta.cloud”, referrer: “
   [https://staging-laqaxewe.kinsta.cloud/wp-admin/edit.php?post_type=shop_order&#8221](https://staging-laqaxewe.kinsta.cloud/wp-admin/edit.php?post_type=shop_order&#8221);
 * PHP versions – Live 7.3 and Staging 7.4 – WordPress 5.5.1
 * Hope this helps
 * Bob – 4boards.co.uk
 *  [geoj](https://wordpress.org/support/users/georgjoutras/)
 * (@georgjoutras)
 * [5 years, 8 months ago](https://wordpress.org/support/topic/deprecated-function-in-plugin-update-needed/#post-13388043)
 * I have the exact same error caused by your plugin. Please fix asap! Thanks.
 *  [kenil802](https://wordpress.org/support/users/kenil802/)
 * (@kenil802)
 * [5 years, 7 months ago](https://wordpress.org/support/topic/deprecated-function-in-plugin-update-needed/#post-13418502)
 * Hi [@bcolflesh](https://wordpress.org/support/users/bcolflesh/),
 * Sorry for the delay in response.
 * We will release an update of the plugin which will include this fix.
 * Regards,
    Kenil Shah

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Deprecated Function in Plugin – Update Needed’ is closed to new replies.

 * ![](https://ps.w.org/woocommerce-delivery-notes/assets/icon-256x256.jpg?rev=2829362)
 * [Print Invoice & Delivery Notes for WooCommerce](https://wordpress.org/plugins/woocommerce-delivery-notes/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/woocommerce-delivery-notes/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/woocommerce-delivery-notes/)
 * [Active Topics](https://wordpress.org/support/plugin/woocommerce-delivery-notes/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/woocommerce-delivery-notes/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/woocommerce-delivery-notes/reviews/)

 * 4 replies
 * 4 participants
 * Last reply from: [kenil802](https://wordpress.org/support/users/kenil802/)
 * Last activity: [5 years, 7 months ago](https://wordpress.org/support/topic/deprecated-function-in-plugin-update-needed/#post-13418502)
 * Status: resolved