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.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

higherform’s picture

Issue summary: View changes

I 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...

higherform’s picture

Priority: Normal » Major

I 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.

dang42’s picture

Version: 7.x-2.0 » 7.x-2.3
FileSize
68.19 KB

I 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):

  1. On a clean install, download & enable commerce & its dependencies.
  2. Create a test product, add a product reference to a content type (I used "article").
  3. Download commerce_paypal, enable the express checkout module & any dependencies.
  4. Add sandbox API credentials to express checkout rule.

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:

Notice: Undefined index: checkout_page in commerce_paypal_ec_review_pane_checkout_form_submit() (line 188 of /srv/bindings/f945efd26d2848aab90ba6580f524311/code/sites/all/modules/commerce_paypal/modules/ec/includes/commerce_paypal_ec.checkout_pane.inc).

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

lamp5’s picture

Confirm. The same problem. I also use rule to change order status.

Any ideas to solve this problem??

johnvenpin’s picture

Have same issue - going on to trial alternative payment gateway now - as this does not look like its going to get resolved soon :-(

johnlutz’s picture

Had 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.

torgosPizza’s picture

Status: Active » Needs review

Setting to NR since there is a patch.

mglaman’s picture

Version: 7.x-2.3 » 7.x-2.x-dev
Anybody’s picture

Status: Needs review » Reviewed & tested by the community

#6 is correct and working great! RTBC from my perspective.