A lot of similar issues but none that really matched..
Problem: Processing an undefined order via authorize.net returns a couple of "Undefined Property" PhP errors, one for stdClass::$model and one for stdClass::$rfid.
The $model problem, I traced this down to the fact that the uc_recurring_hosted code is using $fee->model to get the SKU in several places. However, this is actually located at $fee->data['model'].
The $rfid error was because some versions of PhP don't like to use undefined object properties in logicals. E.g., !$fee->rfid will cause this if rfid does not exist. Changed the logic to be !isset($fee->rfid).
In looking thru the hosted code, I also noticed that the Paypal WPP code also misused the $fee->model and $fee->nid structures.
Patch to fix these attached to the next comment.
Comment | File | Size | Author |
---|---|---|---|
#1 | uc_recurring-undefined_properties_in_hosted-2420321-1.patch | 2.73 KB | cgmonroe |
Comments
Comment #1
cgmonroe CreditAttribution: cgmonroe commentedHere's the patch to fix these problems.