Hello,
I have an strange error 500 when I use several filters with autocomplete option :
Filter User: Name (raw) (exposed)
Filter User : Mail (exposed)
Filter Profil name: Name (exposed) (custom field for the name user in profile)
I haven't these errors with the account 1 (super admin) but with the other accounts (editors...). Strange...
I have others filters with autocomplete option, but they are build differently. These fields use some relationships with a entity reference field. I haven't errors with these filters.
I use "10" in maximum number items option, and I test with or without "unformatted" options.
Have you any idea to resolve this problem?
Thanks for your help.
Comments
Comment #1
kumkum29 CreditAttribution: kumkum29 commentedHello,
I have the same issue with the last version 1.1.
In logs I get this :
After a new test with account 1 I haven't errors....
Thanks.
Comment #2
kumkum29 CreditAttribution: kumkum29 commentedComment #3
kumkum29 CreditAttribution: kumkum29 commentedHello,
I increased the memory ram of the server hosting. I still have the problem.
No idea?
Thanks.
Comment #4
Qandeel CreditAttribution: Qandeel commentedI am also encountring this issue on my live server, but on my local install there are no errors, Its really strange.
Comment #5
alauzon CreditAttribution: alauzon commentedI have the same problem. I have setup the autocomplete on the Title field on the Content admin views. My setup is a little bit different as it is NOT a coumpounded field but just basic Title. It works with admin and not with other roles. I have looked up in the rights of that role but found no right I could give it to make it work.
Comment #6
kumkum29 CreditAttribution: kumkum29 commentedHello,
I also thought of a permissions problem.
When you do a search (for other roles), ajax search results for 3 / 4 seconds and then displays the error. It finds no results.
If I use the field autocomplete with the account 1, the result is dispayed immediatly (1 second).
The problem comes from a lack of permissions?
Thanks.
Comment #7
vasikeAs i can't reproduce it i'll need more details how this could be "achieved".
May i have some Views exports and some permissions.
Thank you all.
Comment #8
thoughtcat CreditAttribution: thoughtcat commentedI am getting this error when selecting BEF for my view (after a delay):
Not getting this with basic or input required.
Comment #9
tzt20 CreditAttribution: tzt20 commentedAlso seeing this issue when selecting BEF settings in the Exposed form in Views. I receive the AJAX 500 error after clicking Apply for my changes. I cannot update More Options or my Display filter type because of this issue.
I'm using BEF 7.x-3.0-beta4, Views 7.x-3.8, and Core 7.34
Comment #10
haunted CreditAttribution: haunted commentedSame issue but only for anonymous users, for authenticated users it deosn't happen.
Comment #11
tomdearden CreditAttribution: tomdearden as a volunteer commentedI am experiencing what I think is the same (or a similar) issue. My case is as with the OP - no problems when logged in as UID 1, but any other authenticated user using the autocomplete filter sees a 500 error back from the AJAX request.
I see the memory exhaust problem as well, and if I have XDebug turned on I get a warning about function nesting depth.
My investigations have led me to conclude that there is an infinite loop triggered by my use case - I can't work out what the correct behaviour is intended to be but the behaviour as I see it is that, when _views_autocomplete_filters_access_callback calls the access method on my view, this then triggers the following cascade:
views_plugin_display->access()
views_plugin_access_menu->access()
menu_get_item()
_menu_translate()
_menu_check_access()
_views_autocomplete_filters_access_callback()
ad nauseam.
I can provide version and line numbers for the various modules involved but I'm basically running the current (as of today) version of all the modules involved as well as D7 core.
My view is a 'system' view, which I think may be relevant as it's not possible to specify a custom access condition of any kind for these as far as I can tell, at least not in Views UI.
If the maintainer can elaborate on how things are meant to work I'd be happy to attempt a patch but, as I say, I can't work it out from first principles so am a bit stumped right now.
Comment #12
tomdearden CreditAttribution: tomdearden as a volunteer commentedAn update on my experience with this:
I've managed to work around my particular case by using a hook_menu_alter() implementation to change the access callback for
autocomplete_filter/%/%/%/%
. In my case, I simply amended it to use user_access and passed in the name of a permission that coincides with the user profile for the View I'm using the exposed filter on. This works here because I'm only using Views Autocomplete Filters in one place on this site but obviously a more nuanced, custom callback could be written for more complex cases.Comment #13
tomdearden CreditAttribution: tomdearden commentedSorry - I accidentally deleted the issue summary! Re-instating ...