Although this is just an notice and doesn't affect the payment process, but raises the "access denied error" which may mislead the end user.
Notice: Undefined index: checkout_page in commerce_paypal_ec_review_pane_checkout_form_submit() (line 188 of /home/nithu/public_html/ps2html.org/public/sites/all/modules/commerce_paypal/modules/ec/includes/commerce_paypal_ec.checkout_pane.inc
This happens when billing information is entered at Paypal instead of on-site checkout form(which is working fine).
option "Update billing customer profiles with address information the customer enters at PayPal." is enable in EC configuration.After payment , when paypal returns to checkout page only Name and Country is showing in billing information pane.
Comment | File | Size | Author |
---|---|---|---|
#6 | commerce_paypal_ec-undefined-index-checkout-page-2068945-6.patch | 1.11 KB | johnlutz |
#3 | commerce-express-checkout-error.png | 68.19 KB | dang42 |
Comments
Comment #1
higherform CreditAttribution: higherform commentedI encountered this issue also.
Steps to reproduce:
1. Using core 7.39, commerce 7.x-1.11, commerce_paypal 7.x-2.3... also commerce_rules_extra 7.x-2.1 and commerce_custom_order_status 7.x-1.0 ... have not tested with any other combination of modules
2. Paypal Express Checkout settings set to: "Update billing customer profiles with address information the customer enters at PayPal." is unchecked, and using sandbox (have not tested on a live Paypal transaction yet)
3. Create cart with items as normal, checkout via Paypal
4. Login as sandbox buyer on Paypal payment page. Sandbox buyer has no corresponding user in Drupal.
5. Upon returning to Drupal site/checkout/%order_id/paypal_ec, note error message:
Notice: Undefined index: checkout_page in commerce_paypal_ec_review_pane_checkout_form_submit() (line 188 of *hidden*/modules/contrib/commerce_paypal/modules/ec/includes/commerce_paypal_ec.checkout_pane.inc).
User is shown Access Denied to "/checkout/9/paypal_ec#" ... even Adminstrator
Order status becomes blank on "admin/commerce/orders"... which means the rest of my rule chain will not fire...
Comment #2
higherform CreditAttribution: higherform commentedI am upgrading this issue to major as it is occurring 100% of the time with the steps to reproduce, and is now a blocker to go live for my 501c3's membership system.
Comment #3
dang42 CreditAttribution: dang42 as a volunteer commentedI am seeing the same thing, but only when I have a rule enabled that sets the order status to "completed" when order is first paid in full.
To re-create (done this on 3 different sites, one of which is a clean install):
At this point, I can add a product to the cart, go to the cart, click the PayPal icon, go to PayPay, do what I need to there & get re-directed back to the site to click "Pay now". And this all works.
However, the order is still in the "Pending" status. So I create a rule that fires on "When an order is first paid in full" to change the status to "Completed". Run through the above process again and you end up with what you see in the attached image.
In case it isn't clear on the screenshot, here's the error text:
Also, this results in an order status of "Canceled".
Note, I am logged in as user 1 here. Using 7.43, Commerce 1.13 & Commerce PayPal 2.3.
I'm not currently skilled enough to figure out what's going wrong, but I'm happy to help debug this any way I can.
Thanks,
Dan
Comment #4
lamp5Confirm. The same problem. I also use rule to change order status.
Any ideas to solve this problem??
Comment #5
johnvenpin CreditAttribution: johnvenpin as a volunteer commentedHave same issue - going on to trial alternative payment gateway now - as this does not look like its going to get resolved soon :-(
Comment #6
johnlutzHad this exact issue with a rule changing status to completed and paypal_ec not knowing what to do. Patch just checks for this situation and forces the next_page to be complete if so.
Note: 'Test with' selection only shows 8.x, so not setting this to test.
Comment #7
torgosPizzaSetting to NR since there is a patch.
Comment #8
mglamanComment #9
Anybody#6 is correct and working great! RTBC from my perspective.