Support » Plugin: Barion Payment Gateway for WooCommerce » Deprecated error at checkout

  • At the checkout I got this error message. The page I am working on is still in early phase so it might be my fault.

    The error is:
    Deprecated: WC_Abstract_Legacy_Order::get_product_from_item is deprecated since version 4.4.0! Use $item->get_product() instead. in /var/www/Sajthaz/wp-includes/functions.php on line 4773

    WordPress 5.5.1
    Woocommerce 4.5.2
    And Barion integration 3.3.0

    Any help or clue where to go with this is appreciated.

Viewing 1 replies (of 1 total)
  • andreianus

    (@andreianus)

    Kedves Péter!

    Ugyanezt a hibát tapasztalom:
    WC_Abstract_Legacy_Order::get_product_from_item is deprecated since version 4.4.0! Use $item->get_product() instead.

    Átpörgettem a keresést az összes fájlon, és csak a Barion bővítményben találtam meg a kifogásolt részt:
    \wp-content\plugins\pay-via-barion-for-woocommerce\includes\class-wc-gateway-barion-request.php

    110 $product = $order->get_product_from_item($item);

    Nem lehet, hogy ez az oka?

Viewing 1 replies (of 1 total)
  • You must be logged in to reply to this topic.