Support » Plugin: PayPal for WooCommerce » Missing argument 1 for WC_Checkout::create_order()

  • Resolved cihomewood

    (@cihomewood)


    Hi

    A customer has just reported the above error at the final stage of payment via Paypal express. I have reviewed the order within the WooCommerce admin area on my site and can see no issues, all the details are there, the stock has been decremented and the order status is ‘Processing’. I have received the new order email, along with the Paypal payment notification.

    The full content of the error page supplied by the customer is:

    Warning: Missing argument 1 for WC_Checkout::create_order(), called in /homepages/4/d663642401/htdocs/wp-content/plugins/paypal-for-woocommerce/classes/wc-gateway-paypal-express-angelleye.php on line 1200 and defined in /homepages/4/d663642401/htdocs/wp-content/plugins/woocommerce/includes/class-wc-checkout.php on line 262

    Warning: Invalid argument supplied for foreach() in /homepages/4/d663642401/htdocs/wp-content/plugins/woocommerce/includes/class-wc-checkout.php on line 289

    Warning: Cannot modify header information – headers already sent by (output started at /homepages/4/Warning: Missing argument 1 for WC_Checkout::create_order(), called in /homepages/4/d663642401/htdocs/wp-content/plugins/paypal-for-woocommerce/classes/wc-gateway-paypal-express-angelleye.php on line 1200 and defined in /homepages/4/d663642401/htdocs/wp-content/plugins/woocommerce/includes/class-wc-checkout.php on line 262

    Warning: Invalid argument supplied for foreach() in /homepages/4/d663642401/htdocs/wp-content/plugins/woocommerce/includes/class-wc-checkout.php on line 289

    Warning: Cannot modify header information – headers already sent by (output started at /homepages/4/d663642401/htdocs/wp-content/plugins/woocommerce/includes/class-wc-checkout.php:262) in /homepages/4/d663642401/htdocs/wp-includes/pluggable.php on line 1179/htdocs/wp-content/plugins/woocommerce/includes/class-wc-checkout.php:262) in /homepages/4/d663642401/htdocs/wp-includes/pluggable.php on line 1179

    Thanks for your help.

Viewing 9 replies - 1 through 9 (of 9 total)
  • Plugin Contributor angelleye

    (@angelleye)

    Did you already update to WC 3.0?

    Thread Starter cihomewood

    (@cihomewood)

    Version is showing as 3.0.0

    Plugin Contributor angelleye

    (@angelleye)

    Yeah, we’re not quite compatible yet. We’ll be releasing 1.4.0 of our plugin soon, and it will be fully compatible with WC 3.0.

    Thread Starter cihomewood

    (@cihomewood)

    Okay thanks for your quick response. Do you have a date yet?

    Plugin Contributor angelleye

    (@angelleye)

    Not an official date. We’re working hard on it now and we hope to have it done within a week or 2 at the most. I know that’s not great news, but we’re doing our best.

    1.4.0 was a big update for us in general, and WC 3.0 caught us off guard a little bit causing us to make a bunch of additional adjustments in our update we were just about to release. We’ll get it ready ASAP!

    Thread Starter cihomewood

    (@cihomewood)

    Thanks for the update, good luck with the testing.

    I also am showing the following errors in my log:

    [05-Apr-2017 10:07:00 UTC] PHP Warning: Missing argument 1 for WC_Checkout::create_order(), called in [FULL PATH OMITTED]/wp-content/plugins/paypal-for-woocommerce/classes/wc-gateway-paypal-express-angelleye.php on line 1200 and defined in [FULL PATH OMITTED]/wp-content/plugins/woocommerce/includes/class-wc-checkout.php on line 262
    [05-Apr-2017 10:07:00 UTC] PHP Warning: Invalid argument supplied for foreach() in [FULL PATH OMITTED]/wp-content/plugins/woocommerce/includes/class-wc-checkout.php on line 289
    [05-Apr-2017 10:07:06 UTC] PHP Warning: Cannot modify header information – headers already sent by (output started at [FULL PATH OMITTED]/wp-content/plugins/woocommerce/includes/class-wc-checkout.php:262) in [FULL PATH OMITTED]/wp-includes/pluggable.php on line 1179

    Is this also related to the incompatibility with WC? I’m using WC 3.0.1 and version 1.3.3 of your plugin.

    Plugin Contributor angelleye

    (@angelleye)

    If you are using WC 3.0+ then yes, I would say your problem is probably an incompatibility issue. We are currently working on the 1.4.0 update that will resolve this issue, and we hope to have it ready within a week.

    Plugin Contributor angelleye

    (@angelleye)

    We will be releasing the 1.4.0 update in just another day or two. I’m going to go ahead and mark this thread resolved, but just keep your eye out for the update and let us know if you have any problems after applying it. Thanks!

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Missing argument 1 for WC_Checkout::create_order()’ is closed to new replies.