Closed (fixed)
Project:
Amazon Product Advertisement API
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
15 Jun 2008 at 19:39 UTC
Updated:
18 Oct 2009 at 08:30 UTC
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
Comment #1
rfayI'm going to mark this as fixed since there's so much water under the bridge. Reopen if not.