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.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

cgmonroe’s picture

Status: Active » Needs review
FileSize
2.73 KB

Here's the patch to fix these problems.