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.
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.
Fatih
Comment | File | Size | Author |
---|---|---|---|
#32 | shs_response_404_1951332-32.diff | 617 bytes | m.attar |
#17 | fix_json_path-1951332-17.patch | 422 bytes | jibize |
#12 | Capture.PNG | 169.11 KB | surtr |
#12 | Capture2.PNG | 157.81 KB | surtr |
#9 | shs.png | 15.06 KB | Fatih Omruuzun |
Comments
Comment #1
stBorchertAre there any errors (javascript, php-error, watchdog)?
Did you try clearing the cache?
Comment #2
stBorchertOne additionlal question: do you have clean-urls activated?
Comment #3
Fatih Omruuzun CreditAttribution: Fatih Omruuzun commentedYes 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)
Comment #4
stBorchertCould you provide some more information about your configuration? For example javascript-related modules, settings, etc. ...
Comment #5
Fatih Omruuzun CreditAttribution: Fatih Omruuzun commentedHere 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...
Comment #6
stBorchertDo you see the element in the field configuration?
Comment #7
Fatih Omruuzun CreditAttribution: Fatih Omruuzun commentedDoy you mean SHS as the field widget? Yes, I see... However, it is not displayed while creating a new node.
Comment #8
stBorchertI mean in the field configuration of the node type (admin/structure/types/...).
Comment #9
Fatih Omruuzun CreditAttribution: Fatih Omruuzun commentedYes, it exists on the configuration page;
Comment #10
BouM CreditAttribution: BouM commentedI have the same issue with no JS and PHP errors
Comment #11
stBorchertA 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!
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?
Comment #12
surtr CreditAttribution: surtr commentedI 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:
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
-Justin
Comment #13
BouM CreditAttribution: BouM commentedIf 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
Comment #14
surtr CreditAttribution: surtr commentedSo 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.
Comment #15
Geldora CreditAttribution: Geldora commentedthe 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.
Comment #16
jibize CreditAttribution: jibize commentedHummm 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.Comment #17
jibize CreditAttribution: jibize commentedOK 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.Comment #18
drupalion CreditAttribution: drupalion commentedHi. I have a same problem. I used this module like #12. And when i console in firebug i see it
I apply patch #17 but didn't work SHS.
I use nginx on plesk 11
Comment #19
jibize CreditAttribution: jibize commentedDrupalion,
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..
Comment #20
drupalion CreditAttribution: drupalion commentedThanks. Fix with latest shs-dev
Comment #21
Tiam . CreditAttribution: Tiam . commentedIts 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
Comment #22
stBorchertHi.
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?
Comment #23
stBorchertWell, 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.
Comment #24
jibize CreditAttribution: jibize commentedNo worries for the commit... ;-)
Sorry to reopen this but it looks like the changes didn't make it to 7.x-1.6, as
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
Fixed the problem...
Comment #25
stBorchertThis 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.
Comment #26
jibize CreditAttribution: jibize commented@stBorchert,
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!
Comment #28
kalilo CreditAttribution: kalilo commentedI 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.
Comment #29
TanvirAhmad CreditAttribution: TanvirAhmad commentedWasnt able to see it populate in the form .... but https://drupal.org/comment/7408178#comment-7408178 fixed this for me.
Cheers
Comment #30
imperator_99 CreditAttribution: imperator_99 commentedI don't know why, but two years later #25 fixed the same issue in Drupal 7.39.
Cheers,
Jesse.
Comment #31
zoraxI 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
any ideas??
Comment #32
m.attar CreditAttribution: m.attar commentedIn my side I recieved a response 404 from server, So i added a patch that solved this problem
Comment #33
nick2006 CreditAttribution: nick2006 commentedHi everyone, I recieved a response 404 from server, i added a patch. Its not working for me in views exposed filter.. i'm using dev version 7.x-1.8+1-dev + drupal 7.91
Any ideas?