Closed (fixed)
Project:
Entity reference
Version:
7.x-1.x-dev
Component:
User interface
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
10 Jun 2012 at 07:14 UTC
Updated:
27 Oct 2016 at 13:48 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
moochiku commentedFound the answer in the issue que somewhere (I am unable to find it now ... I think its under 'special consideration for nginx').
As suspected .. its the webserver config, as in my case, nginx merging the double slashes. In order to remedy this problem add the following into your nginx.config under http section:
merge_slashes off;
Comment #2
thommyboy commentedwould like to re-open this issue. i've got the exact same problem. dropdown working, autocomplete does not fetch any nodes.
i'm not using nginx but lighttpd. any idea how to narrow that problem?
Comment #3
jody lynnSame issue, using Apache.
This patch forces a 0 into the path to prevent the double slash scenario.
Comment #4
damien tournoud commentedHere is an alternative suggestion. We use the term "NULL" inside the URL, as zero is actually a valid entity ID for some entities (the most important of it being users). Also, we should probably check that the user has access to the target entity before returning results.
Comment #5
jody lynnDamien's patch looks good.
Comment #6
tim.plunkettIn addition to looking good, I tested it and it definitely fixes the problem.
Comment #7
Timusan commentedI also applied this patch to the 7.x-1.x-dev branch and the autocomplete ajax returns a server 500 error.
*Beware* I'm running on PostgreSQL...and the error comes from PDO:
Apparently the NULL was not placed behind the URL, attached patch fixes this issue.
It now works fine for me :)
Comment #8
thommyboy commentedworks fine for me with patch #7
the other patch did not work- still got a // in my url the log said...
Comment #9
mattlc commentedWorked fine for me too. Tks!
Comment #10
damien tournoud commentedMerged into 7.x-1.x.
Comment #12
marcin.wosinek commentedThis issue introduced little regression - here is discussion & patches #1706664: Autocomplete fails with inline_entity_form
Comment #13
yyjamal commentedHi
I am new to Drupal. How can I apply the patch?
When I type in a field that has autocomplete, this errors is popping up.
It seems the autocomplete is sending the the right data, but the jQuery is not displaying it properly. I am not sure.
Here is what I get:
An AJAX HTTP error occurred.
HTTP Result Code: 500
Debugging information follows.
Path: https://12345.com/index.php?q=entityreference/autocomplete/single/field_...
StatusText: Internal Server Error
ResponseText: {"ELEE 2200U - Electrical Engineering Fundamentals (302)":"\u003Cdiv class=\u0022reference-autocomplete\u0022\u003EELEE 2200U - Electrical Engineering Fundamentals\u003C\/div\u003E"}