This issue was split out from #1268010: Undefined properties of order in uc_recurring_get_fees()

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

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

xurizaemon’s picture

Version: 7.x-2.x-dev » 6.x-2.x-dev
Status: Active » Needs review
FileSize
532 bytes

This appears to have been fixed for 7.x-2.x in 939f29 as part of #992252: uc_recurring Drupal 7 port, looks like the fix is

- $new_order = uc_order_new($order->uid, 'processing');
+ $new_order = uc_order_new($order->uid, 'post_checkout');
tinker’s picture

Version: 6.x-2.x-dev » 7.x-2.x-dev
xurizaemon’s picture

Version: 7.x-2.x-dev » 6.x-2.x-dev

I set this issue to 6.x-2.x as the patch is already in 7.x-2.x?

tinker’s picture

@grobot, sorry about the erronoeus version change.

univate’s picture

Issue summary: View changes
Status: Needs review » Fixed

Committed to 6.x-2.x

Status: Fixed » Closed (fixed)

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