Hi,

I have updated HS to 5.x.3.0-beta1 and changed the file as per CVS http://drupal.org/project/cvs/172915

Problem.
If I set the HS as below, it crash and freeze the parent terms
Save lineage: Save only the deepest term
Level choice: Force the user to choose a term from a deepest level

$config = array(
  'config_id'       => 'content-taxonomy-field_t',
  'save_lineage'    => 0,
  'enforce_deepest' => 1,
  'node_count'      => 0,
  'level_labels' => array(
    'status' => 0,
    'labels' => array(
      0 => '',
      1 => '',
      2 => '',
    ),
  ),
  'dropbox' => array(
    'status'    => 0,
    'title'     => '',
    'limit'     => 0,
    'reset_hs'  => 1,
  ),
  'editability' => array(
    'status' => 0,
    'item_types' => array(
      0 => '',
      1 => '',
      2 => '',
    ),
    'allow_new_levels' => 0,
    'max_levels'       => 2,
  ),
);

Is it a bug?

Comments

wim leers’s picture

Assigned: Unassigned » wim leers
Category: bug » support
Status: Active » Postponed (maintainer needs more info)

Go to admin/logs/status to see if there are problems with your installation.

carlogen’s picture

Wim

I had already checked and no errors in log.

wim leers’s picture

Title: HS freeze or slower tahn before » HS freeze or slower than before

Not the log, the *status report*. I think you've got jQuery Update 1 installed, but you need 2.

carlogen’s picture

Yes sorry.

I did check this.2
no errors and my Jquery version is "The current installed version of jQuery is 1.2.6".

wim leers’s picture

Ok. Next question: how did you configure the "depth" setting of your content_taxonomy CCK field?

wim leers’s picture

(Or: go to admin/content/types/export and export just the one field and post it here.)

carlogen’s picture

find below configuration

$content[type]  = array (
  'name' => 'content',
  'type' => 'content',
  'description' => '',
  'title_label' => 'Title',
  'body_label' => '',
  'min_word_count' => '0',
  'help' => '',
  'node_options' => 
  array (
    'status' => true,
    'promote' => true,
    'sticky' => false,
    'revision' => false,
  ),
  'comment' => '0',
  'upload' => '1',
  'old_type' => 'content',
  'orig_type' => '',
  'module' => 'node',
  'custom' => '1',
  'modified' => '1',
  'locked' => '0',
  'ant' => '1',
  'ant_pattern' => '[field_t-term]',
  'ant_php' => 0,
);
$content[fields]  = array (
  0 => 
  array (
    'widget_type' => 'content_taxonomy_select',
    'label' => 'comune',
    'weight' => '0',
    'group_tid' => '0',
    'description' => '',
    'default_value_widget' => 
    array (
      'field_afds' => 
      array (
        'tids' => 
        array (
          0 => '0',
        ),
      ),
    ),
    'default_value_php' => '',
    'group' => false,
    'required' => '0',
    'multiple' => '0',
    'save' => 'tag',
    'vid' => '1',
    'tid' => '0',
    'depth' => '',
    'field_name' => 'field_afds',
    'field_type' => 'content_taxonomy',
    'module' => 'content_taxonomy, content_taxonomy_options',
    'default_value' => 
    array (
      'tids' => 
      array (
        0 => 
        array (
          0 => '0',
        ),
      ),
    ),
  ),
);

I hope it helps

summit’s picture

Hi Wim,

Having the same situation. The widget hangs on IE6 and Firefox.
Configuration:

$config = array( 'config_id' => 'content-taxonomy-field_regionl_tax_intro', 'save_lineage' => 0, 'enforce_deepest' => 0, 'node_count' => 0, 'level_labels' => array( 'status' => 0, 'labels' => array( 0 => '', 1 => '', 2 => '', 3 => '', ), ), 'dropbox' => array( 'status' => 1, 'title' => 'Regional', 'limit' => 0, 'reset_hs' => 1, ), 'editability' => array( 'status' => 1, 'item_types' => array( 0 => '', 1 => '', 2 => '', 3 => '', ), 'allow_new_levels' => 1, 'max_levels' => 3, ), ); 

greetings, Martijn

wim leers’s picture

Category: support » bug

