I've created an ajax view with a pager. It does not use the HS widget, and there is no HS widget on the page.

When I try to go to the next page, the request is successful and the response is valid, but it contains Drupal.HierarchicalSelect.ajaxViewPagerSettingsUpdate as a callback. When the HS widget isn't on the screen, this script isn't loaded and this is a fatal error. In my case, the view doesn't get updated.

CommentFileSizeAuthor
#2 hs_ajax_views-911486-2.patch1019 bytesAnonymous (not verified)
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

Anonymous’s picture

Anonymous’s picture

Status: Active » Needs review
FileSize
1019 bytes

This patch checks for that settings exist before adding the callback. I don't know if this is a suitable fix, but it gets me past this blocker for now.

hefox’s picture

Fixes my problem also, but not really using it so cannot tell further

benkewell’s picture

Patch in #2 fixed the issue on my website too.
I believe this patch should be committed to release as soon as possible as it makes all AJAX enabled views fail to load content.

Mr Richards’s picture

Confirming that #2 worked for me on version 1.194.

I have not learned how to install a patch yet, but in 'sites/all/modules/hierarchical_select/hierarchical_select.module' I added the If statement:

if (!empty($views_ajax_form_js_settings)) {

and it worked like a charm. Thanks for the help!

Wim Leers’s picture

Status: Needs review » Fixed
carsonblack’s picture

I was experiencing the issue when I was using ajax in a view. It would fire the error Drupal.HierarchicalSelect javascript error when I would use an exposed filter or when sorting a table. The patch in #2 fixed this issue for me.

wjaspers’s picture

Still doesn't totally resolve the issue. Maybe it fixes the "Views" error; but Panels still crashes.

Regardless if I try to use a Dropdown with the hierarchy in it, or if I try to use Hierarchical select, the panel starts processing and then burps up its ajax call.

[ { "command": "settings", "argument": { "basePath": "/", "admin_menu": { "margin_top": 1 }, "fivestar": { "titleUser": "Your rating: ", "titleAverage": "Average: ", "feedbackSavingVote": "Saving your vote...", "feedbackVoteSaved": "Your vote has been saved.", "feedbackDeletingVote": "Deleting your vote...", "feedbackVoteDeleted": "Your vote has been deleted." } } }, { "command": "css_files", "argument": [ { "file": "/sites/all/modules/uc_cano/uc_cano.css?Y", "media": "all" }, { "file": "/modules/acquia/admin_menu/admin_menu.css?Y", "media": "all" }, { "file": "/modules/acquia/cck/theme/content-module.css?Y", "media": "all" }, { "file": "/modules/acquia/date/date.css?Y", "media": "all" }, { "file": "/modules/acquia/date/date_popup/themes/datepicker.css?Y", "media": "all" }, { "file": "/modules/acquia/date/date_popup/themes/timeentry.css?Y", "media": "all" }, { "file": "/modules/acquia/filefield/filefield.css?Y", "media": "all" }, { "file": "/modules/acquia/fivestar/css/fivestar.css?Y", "media": "all" }, { "file": "/modules/acquia/fivestar/widgets/oxygen/oxygen.css?Y", "media": "all" }, { "file": "/modules/acquia/img_assist/img_assist.css?Y", "media": "all" }, { "file": "/modules/aggregator/aggregator.css?Y", "media": "all" }, { "file": "/modules/book/book.css?Y", "media": "all" }, { "file": "/modules/node/node.css?Y", "media": "all" }, { "file": "/modules/system/defaults.css?Y", "media": "all" }, { "file": "/modules/system/system.css?Y", "media": "all" }, { "file": "/modules/system/system-menus.css?Y", "media": "all" }, { "file": "/modules/user/user.css?Y", "media": "all" }, { "file": "/sites/all/modules/ctools/css/ctools.css?Y", "media": "all" }, { "file": "/sites/all/modules/nd/css/nd_regions.css?Y", "media": "all" }, { "file": "/sites/all/modules/panels/css/panels.css?Y", "media": "all" }, { "file": "/sites/all/modules/ubercart/uc_attribute/uc_attribute.css?Y", "media": "all" }, { "file": "/sites/all/modules/ubercart/uc_order/uc_order.css?Y", "media": "all" }, { "file": "/sites/all/modules/ubercart/uc_product/uc_product.css?Y", "media": "all" }, { "file": "/sites/all/modules/ubercart/uc_roles/uc_roles.css?Y", "media": "all" }, { "file": "/sites/all/modules/ubercart/uc_store/uc_store.css?Y", "media": "all" }, { "file": "/modules/acquia/calendar/calendar.css?Y", "media": "all" }, { "file": "/misc/farbtastic/farbtastic.css?Y", "media": "all" }, { "file": "/modules/acquia/cck/modules/fieldgroup/fieldgroup.css?Y", "media": "all" }, { "file": "/modules/acquia/views/css/views.css?Y", "media": "all" }, { "file": "/sites/all/modules/vd/css/vd_regions.css?Y", "media": "all" }, { "file": "/sites/all/modules/hierarchical_select/hierarchical_select.css?Y", "media": "all" }, { "file": "/sites/all/modules/ctools/css/dropdown.css?Y", "media": "all" } ] }, { "command": "scripts", "argument": [ "/misc/jquery.js?Y", "/misc/drupal.js?Y", "/sites/all/modules/uc_cano/uc_cano.js?Y", "/modules/acquia/admin_menu/admin_menu.js?Y", "/modules/acquia/fivestar/js/fivestar.js?Y", "/modules/acquia/img_assist/img_assist.js?Y", "/sites/all/modules/panels/js/panels.js?Y", "/sites/all/modules/ubercart/uc_roles/uc_roles.js?Y", "/misc/collapse.js?Y", "/misc/tableheader.js?Y", "/sites/all/modules/hierarchical_select/hierarchical_select.js?Y", "/sites/all/modules/hierarchical_select/hierarchical_select_formtoarray.js?Y", "/modules/acquia/jquery_ui/jquery.ui/ui/minified/ui.core.min.js?Y", "/modules/acquia/jquery_ui/jquery.ui/ui/minified/effects.core.min.js?Y", "/modules/acquia/jquery_ui/jquery.ui/ui/minified/effects.drop.min.js?Y", "/sites/all/modules/hierarchical_select/includes/views.js?Y", "/modules/acquia/views/js/base.js?Y", "/modules/acquia/views/js/dependent.js?Y", "/sites/all/modules/ctools/js/dropdown.js?Y" ] }, { "command": "append", "selector": "#panel-pane-results", "data": "\x3cdiv class=\"panel-pane\" id=\"panel-pane-new-1\"\x3e\x3cdiv class=\"grabber\"\x3e\x3cspan class=\"buttons\"\x3e\x3cdiv class=\"ctools-dropdown-no-js ctools-dropdown\" id=\"ctools-dropdown-1\"\x3e\x3cdiv class=\"ctools-dropdown-link-wrapper\"\x3e\x3ca href=\"#\" class=\"ctools-dropdown-link ctools-dropdown-image-link\"\x3e\x3cimg src=\"/sites/all/modules/panels/images/icon-configure.png\" alt=\"\" title=\"\" width=\"16\" height=\"16\" /\x3e\x3c/a\x3e\x3c/div\x3e\x3cdiv class=\"ctools-dropdown-container-wrapper\"\x3e\x3cdiv class=\"ctools-dropdown-container\"\x3e\x3cul class=\"links\"\x3e\x3cli class=\"0 first\"\x3e\x3ca href=\"/panels/ajax/editor/hide/10/new-1\" class=\"ctools-use-ajax\"\x3eDisable this pane\x3c/a\x3e\x3c/li\x3e\n\x3cli class=\"panels-set-title\"\x3e\x3ca href=\"/panels/ajax/editor/panel-title/10/new-1\" class=\"ctools-use-ajax\"\x3ePanel title\x3c/a\x3e\x3c/li\x3e\n\x3cli class=\"1\"\x3e\x3ca href=\"/panels/ajax/editor/edit-pane/10/new-1\" class=\"ctools-use-modal\"\x3eSettings\x3c/a\x3e\x3c/li\x3e\n\x3cli class=\"2\"\x3e\x3ca href=\"/panels/ajax/editor/pane-css/10/new-1\" class=\"ctools-use-modal\"\x3eCSS properties\x3c/a\x3e\x3c/li\x3e\n\x3cli class=\"3\"\x3e\x3cspan\x3e\x3chr /\x3e\x3c/span\x3e\x3c/li\x3e\n\x3cli class=\"4\"\x3e\x3cspan class=\"panels-sub-menu\"\x3e\x3cspan class=\"dropdown-header\"\x3eStyle\x3c/span\x3e\x3cul class=\"links\"\x3e\x3cli class=\"0 first\"\x3e\x3cspan class=\"panels-text\"\x3eNo style\x3c/span\x3e\x3c/li\x3e\n\x3cli class=\"1 last\"\x3e\x3ca href=\"/panels/ajax/editor/style-type/10/pane/new-1\" class=\"ctools-use-modal\"\x3eChange\x3c/a\x3e\x3c/li\x3e\n\x3c/ul\x3e\x3c/span\x3e\x3c/li\x3e\n\x3cli class=\"5\"\x3e\x3cspan\x3e\x3chr /\x3e\x3c/span\x3e\x3c/li\x3e\n\x3cli class=\"6\"\x3e\x3cspan class=\"panels-sub-menu\"\x3e\x3cspan class=\"dropdown-header\"\x3eVisibility rules\x3c/span\x3e\x3cul class=\"links\"\x3e\x3cli class=\"0 first\"\x3e\x3cspan class=\"panels-text\"\x3eNo rules\x3c/span\x3e\x3c/li\x3e\n\x3cli class=\"1\"\x3e\x3ca href=\"/panels/ajax/editor/access-add-test/10/new-1\" class=\"ctools-use-modal\"\x3eAdd new rule\x3c/a\x3e\x3c/li\x3e\n\x3cli class=\"2 last\"\x3e\x3ca href=\"/panels/ajax/editor/access-settings/10/new-1\" class=\"ctools-use-modal\"\x3eSettings\x3c/a\x3e\x3c/li\x3e\n\x3c/ul\x3e\x3c/span\x3e\x3c/li\x3e\n\x3cli class=\"7\"\x3e\x3cspan\x3e\x3chr /\x3e\x3c/span\x3e\x3c/li\x3e\n\x3cli class=\"8\"\x3e\x3cspan class=\"panels-sub-menu\"\x3e\x3cspan class=\"dropdown-header\"\x3eCaching\x3c/span\x3e\x3cul class=\"links\"\x3e\x3cli class=\"0 first\"\x3e\x3cspan class=\"panels-text\"\x3eNo caching\x3c/span\x3e\x3c/li\x3e\n\x3cli class=\"1 last\"\x3e\x3ca href=\"/panels/ajax/editor/cache-method/10/new-1\" class=\"ctools-use-modal\"\x3eChange\x3c/a\x3e\x3c/li\x3e\n\x3c/ul\x3e\x3c/span\x3e\x3c/li\x3e\n\x3cli class=\"9\"\x3e\x3cspan\x3e\x3chr /\x3e\x3c/span\x3e\x3c/li\x3e\n\x3cli class=\"10 last\"\x3e\x3ca href=\"/%2523\" class=\"pane-delete\" id=\"pane-delete-panel-pane-new-1\"\x3eRemove\x3c/a\x3e\x3c/li\x3e\n\x3c/ul\x3e\x3c/div\x3e\x3c/div\x3e\x3c/div\x3e\x3c/span\x3e\x3cspan class=\"text\"\x3eProducts by Filters\x3c/span\x3e\x3c/div\x3e\x3cdiv class=\"panel-pane-collapsible\"\x3e\x3cdiv class=\"pane-title\"\x3eDisplays products based on whatever filter data you desire!\x3c/div\x3e\x3cdiv class=\"pane-content\"\x3e\x3c/div\x3e\x3c/div\x3e\x3c/div\x3e" }, { "command": "changed", "selector": "#panel-pane-new-1", "star": "div.grabber span.text" }, { "command": "modal_dismiss" } ]
hefox’s picture

Status: Fixed » Active

(If something is still buggy, it's appropriate to re-open it).

Wim Leers’s picture

Status: Active » Closed (fixed)

Closing because nobody seems to confirming this issue. Hence I assume it was an isolated problem.

gunzip’s picture

Status: Closed (fixed) » Active

same here. hs 6.x-3.6 + views exposed filter (hs taxonomy filter) + ajax pager + panel does not work after changing page.
it looks like it does not re-attach behaviours. to reproduce

1. put a view in a panel
2. activate ajax pager
3. set up an exposed filter that uses hs (ie. taxonomy with depth > 1)
4. visit the panel and go to page 2
5. try to use hs in the filter again

kenorb’s picture

Issue summary: View changes
Status: Active » Closed (fixed)
stefan.r’s picture

Status: Closed (fixed) » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.