Needs review
Project:
UC Recurring Payments and Subscriptions
Version:
6.x-2.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
10 May 2010 at 18:19 UTC
Updated:
1 Jul 2013 at 02:53 UTC
Jump to comment: Most recent file
Comments
Comment #1
AlexisWilke commentedI meant to post the list of errors too! 8-)
* notice: Undefined variable: product in /usr/clients/www/drupal/sites/all/modules/uc_recurring/uc_recurring.module on line 1181.
* notice: Trying to get property of non-object in /usr/clients/www/drupal/sites/all/modules/uc_recurring/uc_recurring.module on line 1181.
* notice: Undefined variable: product in /usr/clients/www/drupal/sites/all/modules/uc_recurring/uc_recurring.module on line 1192.
* notice: Trying to get property of non-object in /usr/clients/www/drupal/sites/all/modules/uc_recurring/uc_recurring.module on line 1192.
* notice: Undefined variable: product in /usr/clients/www/drupal/sites/all/modules/uc_recurring/uc_recurring.module on line 1209.
* notice: Trying to get property of non-object in /usr/clients/www/drupal/sites/all/modules/uc_recurring/uc_recurring.module on line 1209.
* notice: Undefined variable: product in /usr/clients/www/drupal/sites/all/modules/uc_recurring/uc_recurring.module on line 1213.
* notice: Trying to get property of non-object in /usr/clients/www/drupal/sites/all/modules/uc_recurring/uc_recurring.module on line 1213.
* notice: Undefined variable: product in /usr/clients/www/drupal/sites/all/modules/uc_recurring/uc_recurring.module on line 1232.
* notice: Trying to get property of non-object in /usr/clients/www/drupal/sites/all/modules/uc_recurring/uc_recurring.module on line 1232.
* notice: Undefined variable: product in /usr/clients/www/drupal/sites/all/modules/uc_recurring/uc_recurring.module on line 1242.
* notice: Trying to get property of non-object in /usr/clients/www/drupal/sites/all/modules/uc_recurring/uc_recurring.module on line 1242.
* notice: Undefined variable: product in /usr/clients/www/drupal/sites/all/modules/uc_recurring/uc_recurring.module on line 1255.
* notice: Trying to get property of non-object in /usr/clients/www/drupal/sites/all/modules/uc_recurring/uc_recurring.module on line 1255.
* notice: Undefined variable: product in /usr/clients/www/drupal/sites/all/modules/uc_recurring/uc_recurring.module on line 1265.
* notice: Trying to get property of non-object in /usr/clients/www/drupal/sites/all/modules/uc_recurring/uc_recurring.module on line 1265.
* notice: Undefined variable: product in /usr/clients/www/drupal/sites/all/modules/uc_recurring/uc_recurring.module on line 1275.
* notice: Trying to get property of non-object in /usr/clients/www/drupal/sites/all/modules/uc_recurring/uc_recurring.module on line 1275.
* notice: Undefined variable: product in /usr/clients/www/drupal/sites/all/modules/uc_recurring/uc_recurring.module on line 1287.
* notice: Trying to get property of non-object in /usr/clients/www/drupal/sites/all/modules/uc_recurring/uc_recurring.module on line 1287.
* notice: Undefined variable: product in /usr/clients/www/drupal/sites/all/modules/uc_recurring/uc_recurring.module on line 1287.
* notice: Trying to get property of non-object in /usr/clients/www/drupal/sites/all/modules/uc_recurring/uc_recurring.module on line 1287.
* notice: Undefined variable: product in /usr/clients/www/drupal/sites/all/modules/uc_recurring/uc_recurring.module on line 1288.
* notice: Trying to get property of non-object in /usr/clients/www/drupal/sites/all/modules/uc_recurring/uc_recurring.module on line 1288.
Comment #3
univate commentedComment #4
agileware commentedA drupal 7 issue too
d7 message:
Comment #5
agileware commentedPatch to fix in D7.
Comment #6
agileware commentedIn drupal 7 this is now included in the meta patch at #992252-21: uc_recurring Drupal 7 port.
Probably should be fixed in drupal 6 too.
Comment #7
xurizaemonmove along
Comment #8
xurizaemonMOVE ALONG
Comment #9
xurizaemonHere's what I've got so far - squashes lots of such messages throughout the new product / make order / view order / charge process. Patch for D6, not via #992252: uc_recurring Drupal 7 port though so you may prefer to backport.
Comment #10
xurizaemonEDIT: Noted in testing that this patch doesn't correctly populate the "number of billing periods" field.
Comment #11
xurizaemonFixes also "number of billing periods".
Comment #12
tinker commented@grobot, Thanks for all the hard work identifying undefined variables and properties. Some of your changes point to problems that have me a little worried.
You have added checks for:
I have changed uc_recurring_get_fees() to return array() if(!isset($order->order_id)) this should stop errors. You can add a backtrace to that if statement and see what caused it.
Other changes:
Check the interdiff as I may have missed something. All the other changes you made work great.
The full patch can be applied using
git am uc_recurring-undefined-vars-props-795094-12.patch