Darn, really must be a bug then :(

Probably due to something that hasn't been renamed properly. That's what you get for renaming things en masse.

I'll look at it Wednesday, after my exam. Wednesday night you can also expect beta 2.

wim leers’s picture

Could you guys please upgrade to the latest dev release? That appears to be working! (Which would make sense because it's working here…)

I also fixed (mere moments ago) a bug in the JS which may have caused problems in browsers other than Safari (in Safari it kept working, but not entirely correctly), which might help in fixing this problem.

summit’s picture

The 29th june version also gives the slowdown/hanging on IE6 and firefox in mine installation. Sorry Wim..
greetings,
Martijn

carlogen’s picture

Wim,

I did the test with new dev version:

Wim Leers - April 15, 2008 - 21:29
Nightly development snapshot from CVS branch: HEAD
Download: hierarchical_select-5.x-3.x-dev.tar.gz
Size: 67.51 KB
md5_file hash: 314fb207d05875391980bd6b1ca8f006
First released: April 15, 2008 - 21:29
Last updated: July 1, 2008 - 00:04
Hierarchical Select 3 development snapshot.

It is working (a little bit slower) with this configuration.

1.
Save lineage: Save term lineage
Level choice: Force the user to choose a term from a deepest level

$content[type]  = array (
  'name' => 'content',
  'type' => 'content',
  'description' => '',
  'title_label' => 'Title',
  'body_label' => '',
  'min_word_count' => '0',
  'help' => '',
  'node_options' => 
  array (
    'status' => true,
    'promote' => true,
    'sticky' => false,
    'revision' => false,
  ),
  'comment' => '0',
  'upload' => '1',
  'old_type' => 'content',
  'orig_type' => '',
  'module' => 'node',
  'custom' => '1',
  'modified' => '1',
  'locked' => '0',
  'ant' => '1',
  'ant_pattern' => '[field_t-term]',
  'ant_php' => 0,
);
$content[fields]  = array (
  0 => 
  array (
    'widget_type' => 'content_taxonomy_hs',
    'label' => 'test',
    'weight' => '0',
    'description' => '',
    'group' => false,
    'required' => '0',
    'multiple' => '1',
    'save' => 'tag',
    'vid' => '1',
    'tid' => '0',
    'depth' => '',
    'field_name' => 'field_test',
    'field_type' => 'content_taxonomy',
    'module' => 'content_taxonomy, hs_content_taxonomy',
  ),
);

It still freeze with this configuration.

2.
Save lineage: Save only the deepest term
Level choice: Force the user to choose a term from a deepest level

$content[type]  = array (
  'name' => 'content',
  'type' => 'content',
  'description' => '',
  'title_label' => 'Title',
  'body_label' => '',
  'min_word_count' => '0',
  'help' => '',
  'node_options' => 
  array (
    'status' => true,
    'promote' => true,
    'sticky' => false,
    'revision' => false,
  ),
  'comment' => '0',
  'upload' => '1',
  'old_type' => 'content',
  'orig_type' => '',
  'module' => 'node',
  'custom' => '1',
  'modified' => '1',
  'locked' => '0',
  'ant' => '1',
  'ant_pattern' => '[field_t-term]',
  'ant_php' => 0,
);
$content[fields]  = array (
  0 => 
  array (
    'widget_type' => 'content_taxonomy_hs',
    'label' => 'test',
    'weight' => '0',
    'description' => '',
    'group' => false,
    'required' => '0',
    'multiple' => '1',
    'save' => 'tag',
    'vid' => '1',
    'tid' => '0',
    'depth' => '',
    'field_name' => 'field_test',
    'field_type' => 'content_taxonomy',
    'module' => 'content_taxonomy, hs_content_taxonomy',
  ),
);

I tried the remaining configurations

3.
Save lineage: Save only the deepest term
Level choice: Allow the user to choose a term from any level

Freeze
------

4.
Save lineage: Save term lineage
Level choice: Allow the user to choose a term from any level

This is OK

Regards
Carlo

summit’s picture

Hi Wim.

Thanks to Carlogen, it looks like it freezes with:

Save lineage: Save only the deepest term

Greetings,
Martijn

wim leers’s picture

carlogen: did you check your status report? I think you still have to perform the last database update!

all: I'm still not able to reproduce this…

summit’s picture

Hi Wim,

what info do you need to reproducte this please?
Greetings,
Martijn

carlogen’s picture

Wim,

I did check the status report.

I have processed a brand new installation of drupal and HS (I have downloaded the last dev file).
The problem is still there always the same.

If you are not able to reproduce the bug.
I could send by email a copy of database and drupal folder, so you can reproduce it on your PC.

Let me know

wim leers’s picture

Title: HS freeze or slower than before » HS freezes

It'd help a lot of one, or both of you could provide me with FTP/SSH + Drupal admin access. You of course have my word that I won't abuse this, and I won't delete any data or change settings.

wim leers’s picture

Title: HS freezes » HS Content Taxonomy doesn't work when no root term is specified
Component: Miscellaneous » Code - Content Taxonomy

Finally reproduced this, while testing for another issue!

This happens only for Content Taxonomy, when you didn't select a "root term" for the vocabulary.

summit’s picture

Hi Wim,
great you could reproduce it!
But.. I do not want to choose a root term. I selected -- on purpose, my root terms for my regional vocabulairy are countries, and thats fine for my purposes. Or I need to make an artificial rootterm to get this working, or are you thinking another way?

Greetings,
Martijn

summit’s picture

Hi Wim,
great you could reproduce it! and thank you a lot for all your support Wim, thanks allready for that, during your exams, really great!
We'll see what the best solution is then. Greetings, Martijn

wim leers’s picture

Of course you don't have to select a root term. I'm just saying that that is what triggers it, I'm going to fix it ;) :)

summit’s picture

Great! looking forward to the fix!
Greetings, Martijn

wim leers’s picture

Status: Postponed (maintainer needs more info) » Fixed

Found it! Fixed now :)

Anonymous’s picture

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.