Error with flexible Subscriptions
-
If I complete an order, I get an uncaught error.
Was passiert – in Kurzform
Zwei Plugins („WooCommerce POS“ und „Flexible Subscriptions“ von WP Desk) streiten sich um denselben Filterwoocommerce_valid_order_statuses_for_payment: Filter-AufrufErwartete ParameterTatsächlich übergebenWooCommerce POS –Orders::valid_order_statuses_for_payment()$statuses, $order(2 Parameter)–Flexible Subscriptions ruftapply_filters()aufnur$statuses(1 Parameter)Weil WooCommerce POS zwei Argumente erzwingt, kracht es mit „Too few arguments…“.
Flexible Subscriptions Version 1.6.1
WooCommerce Version 9.9.5
WooCommerce POS Version 1.7.11
{“code”:”qm_fatal”,”message”:”Uncaught Error: Too few arguments to function WCPOS\WooCommercePOS\Orders::valid_order_statuses_for_payment(), 1 passed in /data/sites/web/b42okhmyrdbxio/www/wp-includes/class-wp-hook.php on line 324 and exactly 2 expected in /data/sites/web/b42okhmyrdbxio/www/wp-content/plugins/woocommerce-pos/includes/Orders.php on line 103″,”data”:{“message”:”Uncaught Error: Too few arguments to function WCPOS\WooCommercePOS\Orders::valid_order_statuses_for_payment(), 1 passed in /data/sites/web/b42okhmyrdbxio/www/wp-includes/class-wp-hook.php on line 324 and exactly 2 expected”,”file”:”/data/sites/web/b42okhmyrdbxio/www/wp-content/plugins/woocommerce-pos/includes/Orders.php”,”line”:103,”trace”:[{“file”:”/data/sites/web/b42okhmyrdbxio/www/wp-includes/class-wp-hook.php”,”line”:324,”function”:”valid_order_statuses_for_payment”,”class”:”WCPOS\WooCommercePOS\Orders”,”type”:”->”,”args”:[[“pending”,”on-hold”,”failed”]]},{“file”:”/data/sites/web/b42okhmyrdbxio/www/wp-includes/plugin.php”,”line”:205,”function”:”apply_filters”,”class”:”WP_Hook”,”type”:”->”,”args”:[[“pending”,”on-hold”,”failed”],[[“pending”,”on-hold”,”failed”]]]},{“file”:”/data/sites/web/b42okhmyrdbxio/www/wp-content/plugins/flexible-subscriptions/src/HookProvider/OrderStatusListener.php”,”line”:204,”function”:”apply_filters”,”args”:[“woocommerce_valid_order_statuses_for_payment”,[“pending”,”on-hold”,”failed”]]},{“file”:”/data/sites/web/b42okhmyrdbxio/www/wp-content/plugins/flexible-subscriptions/src/HookProvider/OrderStatusListener.php”,”line”:141,”function”:”is_payment_completed”,”class”:”WPDesk\FlexibleSubscriptions\HookProvider\OrderStatusListener”,”type”:”->”,”args”:[“processing”,”completed”]},{“file”:”/data/sites/web/b42okhmyrdbxio/www/wp-content/plugins/flexible-subscriptions/src/HookProvider/OrderStatusListener.php”,”line”:44,”function”:”subscription_parent_status_changed”,”class”:”WPDesk\FlexibleSubscriptions\HookProvider\OrderStatusListener”,”type”:”->”,”args”:[{“refunds”:null,”customer_id”:null},”processing”,”completed”]},{“file”:”/data/sites/web/b42okhmyrdbxio/www/wp-includes/class-wp-hook.php”,”line”:324,”function”:”on_status_changed”,”class”:”WPDesk\FlexibleSubscriptions\HookProvider\OrderStatusListener”,”type”:”->”,”args”:[1425,”processing”,”completed”,{“refunds”:null,”customer_id”:null}]},{“file”:”/data/sites/web/b42okhmyrdbxio/www/wp-includes/class-wp-hook.php”,”line”:348,”function”:”apply_filters”,”class”:”WP_Hook”,”type”:”->”,”args”:[null,[1425,”processing”,”completed”,{“refunds”:null,”customer_id”:null}]]},{“file”:”/data/sites/web/b42okhmyrdbxio/www/wp-includes/plugin.php”,”line”:517,”function”:”do_action”,”class”:”WP_Hook”,”type”:”->”,”args”:[[1425,”processing”,”completed”,{“refunds”:null,”customer_id”:null}]]},{“file”:”/data/sites/web/b42okhmyrdbxio/www/wp-content/plugins/woocommerce/includes/class-wc-order.php”,”line”:450,”function”:”do_action”,”args”:[“woocommerce_order_status_changed”,1425,”processing”,”completed”,{“refunds”:null,”customer_id”:null}]},{“file”:”/data/sites/web/b42okhmyrdbxio/www/wp-content/plugins/woocommerce/includes/class-wc-order.php”,”line”:274,”function”:”status_transition”,”class”:”WC_Order”,”type”:”->”,”args”:[]},{“file”:”/data/sites/web/b42okhmyrdbxio/www/wp-content/plugins/woocommerce/includes/class-wc-order.php”,”line”:394,”function”:”save”,”class”:”WC_Order”,”type”:”->”,”args”:[]},{“file”:”/data/sites/web/b42okhmyrdbxio/www/wp-content/plugins/woocommerce/includes/class-wc-ajax.php”,”line”:606,”function”:”update_status”,”class”:”WC_Order”,”type”:”->”,”args”:[“completed”,””,true]},{“file”:”/data/sites/web/b42okhmyrdbxio/www/wp-includes/class-wp-hook.php”,”line”:324,”function”:”mark_order_status”,”class”:”WC_AJAX”,”type”:”::”,”args”:[“”]},{“file”:”/data/sites/web/b42okhmyrdbxio/www/wp-includes/class-wp-hook.php”,”line”:348,”function”:”apply_filters”,”class”:”WP_Hook”,”type”:”->”,”args”:[“”,[“”]]},{“file”:”/data/sites/web/b42okhmyrdbxio/www/wp-includes/plugin.php”,”line”:517,”function”:”do_action”,”class”:”WP_Hook”,”type”:”->”,”args”:[[“”]]},{“file”:”/data/sites/web/b42okhmyrdbxio/www/wp-admin/admin-ajax.php”,”line”:192,”function”:”do_action”,”args”:[“wp_ajax_woocommerce_mark_order_status”]}]}}The page I need help with: [log in to see the link]
The topic ‘Error with flexible Subscriptions’ is closed to new replies.