After installing on a clean Drupal 7.8 install, I get this following error on a product that has a recurring fee feature enabled:

* Notice: Undefined property: stdClass::$order_id in uc_recurring_get_fees() (line 809 of /Users/**/Sites/**/sites/all/modules/uc_recurring/uc_recurring.module).
* Notice: Undefined property: stdClass::$order_product_id in uc_recurring_get_fees() (line 813 of /Users/**/Sites/**/sites/all/modules/uc_recurring/uc_recurring.module).
* Notice: Undefined property: stdClass::$order_product_id in uc_recurring_get_fees() (line 813 of /Users/**/Sites/**/sites/all/modules/uc_recurring/uc_recurring.module).
* Notice: Undefined property: stdClass::$order_id in uc_recurring_get_fees() (line 828 of /Users/**/Sites/**/sites/all/modules/uc_recurring/uc_recurring.module).

This error can be ignored - checkout and payment seems successful, but then when time rolls around for the recurring payment to happen as scheduled, I then get the following errors which prevent a recurring payment being made:

* Notice: Undefined offset: 0 in uc_order_state_default() (line 1959 of /Users/**/Sites/**/sites/all/modules/ubercart/uc_order/uc_order.module).
* Notice: Undefined index: attributes in uc_attribute_uc_order_product_alter() (line 478 of /Users/**/Sites/**/sites/all/modules/ubercart/uc_attribute/uc_attribute.module).
* Notice: Undefined offset: 0 in uc_order_state_default() (line 1959 of /Users/**/Sites/**/sites/all/modules/ubercart/uc_order/uc_order.module).
* Notice: Undefined index: attributes in uc_attribute_uc_order_product_alter() (line 478 of /Users/**/Sites/**/sites/all/modules/ubercart/uc_attribute/uc_attribute.module).

Any help would be appreciated, in an ideal world I would love to have this module working asap for a current project requiring recurring payments.

Comments

agileware’s picture

Title: Errors appear on product with recurring fee preventing payment » Undefined properties of order in uc_recurring_get_fees()
Priority: Critical » Normal
StatusFileSize
new556 bytes

These two sets of errors are different issues so making this for the first one and I'll create a new issue for the second.

This patch fixes it for me.

agileware’s picture

Status: Active » Needs review
agileware’s picture

StatusFileSize
new845 bytes

More related notices > new patch.

agileware’s picture

Status: Needs review » Closed (duplicate)

Marking as duplicate of #992252: uc_recurring Drupal 7 port because this patch has been rolled into the meta patch at #992252-21: uc_recurring Drupal 7 port.