Closed (fixed)
Project:
Drupal core
Version:
5.x-dev
Component:
taxonomy.module
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
12 Jan 2007 at 06:07 UTC
Updated:
21 Feb 2007 at 19:45 UTC
I've set up a vocabulary on a new content type created in CCK. The vocabulary is a single hierarchy. Whenever I add a list term, I get the following error:
* warning: Illegal offset type in C:\xampp\htdocs\drupal5-2\modules\taxonomy\taxonomy.module on line 1150.
* warning: Illegal offset type in C:\xampp\htdocs\drupal5-2\modules\taxonomy\taxonomy.module on line 1151.
* warning: Illegal offset type in C:\xampp\htdocs\drupal5-2\modules\taxonomy\taxonomy.module on line 1154.
The list term is added and everything "appears" okay, but I haven't tried using the terms yet.
Comments
Comment #1
zoon_unit commentedAfter further research, this error seems to happen when adding a list term to the root of a vocabulary. It does not occur when adding a list term to a second level term.
Comment #2
incubii commentedI get this same error when i try to create an Album using Acidfree
Comment #3
florian commentedThe error appears when create or update any kind of content. After modifying a vocabulary to not apply to a content type, when editing that content type, the error appears and the vocabulary remains active to that content.
Comment #4
florian commentedThe errors disappear when disabling pathauto module. Even so, the terms links remains on the content type (I can not get rid of them) and the node is not listed anymore under that term, which is correct. Strange behavior!
Comment #5
jeforma commentedI have the same error too on my site, and pathauto doesn't seem to work because of it?
If anybody could help, it would be very grateful!!!
Comment #6
stefano73 commentedTry the pathauto patch attached to comment http://drupal.org/node/92900#comment-171562 :
http://drupal.org/files/issues/pathauto_taxo.patch
Comment #7
jeforma commentedAh, I can't patch, could you upload the new module?
Thanks!!
Comment #8
florian commentedStefano you are not right. There is a different kind of bug here and I am positive it is about taxonomy.module. For example: I have a vocabulary assigned to bookpages. i edit a node and choose some terms, then I deassign that vocabulary. Now, when I edit the book page the vocabulary doesn't appear anymore, which is correct but the terms remains sticked on my page. I can not get rid of those terms. the only option I have is to delete the node... and, of course, the errors regarding the lines 1150, 1151 and 1154 in the taxonomy module are present.
I have disabled the pathauto module and repeated the process. I have the same sticked terms and the errors disappear but I am not happy. My web sites still rely on taxonomy ... :(
Comment #9
wim leersThere's a duplicate of this bug over here: http://drupal.org/node/114902. You can find some more information there as well.
Comment #10
unrev.org commentedI am getting similar errors as well.
This error happens when I add taxonomy terms on the fly via free tagging when posting content.
I am running 5.1 and the very latest (downloaded today) version of pathauto.
Comment #11
Andreas Wolf commentedI can confirm this error.
The only active modules were: Taxonomy, Path, Pathauto
and the error disappears if I disable Pathauto.
I used pathauto-5.x-1.0.tar.gz.
Since stefano73 mentioned http://drupal.org/node/92900#comment-171562 I checked the thread and found that the issue is fixed since February 5, 2007 and commited to pathauto-5.x-1.x-dev.tar.gz.
Since the modules download page still links to pathauto-5.x-1.0.tar.gz here is the link to the updated version http://ftp.osuosl.org/pub/drupal/files/projects/pathauto-5.x-1.x-dev.tar.gz which you can also find on the module page for pathauto http://drupal.org/project/pathauto under development snapshots.
With the new version the error is gone.
Since the mentioned behaviour in #8 from Florian does not relate to the inital bug report I've set this bug report to fixed.
Comment #12
(not verified) commented