Hi all,

I have a site that I am using a filter search. I am experiencing an issue with Views. Luckily I have the site installed on 4 servers! :) It was working on 2 servers and breaking on 2 servers. The two servers that were broken were running Views 3.1 and the ones where its fixed are running 3.0. I went ahead and upgraded Views on the server that is fixed and now its broken too!

http://directory.prodder.org.za - Broken (Views 3.1)

How to reproduce the issue:

1) Go to the site and in the top search bar type in anything. For example: "adidas". And hit search. It will find Adidas.
2) From the resulting page try to do another search for "prodder" and hit search. It won't find Prodder.

http://prodder.org.za.dedi6.cpt3.host-h.net - Fixed! (Views 3.0)

Do the same thing on this site and it will find Prodder.

I'm nearly 100% sure that the upgrade from 3.0 to 3.1 cause the problem since I tested just before and just after an upgrade and it breaks from the moment you upgrade. Any help would be much appreciated.

Thanks!!

Comments

ratinakage’s picture

Hi all,

Sorry to bump this but its quite an urgent issue. Has anyone managed to take a look?

dawehner’s picture

Status: Active » Postponed (maintainer needs more info)

Well if it's such important for you, maybe consider to pay people to fix your bugs.
Just by looking at the amount of reports in the views issue queue someone could spend the whole day answered support questions which were marked as bugs. Two days of response time is actually not that bad.

If you start with adidas and then prodder it's not possible to find something on prodder, though if you start with a total new tab and search for prodder it will find prodder, also if you type in adidas.

So something like the ajax here could cause the problem.
If you look at the actual request sent out for the second one, it's quite interesting because you will see adidas sent, but you do get prodder as result.

Maybe you have here some kind of too strict caching?

Did you tryed already the 7.x-3.x-dev version, they are probably always the versions with the fewest bugs, because you know there is time between 7.x-3.1 and now.

One small other thing written on http://drupal.org/node/add/project-issue/views

Before submitting an issue to Views, you are responsible for reading and understanding the Views issue submission guidelines. Failure to read and understand this page will result in your issue being marked "won't fix".

ratinakage’s picture

Sure. Thanks for your response dereine!

I bumped it because I thought if it broke my site it might be breaking others and hence might be something you don't want to overlook.

I have no caching enabled for Drupal. The problem is happening on 3 servers at 3 different hosting companies I'm evaluating for the site. Another one is here on Dreamhost: http://prodder.awstest.co.za and one here http://prodder.s701.sureserver.com on CiviHosting. So shouldn't be a one-off hosting issue.

I have looked at the issue queue. The closest thing I can see to my issue is this one http://drupal.org/node/1409280 similar only in that it has to do with Views filters and it also broke after the 3.0 to 3.1 upgrade.

Anyway, thanks for your suggestion about Ajax!! I went and changed the Ajax option from yes to no and it fixed the problem! Only changed it on the last two URLs mentioned in this comment. So its still broken and fixed in the sites mentioned in the main issue summary.

I look forward to any more suggestions. I will also attempt at 7.x-3.x-dev upgrade soon if you still think its recommended.

Thanks!

ratinakage’s picture

Hi all,

Just to let you know that I tested this with the latest Views 7.x-3.x-dev from today (19th March 2012) and the problem still exists.

IWasBornToWin’s picture

Status: Postponed (maintainer needs more info) » Active

Doesn't work for me either. I have a forum view, with only two forum posts on it. I added the search keyword exposed filter. I exposed the filter in a block. In both of the posts I have the word "question" like four times. I do a search on the word--nothing. My site is 100% indexed.

IWasBornToWin’s picture

Ok. I used to be blonde before bald. My search in post above wasn't working because the words are in the description of the Forum, not within the topics. Not sure if search would look there or not?

But here's an issue. I have a word--respectful in the topic content. I do a search for respect and get no results. When I search for respectful it works.

Is this search box doing an exact filter or a "like" filter? Views doesn't give the option to select what kind of filter it does.

IWasBornToWin’s picture

Ok, I've done a little more testing and the filter definitely does a word=exact filter. I hope this isn't by design? It need to be a "includes, is like, contains, or at the least, a "starts with" in my opinion. I have a word-typos and when i search typo my view comes back empty.

geerlingguy’s picture

Version: 7.x-3.1 » 7.x-3.3

I'm having trouble with some exposed filters that have worked through the Views betas and alphas, up to 3.0, but when I upgraded to Views 3.3, they broke. They only broke for AJAX views where the exposed form is in a block. I know the search is being done correctly, and I see the proper keyword in the $_GET array via my module's implementation of hook_views_query_alter(), but the view always shows an empty result after anything is entered :(

On the views UI page for the view, when editing the view, the Master display's exposed filters work fine. I might try -dev and see if this is still a problem there. I did notice that, when editing my view via the Views UI, Views thinks an edit to the view was made, and is saying I need to save changes; I haven't made any changes to the views, and I remember that Views auto-updates things from time to time...

IWasBornToWin’s picture

Component: Miscellaneous » Code

I had the same issue with exposed filters and ajax. @ dereine is 35 days too short of a time for any of us to ask where we should find help for this issue? Do you have any suggestions. Thanks

geerlingguy’s picture

I found that, on my site, when I was adding where clauses to certain queries inside hook_views_query_alter(), using the syntax $query->add_where(), I had to update the array index of the where clause (the first parameter of add_where()) and increase it by one, because somewhere along the line of Views updates, my Views' AND/OR clause groups were changed, and the array indexes were increased from 0 to 1, or 1 to 2, etc. (So, the problem is solved for me).

brephraim’s picture

The 3.3-dev version as of today (June 18, 2012) fixes the issue for me. Although something is still strange, because the URL will still reflect the original search term upon further queries. But at least the page itself updates, which before it would not.

brephraim’s picture

Issue summary: View changes

Altered the URLs to the correct ones.

mustanggb’s picture

Issue summary: View changes
Status: Active » Closed (duplicate)