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.
The following error is recorded in dblog when loading the checkout page.
Notice: Undefined variable: user in uc_payment_get_details() (line 413 of ubercart/payment/uc_payment/uc_payment.module).
Comment | File | Size | Author |
---|---|---|---|
#4 | ubercart-n1854598-4.patch | 857 bytes | DamienMcKenna |
#1 | ubercart-n1854598.patch | 498 bytes | DamienMcKenna |
Comments
Comment #1
DamienMcKennaThe global $user variable wasn't loaded before using $user->uid.
Comment #2
DamienMcKennaAnother error two lines later:
Notice: Undefined index: cart_order in uc_payment_get_details() (line 410 of ubercart/payment/uc_payment/uc_payment.module).
Comment #3
DamienMcKennaA third error, just a few lines further on:
Notice: Trying to get property of non-object in uc_payment_get_details() (line 415 of ubercart/payment/uc_payment/uc_payment.module).
Comment #4
DamienMcKennaThis patch resolves all three errors.
Comment #5
longwaveCommitted, thanks for the patches.