Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PHP Warning when order is processed... #502

angelleye opened this issue Jul 7, 2016 · 0 comments


Copy link

commented Jul 7, 2016

Users reporting PHP warning...

In /classes/lib/wc-gateway-paypal-express-angelleye.php at line 1119 the action has the array() argument in it:
do_action( 'woocommerce_checkout_order_processed', $order_id, array() );

But it should have no array() argument:
do_action( 'woocommerce_checkout_order_processed', $order_id );

The woocommerce_checkout_order_processed only has 1 argument and should not have the 2nd array() argument.

Here is the error that it creates in the ERROR LOG:
[06-Jul-2016 13:15:32 UTC] PHP Warning: Missing argument 2 for WC_Subscriptions_Switcher::process_checkout() in /home/blah/public_html/wp-content/plugins/woocommerce-subscriptions/includes/class-wc-subscriptions-switcher.php on line 595
[06-Jul-2016 13:15:32 UTC] PHP Warning: Missing argument 2 for WC_Subscriptions_Checkout::process_checkout() in /home/blah/public_html/wp-content/plugins/woocommerce-subscriptions/includes/class-wc-subscriptions-checkout.php on line 52

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet
2 participants
You can’t perform that action at this time.