When I add a new child item with the dropbox enabled, only the parent appears in the dropbox and is saved on node submit (even with 'enforce_deepest' => 1). Without the dropbox new terms are created just fine. The vocabulary has simple hierarchy (just two terms to start testing, parent and child).

This is a pretty clean install of 6.12 (with a lot of nodes and terms though). I tried different HS configurations (my current and target configuration below), but couldn't make it to work.

My server is on PHP 5.1.6 if it makes any difference. There are no errors in Drupal log.

$config = array(
  'config_id'       => 'taxonomy-20',
  'save_lineage'    => 0,
  'enforce_deepest' => 1,
  'entity_count'    => 0,
  'resizable'       => 0,
  'level_labels' => array(
    'status' => 0,
    'labels' => array(
      0 => '',
      1 => '',
    ),
  ),
  'dropbox' => array(
    'status'    => 1,
    'title'     => '',
    'limit'     => 0,
    'reset_hs'  => 1,
  ),
  'editability' => array(
    'status' => 1,
    'item_types' => array(
      0 => '',
      1 => 'pod',
    ),
    'allowed_levels' => array(
      0 => 0,
      1 => 1,
    ),
    'allow_new_levels' => 0,
    'max_levels'       => 0,
  ),
);

Comments

burlap’s picture

Category: bug » support

It seems that this might be PHP 5.1.6 issue after all. I've tried it at a different site with PHP 5.2.6 and it works. Any hints what to do to make it work/ debug at the 5.1.6 site? There is no way I can change PHP version there and it has to be at that web server...

burlap’s picture

Status: Active » Closed (fixed)

The solution was so simple that it was almost embarrassing. After I tested it in a brand new installs with different PHP versions and it worked everywhere (with different modules enabled) I finally found my error. I translated both "Add" and "Create" with the same Polish word (direct translation of "Create" in Polish sounds stupid) and it apparently "Added" the new term before it was "Created". Changing the translation solved the issue...

Thanks for the great module and my apologies to all of you who lost time reading this...