drupal-with-nginx icon indicating copy to clipboard operation
drupal-with-nginx copied to clipboard

AJAX autocomplete fix

Open taytayevanson opened this issue 9 years ago • 5 comments
trafficstars

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!

taytayevanson avatar May 14 '16 18:05 taytayevanson

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.

kkomelin avatar Jul 21 '16 07:07 kkomelin

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.

taytayevanson avatar Jul 21 '16 21:07 taytayevanson

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 avatar Oct 24 '16 20:10 iryston

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

iryston avatar Oct 24 '16 20:10 iryston

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

alexfinnarn avatar Mar 16 '18 17:03 alexfinnarn