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.

CommentFileSizeAuthor
taxonomy_csv.importsave.patch3.96 KBbrad.bulger

Comments

Daniel_KM’s picture

Version: 6.x-5.3 » 6.x-5.4
Status: Active » Closed (fixed)

Hi,

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