I tried this on recommended and dev release. When I build a view widget in view and add exposed filters, they work normally and everything is fine. When I add this widget to node for selecting nodes, filter is broken and when I click on it. I get error like in attachment. What could be wrong. I can dig into code, just point me in some right directions if possible. From return error, I see whole drupal page returned, something seems wrong there?
| Comment | File | Size | Author |
|---|---|---|---|
| Clipboard01.png | 18.91 KB | Marko B |
Comments
Comment #1
Marko B commentedI just figured it out. If I add USE AJAX to views it WORKS. Please add that to DOCS/Readme as others could have the same issue and this changes things. Great module BTW.
Comment #2
ladybug_3777 commentedI am so glad you posted this. I was experiencing the same Ajax 200 error and couldn't figure out what I was doing wrong. For some reason when I searched through the issues/bugs it took me a while to find this bug report (maybe because it's marked as "Fixed") and I was thinking it was an open issue/bug or maybe it's because you posted the error message as an image so my search for the actual error details resulted in no results found on my search.
REGARDLESS, thanks for posting this. Changing the value within the view the Use AJAX seems to have fixed the problem
Comment #3
ladybug_3777 commentedI am reopening this as "Needs review" so that it can be added to the documentation. I feel like this issue can easily be overlooked if it's marked as "Closed/fixed"
Comment #4
malovanets commentedCommit 3e412f1 solved the problem
Comment #6
TheMGamer commentedI already enabled "Use AJAX" and still getting this error!
Comment #7
TheMGamer commentedComment #8
jon pughMarking as a duplicate of #2204829: View ajax not working
Comment #9
sachin_s commentedI am still facing this exact issue. I tried with with both the versions of the module: 7.x-2.0-beta3 and 7.x-2.x-dev
I don't think the problem behavior is same as mentioned in #2204829 because here, I do not get json dump on the screen or redirected to some page. I get an ajax 200 response and the response actually contains proper html of some page.
I've of course set "use ajax" to TRUE in my view and also followed the steps mentioned in #2235029: How to configure Entity Reference View Widget.
I am reopening the issue. Please be kind if there is something missing on my part.
Comment #10
interdruper commentedI can reproduce the bug easily just adding any exposed filter to the view.
Ticking the view to use Ajax have not any consequence.
Releases used:
Entityreference View Widget "7.x-2.0-beta3+2-dev" (last dev, 2014-May-23)
EntityReference 7.x-1.1+3-dev (last dev, 2014-Feb-11)
Views 7.x-3.7
Perhaps Ajax complains because a string is returned by the module, instead of JSON.
Any help from Ajax gurus here will be very appreciated...
Comment #11
interdruper commentedWell, klassww encountered this problem 5 months ago, he found the origin and uploaded a patch to Views module that fixes this bug, at least for me.
Comment #12
interdruper commentedOk, a patch in Views is not more required. Issue seems fixed after this commit to Views. See details: #1809958: Views with exposed filter (ajax enabled) inside modal window (ctools)
Comment #14
planettucker commented#1 fixed it for me.
I see this is 'old' but I had the same issue. I had a field that popped up the widget which required a user to select from a drop down list of options and click apply. This used to work, but then all the sudden did not. The widget would pop up as normal.
When an exposed filter was selected, and 'apply' was clicked the following happened:
1 - the wheel spun for a second
2 - loaded no results
3 - continued to show a blank pop up with the new option selected in the filter.
Tried template changes, jquery versions changes, ritualistic dances, prayers etc... My jquery is set to default on both default and admin settings.
The magic thing that brought it all back for me is on the right hand side under advanced options in the widget view I had to change ...
Use Ajax? to be 'yes'.
:|
Hope this helps someone else.