Hi everyone,
today I've upgraded my site from 7.20 to 7.21. Before upgrade process SHS was working properly. However, even it's not displayed (both in node creation and exposed view) and populated.

Any ideas?

P.S: The term "Konut" on the screenshots means "Location" and is a taxonomoy term.

Members fund testing for the Drupal project. Drupal Association Learn more


stBorchert’s picture

Are there any errors (javascript, php-error, watchdog)?
Did you try clearing the cache?

stBorchert’s picture

One additionlal question: do you have clean-urls activated?

Fatih Omruuzun’s picture

Assigned: Unassigned » Fatih Omruuzun
Status: Postponed (maintainer needs more info) » Active

Yes clean-urls are enabled, and I tested after clearing the cache. There is no js or php error except following;

Notice: shs_form_taxonomy_overview_terms_submit() (/home/content/81/10495781/html/mysite/sites/all/modules/shs/shs.module dosyasının 705 satırı) içinde Undefined index: #vocabulary.
Notice: shs_form_taxonomy_overview_terms_submit() (/home/content/81/10495781/html/mysite/sites/all/modules/shs/shs.module dosyasının 705 satırı) içinde Trying to get property of non-object.

(The error message received when I tried to sort taxonomy terms alphabetically)

stBorchert’s picture

Assigned: Fatih Omruuzun » Unassigned
Status: Active » Postponed (maintainer needs more info)

Could you provide some more information about your configuration? For example javascript-related modules, settings, etc. ...

Fatih Omruuzun’s picture

Assigned: Fatih Omruuzun » Unassigned
Status: Active » Postponed (maintainer needs more info)

Here is the list of my configuration;
Drupal 7.21 running on Godaddy Apache sharing hosting,
CSS and JS compression is not enabled,
Colorbox and JQuery are enabled for picture gallery

that's all...

stBorchert’s picture

Do you see the element in the field configuration?

Fatih Omruuzun’s picture

Doy you mean SHS as the field widget? Yes, I see... However, it is not displayed while creating a new node.

stBorchert’s picture

I mean in the field configuration of the node type (admin/structure/types/...).

Fatih Omruuzun’s picture

15.06 KB

Yes, it exists on the configuration page;

BouM’s picture

I have the same issue with no JS and PHP errors

stBorchert’s picture

I have the same issue with no JS and PHP errors

A man walks into a service station, says "My car makes some strange noise. Please fix this." and leaves without telling what kind of noise he meant, what type of car he has and even without showing the car to the mechanics.

Please provide as much information as possible to help me reproduce this problem!

Yes, it exists on the configuration page;

I guess this is the widget type selection (if you make screenshots, please switch the page language to english first, to help me understanding the contents).
I meant the field configuration itself where you can enter the field label, make the field required and select a default value. If the widget is visible there, there must be a problem with one of the other fields used in this content type.

Did you try creating a new content type with a widget of type "Simple hierarchical select" only?

surtr’s picture

157.81 KB
169.11 KB

I believe I am experiencing the same thing. I'm a Drupal novice, so please guide me if I'm not providing all of the information you need.

Here's exactly what I did and what I'm seeing:
1. Set up a new taxonomy called "cars" with the following terms:

    - nissan
        - sentra (relationships/parent term=nissan)
            - 1992 (relationships/parent term=sentra)
            - 1993 (relationships/parent term=sentra)
    - toyota
        - corolla (relationships/parent term=toyota)
            - 1980 (relationships/parent term=corolla)

2. Added a "term reference" field named "car" to the article content type using widget type "Simple hierarchical select".
3. Select "edit" for the new "car" field and note that the default value section does not have the dropdowns that it used to (see first screenshot attached)
4. On adding new content of type "article", the "car" field also shows up empty without the select boxes that used to show up with simple hierarchical select. (see second screenshot attached).

My environment is:
- wamp server 2.2 on windows 7
- drupal 7.20
- Simple Hierarchical Select 7.x-1.6


BouM’s picture

I have the same issue with no JS and PHP errors

A man walks into a service station, says "My car makes some strange noise. Please fix this." and leaves without telling what kind of noise he meant, what type of car he has and even without showing the car to the mechanics.

If you like car's metaphore:
I'll say it's more like I can't open my windows after the maintenance :-).

Anyway, I just wanted to point the issue and take the time to write a better explanation.

So, I worked on upgrade to Drupal 6 to Drupal 7 and figured out that the better way to have hierarchical select in views is to use your module.
So I reconfigure my field and views to use SHS instead of HS and it worked perfectly when I was on Drupal 7.19. then i upgraded to 7.21 and it didn't work anymore. The "Default value" in the field setting and the exposed filter are empty

I checked for JS errors since I use Jquery update (1.7 version) but nothing.
I checked for PHP errors in my log but nothing regarding SHS.

I'll look at the changelog for Drupal 7.20 to see if I can find something

surtr’s picture

So I re-installed my entire drupal stack with all the same versions of everything including drupal 7.21 and shs 7.x-1.6 and the issue is gone. Not sure what the story is here; I still have one local setup that exhibits this behavior. Devs, let me know if there's anything I can harvest for you from that installation. I'll keep it around for a little while.

