I'm getting this error:

Fix the indicated errors in the #config property first!
Config diagnostics (config id: taxonomy-views-journal-1): Array
(
[0] => 'params' is missing values for: exclude_tid, root_term.
)

any ideas what that means or how to best troubleshoot this?

Comments

wim leers’s picture

Where do you get this?

wim leers’s picture

Assigned: Unassigned » wim leers
Status: Active » Closed (duplicate)

I suspect it was in taxonomy_views, as I experienced the same just moments ago while working on another issue. I've fixed it there :)

jlaaker’s picture

Version: 5.x-3.x-dev » 6.x-3.x-dev
Category: bug » support
Status: Closed (duplicate) » Active

Hola

I reopen this issue because I am trying to integrate the easiest implementation of HS. Well, I am a newbie too :)
I want to use an hierarchy I have build in taxonomy. I will use this to navigate between different subdomains. So my ide was to use the elegant interface of HS and let the user select their region and based on their choice be lead to the right subdomain.
When I implemented this, I got the message: "You don't have Javascript enabled..." (though it is). Then I switched to HS_DEVELOPER_MODE. Then I got the same message as robotjox. But I use hs_taxonomy and this one neighter use exclude_tid nor root_term. This use vid. (I use Norwegian letters, but I have also tried without too - without luck).
So where do I fail? I have pasted my code so you can easier spot the problem (I´ve tried for 3 days):

function lokal_location_form($form_state){
  $form['select_area'] = array(
    '#type' => 'hierarchical_select',
    '#title' => t('Velg ditt område'),
    '#size' => 1,
    '#config' => array(
      'module' => 'hs_taxonomy',
      'params' => array(
        'vid' => 3,
      ),
      'save_lineage'    => 0,
      'enforce_deepest' => 1,
      'entity_count'    => 0,
      'level_labels' => array(
        'status' => 0,
        'labels' => array(
          0 => t('Fylke'),
          1 => t('Kommune'),
          2 => t('Område'),
        ),
      ),
      'animation_delay'    => 200,
    ),
  ); 
  return $form;
}
function location() {
  return drupal_get_form('lokal_location_form');
}

And then I call this from the page.tpl.php by: print location();

If you help me with this, you'll make my day (at least).

wim leers’s picture

Status: Active » Postponed (maintainer needs more info)

If you get the 'You don't have Javascript enabled' error when JS is enabled, then you probably have a JS error on your page. Check that with Firebug.

jlaaker’s picture

Yes, I get javascript error in web-developer:

Error: Drupal.settings.HierarchicalSelect.settings[hsid] is undefined
Source file: http://example.com/sites/all/modules/hierarchical_select/hierarchical_se... Line: 33.

(I don't know where this ?L at the end of the link comes from.)

When I deactivate my code, the HS-functionality works fine in the taxonomy administrator interface. But I am not able to make it work on the live site. All the javascript files are loaded each time.

wim leers’s picture

Then Drupal.settings.HierarchicalSelect is not being filled. Maybe you're rendering the form too late, e.g. from within the theme system? Or from hook_exit()?

jlaaker’s picture

I write this in template.php and call the form from page.tpl.php. Suggestion how to implement it differently? Is there a place where i can see how working examples are implemented - not only the result?

jlaaker’s picture

Hi again
I've been reading a bit and I found out that the "evil mistake" that is made is that I have tried to implement this into theme-files: template.php
So then I will try to make a small module or so. Hope this will fix things and then call it from the theme. Easy mistake for a newbie, hehe

wim leers’s picture

Status: Postponed (maintainer needs more info) » Closed (fixed)

Yep, that's wrong :) It can be done, I think, but it's ugly and complex. A module is much, much better. :)