When installed, with Ubercart already have product, during checkout this error message appear.
Strict warning: Creating default object from empty value in uc_userpoints_product_form_alter() (line 247 of sites\all\modules\userpoints_ubercart\uc_userpoints_product\uc_userpoints_product.module).

Fixed by add:

    $order = new stdClass;
    $order->products = uc_cart_get_contents();

before line 247.

CommentFileSizeAuthor
#1 object-from-empty-value-1994536-1.patch800 bytestucho
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

tucho’s picture

Issue summary: View changes
FileSize
800 bytes

I have make a patch for this.

matt.rad’s picture

I can confirm that the above patch works for me. Thanks!

parasolx’s picture

Status: Needs review » Reviewed & tested by the community

Change to RTC so that the patch would undergoes testing by bot.