warning: Illegal offset type in...

mariomaric - August 20, 2008 - 08:26
Project:Taxonomy Browser
Version:6.x-1.4
Component:User interface
Category:bug report
Priority:normal
Assigned:Unassigned
Status:duplicate
Description

Hi Nancy!

I just have to use this opportunity to state how this is really awesome Drupal module! :)

...about problem:

When I enable option 'Make vocabularies collapsible' on TB admin page, and try to use TB I got this warning message:

  • warning: Illegal offset type in /www/sites/www.example.com/sites/all/modules/taxonomy_browser/taxonomy_browser.module on line 595.
  • warning: Illegal offset type in /www/sites/www.example.com/sites/all/modules/taxonomy_browser/taxonomy_browser.module on line 595.
  • warning: Illegal offset type in /www/sites/www.example.com/sites/all/modules/taxonomy_browser/taxonomy_browser.module on line 595.
  • warning: Illegal offset type in /www/sites/www.example.com/sites/all/modules/taxonomy_browser/taxonomy_browser.module on line 595.
  • You must select at least one category in your search.

And there is nothing beneath warning message, no content (nodes of selected taxonomy terms) is displayed. :(

If you need more information regarding this issue just let me know.

Tnx in advance.
--
m.m

P.S.
And one off topic feature request: Is it possible to achieve so there is option to set that vocabularies are expanded/collapsed by default (they are collapsed by default)? Or yet better, it would be superb if collapse/expand condition could be saved in session variable (or smtng like that). I can create new feature request if this is possible.

#1

ken.lancaster - September 5, 2008 - 01:36

I am having the same issue with this module. It is a great module. It would also be great if it were possible to duplicate this module within a site so that I could have several taxonomy browser modules set for different settings. Anyway, would appreciate if this current issue is resolved. Thanks. Awesome job!!!

#2

no2e - September 17, 2008 - 22:46

Same problem here.

#3

NancyDru - September 18, 2008 - 13:50
Status:active» duplicate

#299110: Error telling me I need to select a category when I already have several selected

Please add your second request as a new feature request.

#4

sbrodolo - March 11, 2009 - 11:33

i had the sam issue

i've modified the following function and now it works

function _taxonomy_browser_get_tid_list($tids = NULL, $include_children = FALSE) {
static $tid_list;

if (isset($tids) && is_array($tids)) {
$tid_list = array();
foreach ($tids as $key => $tid) {
if (!empty($tid)) {
if (is_array($tid)) {
foreach ($tid as $key2 => $tid2) {
if (!empty($tid2)) {
----------------------------------TEXT MODIFIED BEGIN----------------------------------------------------------
if (is_array($tid2)) {
foreach ($tid2 as $key3 => $tid3) {
if (!empty($tid3)) {
$tid_list[$tid3] = $tid3;
}
}
} else {$tid_list[$tid2] = $tid2;}
-----------------------------------TEXT MODIFIED END ---------------------------------------------------------
}
}
}
else {
$tid_list[$tid] = $tid;
}
} /* end !empty */
} /* end foreach */
}

if ($include_children) {
foreach ($tid_list as $tid) {
_taxonomy_browser_get_kids($tid_list, $tid);
}
}

return $tid_list;
}

 
 

Drupal is a registered trademark of Dries Buytaert.