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?

CommentFileSizeAuthor
Clipboard01.png18.91 KBMarko B

Comments

Marko B’s picture

Assigned: Unassigned » Marko B
Status: Active » Fixed

I 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.

ladybug_3777’s picture

I 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

ladybug_3777’s picture

Title: Exposed filter, works in view, stops working in node form » Exposed filter, works in view, stops working in node form - AJAX 200
Component: Code » Documentation
Assigned: Marko B » Unassigned
Category: Bug report » Task
Status: Fixed » Needs review

I 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"

malovanets’s picture

Status: Needs review » Fixed

Commit 3e412f1 solved the problem

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.

TheMGamer’s picture

Status: Closed (fixed) » Active

I already enabled "Use AJAX" and still getting this error!

TheMGamer’s picture

Category: Task » Bug report
jon pugh’s picture

Status: Active » Closed (duplicate)

Marking as a duplicate of #2204829: View ajax not working

sachin_s’s picture

Status: Closed (duplicate) » Active

I 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.

interdruper’s picture

Component: Documentation » Code
Priority: Normal » Major

I 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...

interdruper’s picture

Status: Active » Needs review

Well, 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.

interdruper’s picture

Ok, 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)

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.

planettucker’s picture

#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.