I'm getting a 'No views match the search criteria.' on the main view screen (/admin/structure/views), but views are still working, and I can still access the views through the admin dropdown menu.

I've tried to remove all features and modules down to using just views and views_ui, to eliminate external factors, but still get nothing.

Members fund testing for the Drupal project. Drupal Association Learn more


ltwinner’s picture

I have this problem too, no views show up on the admin/structure/views page, I can only access them through administration menu.

ltwinner’s picture

Clear cache did nothing.

I then tried logging out and restarting wampserver. This seems to have worked for some reason.

gremy’s picture

I have the same problem on my DEV server. And on my local server with the same code, and same database it works.
At the moment, I really don't understand how two instances with the same code and database can behave in this way.

gremy’s picture

I have found a solution that worked for me. Apparently some filter was applied, and that filter was stored in the session.
So the simplest solution is: Logout, then Login. Hope it helps!

gremy’s picture

Status: Active » Needs review
dawehner’s picture

Status: Needs review » Postponed (maintainer needs more info)

So you had hidden the filters before?

henrikakselsen’s picture

#4 didnt work for me, but applying a filter worked:

- admin/structure/views/settings -> check "Show filters on the list of views"
- admin/structure/views ->apply one filter, doesn't matter which one.

esmerel’s picture

Status: Postponed (maintainer needs more info) » Active
ygerasimov’s picture

The clean way to replicate this problem is:
1. Enable "Show filters on the list of views" on the views settings.
2. Apply filter (for example show only disabled views). See that we can only view disabled views.
3. Go to views settings and disable "Show filters on the list of views"
4. Go to views list and see that we still see only disabled views even we should not use filters.

The problem is that session filter values applied without checking whether "Show filters on the list of views" option is enabled.

ygerasimov’s picture

Status: Active » Needs review
699 bytes
None View

Here is patch that unsets filter values from session when filters are hidden.

damiankloip’s picture

1.03 KB
None View

Maybe this should move into the actual submit handler for the views settings form? We don't need to check it on every page request do we? The only way this can really happen is if someone sets the filter criteria, then turns the filter off on the settings form, it's then stuck in the session and can't be reset.

This patch adds a submit handler to the basic settings form to remove this when the option is turned off.

ygerasimov’s picture

This will work only if there is only one admin.

Well, if there are two admins who are using filters then it won't work. We are not able to go through all sessions of all users and remove those values, or can we?

damiankloip’s picture

Good point, I was thinking blindly of user 1. I'm not sure about going through all sessions. The original approach (or similar) might be best in that case.

ygerasimov’s picture

Alright. Lets stick to #10.

@damiankloip does it work for you? Can we RTBC this issue?

asgorobets’s picture

Status: Needs review » Reviewed & tested by the community

#10 Worked for me

dawehner’s picture

I would personally go with the route of patch in comment #10 as it will fix all the issues automatically,
i guess people don't find the settings form if they have this kind of error.

ygerasimov’s picture

@dawehner welcome to commit then :)

dawehner’s picture

Version: 7.x-3.3 » 8.x-3.x-dev
Status: Reviewed & tested by the community » Patch (to be ported)

Did that :) I'm not sure what will happen in d8 as there is no way to filter it yet.

dawehner’s picture

Status: Patch (to be ported) » Postponed
Issue tags: +VDC

Let's postpone this task until there is filtering available.

xjm’s picture

Version: 8.x-3.x-dev » 7.x-3.x-dev
Status: Postponed » Closed (fixed)

Closing, as this isn't applicable with the core list controller. If someone wants this functionality in D8 we can add a feature request.

ilrecidivo’s picture


kylebehse’s picture

Issue summary: View changes

Anyone having this issue, make sure you DO NOT have Captcha Module putting captcha's on admin forms. This can be found in the Captcha Module settings.