When using Hierarchical Select if you enable the following settings:
*Save term lineage
*Allow the user to choose a term from any level
*Enable level labels

Save and then use the link to go "Back to the field configuration"

Save options: *both
Depth of taxonomy tree: 2

If you click save on the field options now you will get the error from the subject.

You can stop this error by editing the widget settings via the "configure this Hierarchical Select widget's settings." link, and unchecking *Enable level labels , clicking the save button on this page, and then enabling it again.

This will work as long as you don't go back to the field configuration and click "save field settings"

If you click "save field settings" the error will return.

CommentFileSizeAuthor
#6 content_taxonomy_hs.patch480 bytesMorgenstern
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

realityloop’s picture

When both is selected, it only appears to be saving in CCK field correctly, the Term information is incorrectly saved.

Also if I only select:
Save options:
*Save as tag

The error returns, therefor it seems that currently only the option to "*Save in cck table" is working properly.

Edit: Looks like saving the field at any time after saving "Hierarchical Select configuration" will cause this module to error.. You need to save the "Hierarchical Select configuration" after you have set the field settings.

jdotti’s picture

Thanks, I have the same message.

But is it normal ?

JD

realityloop’s picture

jdotti: I don't think it should act this way which is why I have reported the issue.

Wim Leers’s picture

Status: Active » Closed (fixed)

I cannot reproduce this. Closing this issue since I'm cleaning up the issue queue. If you can still reproduce this on a fresh install, feel free to mark it as active again.

gkanski’s picture

Status: Closed (fixed) » Active

Hi, I have installed the latest 5.x-3.x-dev version (22/03/2009) and still have this "illegal offset" bug I had before. I've tried many combinations of parameters with no luck - I cannot get rid of this problem. In my opinion this bug was not fixed.

Morgenstern’s picture

FileSize
480 bytes

I experienced the same problem and after reading a bit about the Illegal offset type issue of PHP I came across the solution of doing the following:

Change Line 293 from

          $keys[$node_field['tids']] = $node_field['tids'];

to

          $keys[(String) $node_field['tids']] = $node_field['tids'];

I've never written a patch before but just gave it a try for this thing ...

Magnus’s picture

Status: Active » Closed (fixed)

Cleanup of old issues. According to maintainer: "active development is only done for the 6.x branch! 5.x is not supported any more".
Reopen issue if problem still exist in 6.x branch.