I uploaded the module, activated it, and set a vocabulary Block to the right sidebar, but nothing happened. I also tried other locations, content, left sidebar, etc, but still, nothing happens. My pages still all look the same and their is no option to refine/browse.

My site really needs a module like "taxonomy browser" but it doesn't work on 5.1. I was hoping Refine by Taxonomy would be suitable replacement.

Comments

Cy Slowdown’s picture

Here the same... a pity...
Is there something wrong, or we do something wrong?

modul’s picture

Same here. Doesn't seem to be doing anything. The block(s), although installed, don't show up, not even the block header. The only result I get is an unpredictable warning: "warning: Invalid argument supplied for foreach() in /www/drupal/sites/all/modules/refine_by_taxo/refine_by_taxo.module on line 126."

Which is slightly disappointing...

Ludo (Drupal 5.1)

AglocoCommunity’s picture

I got this to work in 5.1. After activation you need to click on a term. Then a menu will show up listing other terms that have a node with your selected term.

GiorgosK’s picture

I had the same problem but I was using an installation that had lots of contributed modules

did a clean install and refine by ... works as intended

(using views, cck, thickbox, tinymce, imce ... many other modules)

remember before a refine block appears you have to have selected to "view" a taxonomy term AND there most be a possible refinement in the nodes displayed (take a look at the example in the description of the module)

If you still have trouble after a clean install, please report back with a bug report which should ideally include
drupal version
enabled modules used and versions
and a way to reproduce the error if possible
server configuration if you think its relevant (Apache, MS, Linux, shared server ...)
browsers used if its relevant (in this case its probably not)

micheleannj’s picture

I was having the same trouble and then I switched to a default skin and it worked for me. The issue seems to be that you have to be on a term page like /taxonomy/term/1796%2C1777 -- I'm using template overrides, views, and path aliases to produce urls like /tags/tagname and it's not showing up there.

I'm more than happy to start trying to hack the code to make it more generally usable -- it's an excellent idea that I'm sure lots of folks would love to take advantage of. It just needs to be a little more robust to deal with all the flexibility that Drupal gives us...

Anyone get anywhere with this or have any other ideas on how to proceed?

cgjohnson’s picture

i'm having the same problem -- using the very latest (march 5) version and I see nothing when I go to a term page. I've enabled the blocks and configured them.
Drupal 5.2
Views, Panels, etc.

don@robertson.net.nz’s picture

I have just downloaded the latest March 5 version and will try it.

I am having a problem with the 5.x-1.x-dev version I have installed. Users do not see the Refine by taxonomy block unless they have been given Administer Taxonomy rights.

I also get the following error logged several time each time a page gets loaded:

user warning: Unknown column 'n.nid' in 'on clause' query: SELECT DISTINCT tn.tid FROM term_node tn INNER JOIN term_data td ON td.tid = tn.tid INNER JOIN node_access na ON na.nid = n.nid WHERE (na.grant_view >= 1 AND ((na.gid = 0 AND na.realm = 'all') OR (na.gid = 2 AND na.realm = 'term_access') OR (na.gid = 3 AND na.realm = 'term_access'))) AND ( (tn.nid IN (30,29,28)) AND (td.vid = 5) AND NOT (tn.tid IN (38) )) in /home/don/public_html/www/includes/database.mysql.inc on line 172.

I am also using pathauto and token modules to generate /vocab/term/title like paths.

ethanre’s picture

Subscribing. This is a very useful module but i can't use it. I get this error:

warning: Invalid argument supplied for foreach() in /srv/www/htdocs/modules/refine_by_taxo/refine_by_taxo.module on line 126.

I am using pathauto, and many other modules. I'm using the garland theme.

zirvap’s picture

warning: Invalid argument supplied for foreach() in /path_to_my_test_site/sites/all/modules/refine_by_taxo/refine_by_taxo.module on line 126.

