Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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.
Comment | File | Size | Author |
---|---|---|---|
#1 | object-from-empty-value-1994536-1.patch | 800 bytes | tucho |
Comments
Comment #1
tuchoI have make a patch for this.
Comment #2
matt.rad CreditAttribution: matt.rad commentedI can confirm that the above patch works for me. Thanks!
Comment #3
parasolx CreditAttribution: parasolx as a volunteer commentedChange to RTC so that the patch would undergoes testing by bot.