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.
An AJAX HTTP error occurred.
HTTP Result Code: 200
Debugging information follows.
Path: http://www.r-collectie.ugent.be/views/autocomplete
StatusText: OK
ResponseText: {"all_researchers_overview":"All-researchers-overview","free_storage_locations_biomat":"Free storage locations biomat","free_storage_locations_dna":"Free storage locations DNA","free_storage_locations_isolate":"Free storage locations isolate","free_storage_locations_primer":"Free storage locations primer","entityreference_view_widget_sample":"Entiy Reference View Widget Sample View"} Page execution time was 401.87 ms. Memory used at: devel_boot()=3.32 MB, devel_shutdown()=41.01 MB, PHP peak=41.25 MB.
http://www.r-collectie.ugent.be/views/autocomplete
gives empty page with []
So i think its because there are no custom JSON views yet.
But the nodes_autocomplete option does work so there is already at leased 1 valid JSON view
So there is something wrong here.
Comment | File | Size | Author |
---|---|---|---|
#14 | http200-error-02.png | 170.53 KB | mjrodriguez |
#14 | http200-error-01.png | 205.53 KB | mjrodriguez |
#7 | jquery_update.png | 17.96 KB | Dom. |
#7 | works_properly.png | 3.86 KB | Dom. |
#6 | Schermafdruk van 2015-05-06 09:35:33.png | 349.29 KB | ikeigenwijs |
Comments
Comment #1
Dom. CreditAttribution: Dom. commentedHi !
http://www.r-collectie.ugent.be/views/autocomplete is a custom view you created yourself, it does not sound like one of the default view of this module. This views has to use the JSON Autocomplete output style and configure properly its settings. Can you confirm you did, and if yes, screenshot this ?
Comment #2
ikeigenwijs CreditAttribution: ikeigenwijs commentedI added an extra view with display of the type JSON
The auto complete still fails and gives different AJAX errors.
Important to know its an Entity reference field.
Comment #3
Dom. CreditAttribution: Dom. commentedPlease see comment #1 for expected details. Alternatively, you can export me your view.
Comment #4
ikeigenwijs CreditAttribution: ikeigenwijs commentedI did not see your comment, i did not refresh until now.
So as answer to #1:
I did not make or configure a view that uses the http://www.r-collectie.ugent.be/views/autocomplete url
That came there from its own accord after installing this module
when i Start typing in the Use an existing view auto complete field on the settings page of the
admin/config/search/search_autocomplete/32/configure page
i directly get the AJAX error mentioned in #3
And there in responseText i see a list of view names
The exported view in attachment
the json display is not the first display of the view, maybe that is a problem?
Comment #5
Dom. CreditAttribution: Dom. commentedDo you eventually use jquery update mod ule ? I have not been able to reproduce your issue yet.
Can you fully uninstall the module and reinstall it ?
Comment #6
ikeigenwijs CreditAttribution: ikeigenwijs commentedWe do use Jquery update module.
with jquery version 1.10 configured.
I re installed with devel
Reconfigured a text field to auto search
Same issue and again the strange autocomplete url
2 consecutive errors
I made a screenshot of eatch.
Is there anything i can do to help debug?
Comment #7
Dom. CreditAttribution: Dom. commentedHi !
I'm sorry, still unable to reproduce with jQuery 1.10.
Comment #8
ikeigenwijs CreditAttribution: ikeigenwijs commentedhmm, i could create an account and give you access to the site if that would help.
there is a large module list.
There are no messages in watchdog
Comment #9
ikeigenwijs CreditAttribution: ikeigenwijs commented@ Dom any ideas what else it could be or how i could debug.
i have profiler and xdebug on localhost
Comment #10
dakku CreditAttribution: dakku as a volunteer commentedI was having the same issue last night. Switched back to 7.x-4.2 until i can debug and fix the issue.
Comment #11
Dom. CreditAttribution: Dom. commentedHave you tried 4.6 ?
Comment #12
dakku CreditAttribution: dakku as a volunteer commentedIt was an issue when i had devel enabled. Turned devel off and we are good. no issue with module :)
seems like ikeigenwijs also has devel enabled. This is what he posed above
Comment #13
Dom. CreditAttribution: Dom. commentedOh... I missed that... Thanks a lot dakku !
Comment #14
mjrodriguez CreditAttribution: mjrodriguez commentedHi!
I haven't installed devel and im getting a very similar issue:
I feel it's so close to work... help?
As you can see, in the screen capture
The error in the popup window appears everytime I press a key in the autocomplete field.
What bugs me is that, if you see the code, the correct results are there...
I installed the module as is, and it's not using any custom view.
The code for the form is:
Comment #15
grahamvalue CreditAttribution: grahamvalue commentedHi,
Thanks for a great module!
Not sure if this is related.
By default, the autocomplete on the search page is configured to use the view "words_autocomplete" and the one on the search block is configured to "nodes_autocomplete".
However, both autocompletes behave exactly the same.
When the "nodes_autocomplete" view is modified, it affects both autocompletes.
Is that normal behavior?
What is the purpose of "words_autocomplete"?
Thanks again!
Comment #16
Dom. CreditAttribution: Dom. commentednodes_autocomplete is looking at node titles => you should just get nodes which title includes what you are looking for.
words_autocomplete work pretty like the search page looks for words within the content => you should get nodes containing your search within the body content.
Comment #17
grahamvalue CreditAttribution: grahamvalue commentedGot that but it doesn't seem to work that way.
Please check the previous comment.
Both forms seem to work the same regardless of having different views set.
Words within the content are ignored during searches even when the search form is set to use the words view.
The search is always by title.
Can open a new issue if this problem is unrelated to this issue.
Thanks!
Comment #18
Dom. CreditAttribution: Dom. as a volunteer and commentedI am sorry, but I cannot reproduce using the latest 4.9 version.
I have two different views nodes-autocomplete and words-autocomplete that are perfectly separated. In words view the exposed filter is "body". In nodes view, the exposed filter is "title".
I have a node which title is "test" and content "foobar".
In the search autocomplete config page, if I set the "search block" to use the nodes view. When trying to enter "tes" in the search box, I get the "test" node appear. If I input "foo" I get nothing.
Then back to configuration, I now change "search block" to use "words" view. When trying to enter "tes" in the search box, I get nothing. If I input "foo" I get "is contained in : test".
Everything looks normal to me. If the issue persist, could you please open a new issue, and indicate a clear reproduction scenario ? I guess you messed up with the views, updating the wrong ones or using custom poorly configured views... ?
Comment #19
grahamvalue CreditAttribution: grahamvalue commentedHave created a new issue with all details. Thank you! - #3010058: Words autocomplete view seems to get ignored