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.

Files: 
CommentFileSizeAuthor
#11 1646392-11.patch1.03 KBdamiankloip
Test request sent.
[ View ]
#10 views-1646392-unset-filter-values.patch699 bytesygerasimov
Test request sent.
[ View ]

Comments

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

Clear cache did nothing.

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

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.

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!

Status:Active» Needs review

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

So you had hidden the filters before?

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

Status:Postponed (maintainer needs more info)» Active

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.

Status:Active» Needs review
StatusFileSize
new699 bytes
Test request sent.
[ View ]

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

StatusFileSize
new1.03 KB
Test request sent.
[ 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.

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?

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.

Alright. Lets stick to #10.

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

Status:Needs review» Reviewed & tested by the community

#10 Worked for me

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.

@dawehner welcome to commit then :)

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.

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

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

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.

thanks!