I see this error message if I choose any of these options on the block settings page:

  • Refine by AND, interconnected through 'related'
  • Refine by AND, interconnected through hierarchy
  • Refine by AND, interconnected through 'related'
  • Refine by AND, interconnected through hierarchy

The blocks I've configured this way don't show up. If I choose this option for several blocks, the error message appears several times, once for each block.

The module works fine if I choose one of these:

  • Refine by AND, interconnected through nodes
  • Refine by OR, interconnected through nodes

I have tried several kinds of vocabularies, the problem appears for all of them:

  • Hierarchical, two levels, single parent, 5000 terms
  • Flat, 2 terms
  • Free tagging, about 20 terms

Config:
Drupal 5.7
PHP 5.2.0-8+etch10
MySQL 5.0.32
Apache/2.2.3 (Debian) mod_lisp2/1.3.1 PHP/5.2.0-8+etch10 mod_ssl/2.2.3 OpenSSL/0.9.8c

Active contrib modules:
EasyLists, OpenID, Refine by taxonomy, Suggested Term, Update Status, CCK Content, CCK ImageField, CCK Link, CCK Number, CCK Text, Hierarchical Select, JQuery Interface Library, JQuery Update, Tagadelic Views, Views, Views RSS, Views UI

I'm not using pathauto, not using token, and the taxonomy URLs are the default ones (taxonomy/term/number). However, I did use Views to change the default taxonomy view (only changing sort order).

Active core modules:
Color, Comment, Contact, Help, Locale, Menu, Path, Profile, Statistics, Taxonomy, Tracker

After reading comment #4, I tried changing to Garland (from Zen), the problem is still there.

I'm not sure when I'll get the time to try to reproduce this on a clean install, so I'm posting these details in case someone else is looking at it. It would be useful if others with the same problem could post a complete list of modules used, that'll make it easier to guess where to start. (For that matter, it might be useful if people who don't have problems post if they use any of the modules on my list.) The only common factor so far seems to be Views.

For people who can't get this module to work: http://drupal.org/project/faceted_search provides a somewhat similar functionality, but note the warning in the README-file that it's database intensive. Also, with that module you can't (currently) choose more than one term in each vocabulary.

Added
I took a look at the code. Line 126 is the one starting with "foreach" below.

  $content = '';
  foreach ($terms as $term) {
    // BAH Drupal encodes the paths, what a crap.
    // $items[] = l($term->name, refine_by_taxo_build_url($term->tid, $op));
    $items[] = '<a href="'. refine_by_taxo_build_url($term->tid, $op) .'">'. check_plain($term->name) .'</a>';
  }

Added next day
I tried deactivating all modules (contrib and core) except taxonomy and refine by taxo. Same problem. Time to try with clean install, I guess.

zirvap’s picture

Title: having trouble using this module » warning: Invalid argument supplied for foreach() in /path_to_my_test_site/sites/all/modules/refine_by_taxo/refine_by_taxo.module
Category: support » bug

Same problem on clean install.

  1. Installed Drupal
  2. Installed Refine by taxonomy
  3. Created two vocabularies: One flat, one hierarchical, with a handful of terms
  4. Created a few stories with taxonomy
  5. Activated the module and the "refine by"-blocks
  6. Tested, "refine by" worked fine
  7. Changed the block settings of the hierarchical vocab to "Refine by AND, interconnected through hierarchy". Result: Same problem as described in my previous comment

I've posted my config in the previous comment. Is there any more useful information I can provide?

Bèr Kessels’s picture

Priority: Normal » Critical
Bèr Kessels’s picture

Status: Active » Closed (duplicate)
cgjohnson’s picture

I have same problem on 5.1 -- doesn't appear, doesn't work. Great concept, so this is too bad. Any updates?

If there's some way to get a sidebar block to show the topics a node is tagged, that would be great. Anyone?

thanks!

mattrweaver’s picture

Glad I found your post. This resolved it for me. This had been working and suddenly didn't: I forgot that I had changed these settings.