Posted by DamienMcKenna on November 30, 2012 at 4:08am
3 followers
| Project: | Ubercart |
| Version: | 6.x-2.x-dev |
| Component: | Code |
| Category: | bug report |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | closed (fixed) |
Issue Summary
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).
Comments
#1
The global $user variable wasn't loaded before using $user->uid.
#2
Another error two lines later:
Notice: Undefined index: cart_order in uc_payment_get_details() (line 410 of ubercart/payment/uc_payment/uc_payment.module).#3
A 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).#4
This patch resolves all three errors.
#5
Committed, thanks for the patches.
#6
Automatically closed -- issue fixed for 2 weeks with no activity.