Closed (fixed)
Project:
Acidfree Albums
Version:
master
Component:
Code
Priority:
Critical
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
31 Oct 2006 at 11:02 UTC
Updated:
20 Nov 2006 at 15:48 UTC
Trying to access index.php?q=albums/any_number/edit
gives :
Fatal error: Cannot use object of type stdClass as array in E:\Web Sites\mdb\drupal\modules\taxonomy\taxonomy.module on line 359
I traced this to acidfree.module, on line 226 :
the taxonomy_get_term($path[1]) returns a stdClass object by design, and it's later being used as an array, witch gives errors.
replacing:
$term = taxonomy_get_term($path[1]);
with
$term = (array)taxonomy_get_term($path[1]);
on line 226 fixes the error.
Comments
Comment #1
vhmauery commentedI am planning on reworking this part of taxonomy interaction, so this should go away soon...
Comment #2
vhmauery commentedthis should be fixed now in the latest CVS.
Comment #3
vhmauery commented