Hi
I get this error at the "order reivew" screen (not checkout sorry):
Notice: Undefined index: #parameters in uc_recurring_hosted_form_uc_paypal_wps_form_alter() (line 578 of sites/all/modules/ubercart/contrib/uc_recurring/modules/uc_recurring_hosted/uc_recurring_hosted.module).

I use paypal wps as the only payment method.

Has anyone have any ideas what is causing it and a possible fix or workaround?

Thanks in adv

Comments

stealthtech1’s picture

I fixed this error by changing the line 578 in uc_recurring_hosted.module

from:
$order = $form['#parameters'][2];

to:
$order = $form_state['build_info']['args'][0];

ThePiano.SG’s picture

I made the code change as recommended in comment #1, the buyer is redirected to the Paypal site and is able to see the Recurring Payment plan.

The issue I faced is:
The Order is left in the "Pending" status and never gets completed.

Before the code change, I was having trouble with the buyer looking at the Recurring Payment plan after redirected to the Paypal payment page. Buyer instead sees the normal one-time transaction Paypal page, and this is the wrong behaviour. After buyer is redirected back to /cart/checkout/complete, the Order *actually* has its status set to Completed.

I can only guess that the IPN isn't properly interpreted when it is sent back to our site. This conclusion is based on

  • Normal one-time transaction results in Order being completed.
  • Recurring Transaction lefts Order in Pending status.

I have checked the Logs for both (before code change) and (after code change), and there is no error reported there.

Is there anyone who might understand what is going on here?

Thank you in advance.

daejuan’s picture

I'm receiving the same error message on the customer order page. Though I havent tried the replacement code since that also has issues

foobarblat’s picture

Version: 7.x-2.0-alpha1 » 7.x-2.x-dev

OMG Subscribe please - I have lost days on this

particlegirl’s picture

Subscribe - also have the same error message within the shopping cart.

univate’s picture

Status: Active » Fixed
foobarblat’s picture

this is not gonna get fixed - only option was to switch to drupal commerce...which comes with its own problems (ips notify_url is bullshit) but at least it will send a subscription order through.

stealthtech1’s picture

This module is only about 20% complete on the 7.x branch. It's a good start but you will need to implement a hundred other things to get it to work to some degree. I've hacked this module to bring it to a semi workable state specifically for a paypal subscription environment if anyone wants the source code for that please send email address

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

Anonymous’s picture

Issue summary: View changes

mistake with the page this error appears