Views Exposed filter in block + hs_taxonomy_views results in fatal error on clone_view()
keyo - August 31, 2009 - 02:01
| Project: | Hierarchical Select |
| Version: | 6.x-3.x-dev |
| Component: | Code - Taxonomy Views |
| Category: | task |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | active |
Jump to:
Description
I have several hierarchical select widgets exposed in a views filter block. This breaks my whole site with the following error.
[code]Fatal error: Call to a member function clone_view() on a non-object in /home/businesspoint/www/sites/all/modules/hierarchical_select/modules/hs_taxonomy_views.module on line 429[/code]
The only way I could fix my site was to use drush to disable hs_taxonomy_views.
Anyone know what might be causing this?

#1
I have exact same problem, anyone can help....
#2
I get this error when I set Exposed form in block in Views. It works fine if the exposed form is part of the view.
#3
I've been trying to fix this problem.
The problem is that the views object is the current view (views_get_current_view() function).
But when the Exposed form is in a block, there is no current view as the block is seperate from the views page.
If somehow we can get the view object that is linked to this block into hs_taxonomy_views_hierarchical_select_entity_count($item, $params).
I've tried passing it in with $params, but the $params used here is not set in the hs_taxonomy_views.module.
I'm sure there is a way, I'm just missing it.
#4
I didn't find it, hopefully you can :)
See http://drupal.org/node/342991#comment-1894652, point 1.
#5