Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
The error is this:
Fatal error: views_exposed_form() [function.views-exposed-form]: The script tried to execute a method or access a property of an incomplete object. Please ensure that the class definition "views_handler_filter_node_type" of the object you are trying to operate on was loaded _before_ unserialize() gets called or provide a __autoload() function to load the class definition in /usr/share/php5/pressflow-modules/views/views.module on line 1001
I have a view with a taxonomy tid filter exposed. Config for the widget is standard, with the only modification of level's labels.
I'm using also Panels: taxonomy/term/% is overridden by panel. In a pane i put the view weith display as "content pane". In this display extra configuration, i set that the view must use the Panel path.
Via firebug i found also the path of the xhr request:
http://localhost/hs_taxonomy_views_json/Strutture/panel_pane_2
If needed, i can give all the additive info.
Comments
Comment #1
AntiNSA CreditAttribution: AntiNSA commentedis this due to pressflow? I am transferring from a shared to self managed vps server. I am trying to decide if I should use pressflow or ngnix ....I have exposed filters too....
Comment #2
Wim LeersSee the updated project page:
Comment #3
1kenthomas CreditAttribution: 1kenthomas commentedLOL.
Comment #4
markisatacomputer CreditAttribution: markisatacomputer commentedI was getting this error too.
Both content_taxonomy and hs_content_taxonomy are not installed.
HS worked fine on my form when there was one exposed filter (using HS) but when I added a second filter (without HS) any attempt to select from the HS filter dropdown returned "Received an invalid response from the server." Firebug showed the above error message. This continued even after I removed the second filter.
If I were using the api I would do something like this
$form_state['form_load_files'] = array(drupal_get_path('module', 'taxonomy') . '/views_handler_filter_vocabulary_vid.inc');
But I'm not. The solution I found was to use hook_views_pre_view like so:
Solved it for me...
Comment #5
jason.fisher CreditAttribution: jason.fisher commentedApologize for re-opening the issue.. but after experiencing this issue and re-reading the original ticket, I believe eliosh may have miscategorized the issue as Content Taxonomy Views instead of Taxonomy Views. ("I have a view with a taxonomy tid filter exposed")
This also happens for me with a Content pane View display embedded into a Panel.
The exposed HS field works fine in the View Preview, but not on the stand-alone page manager panel page.
The error I am seeing:
I followed the hook_views_pre_view example but had to watch the error log and manually add the filters applicable to my view until it worked..
Comment #6
GoldTidying up the issue queue. The 6.x version is no longer supported. Only reopen this if it also applies to the 7.x.