PPforWoo breaking Woo Smart Coupons with Headers Already Sent error
-
Under direction from PayPal guy, I installed PayPal for WooCommerce plugin so that our site could start using PayPal express. All seemed to work well. But when a customer checks out using PayPal (instead of a credit card, which works just fine here), the last steps go like this:
http://www.cmtausa.org/store/checkout/review-order/?pp_action=revieworder&token=EC-xxx&PayerID=yyy
customer clicks “Place Order” and the URL changes to:
http://www.cmtausa.org/store/checkout/review-order/?pp_action=payaction&token=EC-xxx&PayerID=yyy
but the page turns white with these error message:
Warning: Missing argument 2 for WC_Smart_Coupons::save_called_credit_details_in_order() in /home/admin/public_html/wp-content/plugins/woocommerce-smart-coupons/woocommerce-smart-coupons.php on line 1591
Warning: Cannot modify header information – headers already sent by (output started at /home/admin/public_html/wp-content/plugins/woocommerce-smart-coupons/woocommerce-smart-coupons.php:1591) in /home/admin/public_html/wp-includes/pluggable.php on line 1207
Indicating an error upstream somewhere, where an extraneous whitespace (probably) has been mistakenly sent to the browser. This happens whether using a coupon code or not, and again ONLY happens during a PayPal processed checkout, and ONLY started happening since setting up PayPal for WooCommerce and using PayPal Express.
It’s quite problematic as the payment through PayPal goes through, but the customer gets no indication of that, just the error message!
Updated PayPal for WooCommerce plugin (to 1.2.3) AND the WooCommerce Smart Coupon plugin (today, v 3.1.1) and it still happens.
- The topic ‘PPforWoo breaking Woo Smart Coupons with Headers Already Sent error’ is closed to new replies.