Probably a bug in drupal core.. but just in case somebody else sees this come up.

[Wed Jun 11 20:21:29 2008] [error] [client 0.0.0.0] PHP Fatal error: Cannot use object of type stdClass as array in sites d:\\htdocs\\all\\modules\\amazon\\amazon.module on line 402, referer: http://localhost/node/add/product

drupal_write_record casts the $item into an object. So need to "recast" it back to array in amazon_item_insert()

Patch:

395a396
>   $item = (array) $item;

Comments

rfay’s picture

Status: Active » Fixed

I'm going to mark this as fixed since there's so much water under the bridge. Reopen if not.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.