• Hi,

    I’ve just had the following error notification when doing a refund –

    WordPress version 6.5.5
    Active theme: CollierCatchpole (version )
    Current plugin: Unit Price for WooCommerce (version 1.2.1)
    PHP version 8.2.17

    Error Details
    =============
    An error of type E_ERROR was caused in line 776 of the file /home/virtual/vps-dc85cb/6/626305443b/public_html/wp-content/plugins/unit-price-for-woocommerce/unit-price-for-woocommerce.php. Error message: Uncaught Error: Call to undefined method Automattic\WooCommerce\Admin\Overrides\OrderRefund::is_type() in /home/virtual/vps-dc85cb/6/626305443b/public_html/wp-content/plugins/unit-price-for-woocommerce/unit-price-for-woocommerce.php:776
    Stack trace:
    #0 /home/virtual/vps-dc85cb/6/626305443b/public_html/wp-includes/class-wp-hook.php(326): WC_UPW->wc_add_value_on_order_item_view(NULL, Object(Automattic\WooCommerce\Admin\Overrides\OrderRefund))
    #1 /home/virtual/vps-dc85cb/6/626305443b/public_html/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters('', Array)
    #2 /home/virtual/vps-dc85cb/6/626305443b/public_html/wp-includes/plugin.php(517): WP_Hook->do_action(Array)
    #3 /home/virtual/vps-dc85cb/6/626305443b/public_html/wp-content/plugins/woocommerce/includes/admin/meta-boxes/views/html-order-refund.php(50): do_action('woocommerce_adm...', NULL, Object(Automattic\WooCommerce\Admin\Overrides\OrderRefund), 987677860)
    #4 /home/virtual/vps-dc85cb/6/626305443b/public_html/wp-content/plugins/woocommerce/includes/admin/meta-boxes/views/html-order-items.php(103): include('/home/virtual/v...')
    #5 /home/virtual/vps-dc85cb/6/626305443b/public_html/wp-content/plugins/woocommerce/includes/admin/meta-boxes/class-wc-meta-box-order-items.php(40): include('/home/virtual/v...')
    #6 /home/virtual/vps-dc85cb/6/626305443b/public_html/wp-admin/includes/template.php(1456): WC_Meta_Box_Order_Items::output(NULL, Array)
    #7 /home/virtual/vps-dc85cb/6/626305443b/public_html/wp-content/plugins/woocommerce/src/Internal/Admin/Orders/Edit.php(501): do_meta_boxes(Object(WP_Screen), 'normal', Object(Automattic\WooCommerce\Admin\Overrides\Order))
    #8 /home/virtual/vps-dc85cb/6/626305443b/public_html/wp-content/plugins/woocommerce/src/Internal/Admin/Orders/Edit.php(405): Automattic\WooCommerce\Internal\Admin\Orders\Edit->render_meta_boxes()
    #9 /home/virtual/vps-dc85cb/6/626305443b/public_html/wp-content/plugins/woocommerce/src/Internal/Admin/Orders/PageController.php(293): Automattic\WooCommerce\Internal\Admin\Orders\Edit->display()
    #10 /home/virtual/vps-dc85cb/6/626305443b/public_html/wp-includes/class-wp-hook.php(324): Automattic\WooCommerce\Internal\Admin\Orders\PageController->output('')
    #11 /home/virtual/vps-dc85cb/6/626305443b/public_html/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters(NULL, Array)
    #12 /home/virtual/vps-dc85cb/6/626305443b/public_html/wp-includes/plugin.php(517): WP_Hook->do_action(Array)
    #13 /home/virtual/vps-dc85cb/6/626305443b/public_html/wp-admin/admin.php(259): do_action('woocommerce_pag...')
    #14 {main}
    ? thrown

    What could have caused this and how can I resolve it?

    All the best,

    Peter

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