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
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

Rasti - September 1, 2009 - 10:16

I have exact same problem, anyone can help....

#2

Max_Headroom - September 9, 2009 - 10:43

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

Max_Headroom - September 10, 2009 - 17:35

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

Wim Leers - September 21, 2009 - 12:44

I didn't find it, hopefully you can :)

See http://drupal.org/node/342991#comment-1894652, point 1.

#5

Wim Leers - October 6, 2009 - 19:04
Category:bug report» task
 
 

Drupal is a registered trademark of Dries Buytaert.