Call to undefined function wc_add_notice()
-
Yesterday we updated to Version 9.0.8 and we had several orders after that, but one of them triggered a admin alert. I do have a successful order at the time the alert went out using “via PayPal Checkout”
Error DetailsAn error of type E_ERROR was caused in line 1300 of the file [removed]/wp-content/plugins/woo-paypal-gateway/ppcp/includes/class-ppcp-paypal-checkout-for-woocommerce-request.php. Error message: Uncaught Error: Call to undefined function wc_add_notice() in [removed]/wp-content/plugins/woo-paypal-gateway/ppcp/includes/class-ppcp-paypal-checkout-for-woocommerce-request.php:1300
Stack trace: 0 [removed]/wp-content/plugins/woo-paypal-gateway/ppcp/public/class-ppcp-paypal-checkout-for-woocommerce-button-manager.php(1028): PPCP_Paypal_Checkout_For_Woocommerce_Request->ppcp_capture_authorized_payment() 1 [removed]/wp-includes/class-wp-hook.php(326): PPCP_Paypal_Checkout_For_Woocommerce_Button_Manager->ppcp_capture_payment() 2 [removed]/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters() 3 [removed]/wp-includes/plugin.php(517): WP_Hook->do_action() 4 [removed]/wp-content/plugins/woocommerce/includes/class-wc-order.php(411): do_action() 5 [removed]/wp-content/plugins/woocommerce/includes/class-wc-order.php(253): WC_Order->status_transition() 6 [removed]/wp-content/plugins/woocommerce/includes/admin/meta-boxes/class-wc-meta-box-order-data.php(768): WC_Order->save() 7 [removed]/wp-includes/class-wp-hook.php(326): WC_Meta_Box_Order_Data::save() 8 [removed]/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters() 9 [removed]/wp-includes/plugin.php(517): WP_Hook->do_action() 10 [removed]/wp-content/plugins/woocommerce/src/Internal/Admin/Orders/Edit.php(313): do_action() 11 [removed]/wp-content/plugins/woocommerce/src/Internal/Admin/Orders/Edit.php(153): Automattic\WooCommerce\Internal\Admin\Orders\Edit->handle_order_update() 12 [removed]/wp-content/plugins/woocommerce/src/Internal/Admin/Orders/PageController.php(350): Automattic\WooCommerce\Internal\Admin\Orders\Edit->setup() 13 [removed]/wp-content/plugins/woocommerce/src/Internal/Admin/Orders/PageController.php(366): Automattic\WooCommerce\Internal\Admin\Orders\PageController->prepare_order_edit_form() 14 [removed]/wp-content/plugins/woocommerce/src/Internal/Admin/Orders/PageController.php(167): Automattic\WooCommerce\Internal\Admin\Orders\PageController->setup_action_edit_order() 15 [internal function]: Automattic\WooCommerce\Internal\Admin\Orders\PageController->handle_load_page_action() 16 [removed]/wp-content/plugins/woocommerce/src/Internal/Traits/AccessiblePrivateMethods.php(158): call_user_func_array() 17 [removed]/wp-includes/class-wp-hook.php(324): Automattic\WooCommerce\Internal\Admin\Orders\PageController->__call() 18 [removed]/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters() 19 [removed]/wp-includes/plugin.php(517): WP_Hook->do_action() 20 [removed]/wp-admin/admin.php(237): do_action() 21 {main}thrown
- You must be logged in to reply to this topic.