• Hello,

    I just receive a message from WordPress about an E_ERROR type, on line 776 on this following file, could you please help me?

    /wp-content/plugins/unit-price-for-woocommerce/unit-price-for-woocommerce.php. Message d’erreur?: Uncaught Error: Call to undefined method Automattic\WooCommerce\Admin\Overrides\OrderRefund::is_type() in /wp-content/plugins/unit-price-for-woocommerce/unit-price-for-woocommerce.php:776
    Stack trace:
    #0 /wp-includes/class-wp-hook.php(326): WC_UPW->wc_add_value_on_order_item_view()
    #1 /wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters()
    #2 /wp-includes/plugin.php(517): WP_Hook->do_action()
    #3 /wp-content/plugins/woocommerce/includes/admin/meta-boxes/views/html-order-refund.php(50): do_action()
    #4 /wp-content/plugins/woocommerce/includes/admin/meta-boxes/views/html-order-items.php(103): include(‘/homepages/37/d…’)
    #5 /wp-content/plugins/woocommerce/includes/admin/meta-boxes/class-wc-meta-box-order-items.php(40): include(‘/homepages/37/d…’)
    #6 /wp-admin/includes/template.php(1456): WC_Meta_Box_Order_Items::output()
    #7 /wp-admin/edit-form-advanced.php(723): do_meta_boxes()
    #8 /wp-admin/post.php(206): require(‘/homepages/37/d…’)
    #9 {main}
    ? thrown

    Thanks a lot,

    Best regards

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Condless

    (@condless)

    Hi,
    Please go the plugin’s main file and replace this line (776):
    if ( $item->is_type( 'line_item' ) && apply_filters( 'upw_admin_order_unit_headers_enbaled', true ) && ! wp_doing_ajax() ) {
    with this:
    if ( $product && $item->is_type( 'line_item' ) && apply_filters( 'upw_admin_order_unit_headers_enbaled', true ) && ! wp_doing_ajax() ) {

    Thanks for the quick reply – will make that amendment and see how it goes.

    All the best,

    Peter

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