Closed (fixed)
Project:
UC Recurring Payments and Subscriptions
Version:
7.x-2.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
22 Dec 2011 at 20:48 UTC
Updated:
16 May 2012 at 14:20 UTC
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
Comment #1
stealthtech1 commentedI 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];Comment #2
ThePiano.SG commentedI 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
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.
Comment #3
daejuan commentedI'm receiving the same error message on the customer order page. Though I havent tried the replacement code since that also has issues
Comment #4
foobarblat commentedOMG Subscribe please - I have lost days on this
Comment #5
particlegirl commentedSubscribe - also have the same error message within the shopping cart.
Comment #6
univate commentedComment #7
foobarblat commentedthis 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.
Comment #8
stealthtech1 commentedThis 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
Comment #9.0
(not verified) commentedmistake with the page this error appears