Closed (fixed)
Project:
Taxonomy CSV import/export
Version:
6.x-5.4
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
14 Sep 2010 at 06:50 UTC
Updated:
14 Sep 2010 at 17:33 UTC
doing an import, i ended up with this error:
Fatal error: Cannot use object of type stdClass as array in /var/www/medallurgy/ucsf/dev/www/modules/taxonomy/taxonomy.module on line 198
this is caused by passing an object to taxonomy_save_vocabulary() - it requires an array by reference
since that's a by-ref argument there, i changed that variable to an array and updated the other uses of it in the file. if whatever that function might be changing is not relevant, then you could fix this more simply by casting into a temp variable and passing that.
| Comment | File | Size | Author |
|---|---|---|---|
| taxonomy_csv.importsave.patch | 3.96 KB | brad.bulger |
Comments
Comment #1
Daniel_KM commentedHi,
Thanks. Patch has been committed to 6.x-5.4.
These functions are only use at the end of import process, so use of an array or an object doesn't matter. I prefer use an object to be closer to 7.x release of Taxonomy csv, but this is not important here.
Sincerely,
Daniel Berthereau
Knowledge manager