perusio / drupal-with-nginx

Running Drupal using nginx: an idiosyncratically crafted bleeding edge configuration.
854 stars 246 forks source link

AJAX autocomplete fix #249

Open taytayevanson opened 8 years ago

taytayevanson commented 8 years ago

I was getting an error when using entity reference autocomplete fields, as well as some errors with views ajax with the default configuration. I found this snippet online and it 100% fixed the problem! It could be some sort of other server config, I'm not an expert. This is also one of my first pull requests so I apologize if I'm out of line haha! Let me say that this config has worked extremely well and I'm grateful for all of your work. Take it for what it's worth, just a thought! I found others online with the same problem and had a hard time tracking down the right solution.

Thanks!

kkomelin commented 8 years ago

Just for reference: https://www.drupal.org/node/2599326 https://www.drupal.org/node/2749007 https://www.drupal.org/node/2554203 For some reasons, the approach implemented in this PR did not work for my environment. A temporary workaround is https://www.drupal.org/project/autocomplete_deluxe, which works fine with that hardcoded non-clean urls in Drupal 7.

taytayevanson commented 8 years ago

Interesting, I'll try autocomplete_deluxe with that turned off and see what it does. This is one of my first pull requests, sorry about that! I'm a huge fan, by the way; this config works really well.

iryston commented 7 years ago

To prevent allowing direct access to index.php is written a little module Autocomplete Unblock The sandbox project is located at https://www.drupal.org/sandbox/irystonnet/2821464

Opened issue on Drupal.org Project applications https://www.drupal.org/node/2821473

To use it just clone to modules directory and enable.

git clone --branch 7.x-1.x https://git.drupal.org/sandbox/iryston.net/2821464.git autocomplete_unblock
iryston commented 7 years ago

@kkomelin autocomplete_deluxe doesn't work in some cases. For example, on author's name at node edit form.

alexfinnarn commented 6 years ago

Thanks @iryston. Still works for me and prevents patching Drupal core!