The field module is not being included, but should be.
Here’s a fix:

--- shs.module
+++ Current File
@@ -34,7 +34,7 @@
       'access callback' => 'user_access',
       'access arguments' => array('access content'),
       'includes' => array('path'),
-      'dependencies' => array('taxonomy'),
+      'dependencies' => array('taxonomy','field'),
     ),
   );
 }
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

4fs’s picture

Surely this is an easy commit and should be included in dev at least? Without this the integration with High-performance JavaScript callback handler is actually broken and renders shs not to work. This seems rather critical?

bialy12’s picture

I would like to ask for some help. I am using SHS with the patch that you provided (Thank you for that) but i am having issues with i18n translation of taxonomy terms while using High-performance JavaScript callback handler with SHS on Views exposed filters. The site is bilingual. Funny thing is that when i turn off High-performance JavaScript callback handler everything works great. Maybe solution is quite simple but i am a newbie to Drupal and would appreciate any help. Thank you in advance

Stasko2’s picture

I'm having the same problem - shs doesn't work as Views Exposed Filter when JS Callback Handler is enabled. Would appreciate any help in this.

rooby’s picture

Priority: Normal » Major
Status: Active » Needs review
FileSize
386 bytes

Here is a patch of the above change.

Fixes the issue for me but I know nothing about the js module or the shs module so have not done technical review.

rozh’s picture

Thank you for the patch.
It works now.

Alex Bukach’s picture

Status: Needs review » Reviewed & tested by the community

Patch from #4 works for me too.

ar-jan’s picture

Thanks @igorski for spotting this (and @rooby for the patch).

I can confirm the patch in #4 fixes the problem, +1 RTBC.

Without it the SHS widget does not appear (for both a node/edit form and views exposed filter).

joelpittet’s picture

Alex Bukach’s picture

Status: Reviewed & tested by the community » Needs review
FileSize
410 bytes

If shs uses https://www.drupal.org/project/js to load terms lists, and shs js callback is the first function that loads a term after clearing cache, term fields appear empty as a result of such load. Further loads of the same term from any module uses cached object and hence get empty fields as well. This is because of missing dependency on field_sql_storage (in addition to 'fields' dependency), which loads fields.

joelpittet’s picture

Status: Needs review » Reviewed & tested by the community

Sounds well thought out, back to RTBC for #9

  • stBorchert committed 7037fad on 7.x-1.x
    Issue #2184279 by Alex Bukach, rooby | igorski: Fixed High-performance...
stBorchert’s picture

Status: Reviewed & tested by the community » Fixed

Thanks for the patches. I've committed the patch from comment #2184279-9: High-performance JavaScript callback handler integration is broken to 7.x-1.x.

Status: Fixed » Closed (fixed)

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

GAtherton’s picture

Have encountered this problem recently while trying to get JavaScript callback handler working to boost performance of shs in a view - as soon as I update .htaccess the shs select panels disappear!

Installed the developmental version of shs (as the JavaScript callback handler project page recommends this to fix this issue) but this version of shs failed to filter when used in views! The selection term load and seem to function correctly but when selected no filtration happens!

No further forward as yet but if I can work out how to apply patches I will try the code in this discussion.