Hello,
I'm having a strange behaviour tonight.
I upgraded a drupal test site from 5.b1 to 5.b2 and began to create categories, as I haven't done it yet.
The vocable creation works ok, but the categories send back that warning :

    * warning: Illegal offset type in modules/taxonomy/taxonomy.module on line 1088.
    * warning: Illegal offset type in modules/taxonomy/taxonomy.module on line 1089.
    * warning: Illegal offset type in modules/taxonomy/taxonomy.module on line 1092.

No other message in the logs.

The categories are created anyway and the creation of nodes using those warned categories are normal.

Did I have done something wrong ?

Comments

sKanD’s picture

I forgot to give essential précisions.

When I create a parent term under a vocable, I do have the warning.
BUT, if I create a child of a term, I don't have any warning. Moreover it breaks the devel module...

Warning: implode() [function.implode]: Bad arguments. in /modules/devel/devel.module on line 203
eaton’s picture

Priority: Normal » Critical

I can confirm this is the case. Somewhere during the save process, we're calling taxonomy_get_term() and passing in an array rather than an ID. Gotta track down the details.

greggles’s picture

Project: Drupal core » Pathauto
Version: 5.0-beta2 » 5.x-1.x-dev
Component: taxonomy.module » Code
Status: Active » Closed (duplicate)

I bet that this is in Pathauto - see http://drupal.org/node/92900 If you disable pathauto does the issue go away?

There are patches in that queue which "fix" this but I'm not fans of them. I'm looking into/fixing it now so we don't get more of these issues polluting the Core issue queue.