Geldora’s picture

the same issue here.

Not sure, when exactly it stopped to work - after upgrade of Drupal, or of SHS itself. Still, the same state as on screenshot of first post - well, in fact there is NO shs-working field at all. On the field level everything is fine.

I have the following error: page not found js/shs/json

I've installed js module and cleared cache - did not worked.

jibize’s picture

Hummm I had the exact same error "NetworkError: 404 Not Found - http://dev.cd.v3.loc/js/shs/json". No fields were displayed.

The latest dev fixed the issue at first: the fields were displayed, but now I can't create/save any new terms: I get the "NetworkError: 404 Not Found - http://dev.cd.v3.loc/js/shs/json" in the console when the save button/link is clicked.

jibize’s picture

Version: 7.x-1.6 » 7.x-1.x-dev
Status: Postponed (maintainer needs more info) » Needs review
422 bytes

OK looking at the commit #8c89ca1 Fix error in SHS on sites with no clean urls., the problem was because only one out of the 2 Drupal.settings.basePath has been changed to ?q=js/shs/json. I'm not sure this is only for sites with no clean urls, as I do have clean urls enabled but maybe this is because I'm on an nginx box... Anyway patch attached.

drupalion’s picture

Hi. I have a same problem. I used this module like #12. And when i console in firebug i see it

POST http://www.mysite/js/shs/json    500 Internal Server Error    469ms		

I apply patch #17 but didn't work SHS.
I use nginx on plesk 11

jibize’s picture


This patch is against the dev branch that already had a partial fix for this issue, could you confirm that you are using dev? Also don't forget to clear you cache..

drupalion’s picture

Thanks. Fix with latest shs-dev

drakelam’s picture

Its not working for me.. im using dev version + drupal 7.21

Having around 8 term reference field.. some loaded.. some not..

Failed to load resource: the server responded with a status of 500 (Internal Server Error) http://example.com?q=js/shs/json

stBorchert’s picture

Status: Needs review » Reviewed & tested by the community

Sorry for the late response but I have been off for a while.

To summarize: it seems the main problem has been an old commit with that I tried to fix a problem with non-clean URLs. The current development version includes the fix from jibize (sorry, I didn't mention you in the commit :( ) so the error should be gone now.
Could all of you download the latest development version and test if its working now?

stBorchert’s picture

Status: Reviewed & tested by the community » Fixed

Well, I guess this is fixed now. The main error I see here was "page not found: js/shs/json" which is fixed now. We tested the update on an old site (<7.20) and got no further errors.

Feel free to reopen the issue if the error still exists for you with the latest development version.

jibize’s picture

Category: support » bug
Status: Fixed » Active

No worries for the commit... ;-)

Sorry to reopen this but it looks like the changes didn't make it to 7.x-1.6, as

url: Drupal.settings.basePath + 'js/shs/json',

is back to the latest stable release. As mentioned in the previous post it looks like this break the widget on nginx box, Reverting it back to

url: Drupal.settings.basePath + '?q=js/shs/json',

Fixed the problem...

stBorchert’s picture

Status: Active » Fixed

This is fixed in the latest development version and cannot be fixed in version 7.x-1.6 since 7.x-1.6 was released in March and this error has been fixed after that.

jibize’s picture


Ouhaaa I guess I need to leave my computer alone and get some sleep now!! Sorry about this...

Of course everything is working fine now, thank you!

Status: Fixed » Closed (fixed)

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

kalilo’s picture

I have spent half a day trying to fix this( drupal 7.22), thought it was my fault, finally the dev version fixed my problem. please add a notice about this issue if possible, as many users may have the same problem.
Thanks for the developer, this module saved me.

TanvirAhmad’s picture

Issue summary: View changes

Wasnt able to see it populate in the form .... but https://drupal.org/comment/7408178#comment-7408178 fixed this for me.


imperator_99’s picture

I don't know why, but two years later #25 fixed the same issue in Drupal 7.39.


zorax’s picture

I have same problem, it looks for non clean url :
POST http://www.justtosay.fr/?q=js/shs/json 404 (Not Found)
{"response":{"code":404,"message":"Not Found"},"title":"Not Found","messages":{"error":["The requested URL \u0022\/shs\/json\u0022 could not be found."]}}
I have drupal 7.39 with clean url
shs 7.x-1.x-dev
JavaScript callback handler 7.2 beta1
add this at the beginning of the .htaccess

# Rewrite JavaScript callback URLs of the form js.php?q=x.
RewriteCond %{REQUEST_URI} ^\/([a-z]{2}\/)?js\/.*
RewriteRule ^(.*)$ js.php?q=$1 [L,QSA]
RewriteCond %{QUERY_STRING} (^|&)q=((\/)?[a-z]{2})?(\/)?js\/.*
RewriteRule .* js.php [L]

any ideas??

m.attar’s picture

In my side I recieved a response 404 from server, So i added a patch that solved this problem