I'm using Views 7.x-3.0-beta3, Chaos Tools 7.x-1.0-alpha4 and Panels 7.x-3.0-alpha3.

I have a html list view being displayed in a content pane. I add in empty text, but when the view is being displayed all I see is the title. The text is not being rendered to the page at all.

I tried recreating this in a block (to cut out Panels) and I can confirm that they do not work there as well. It doesn't seem to render the view at all (not even the title) - as is the usual behavior when there is no empty text.

Anything I should try to debug this?

Comments

merlinofchaos’s picture

Priority: Major » Normal
Status: Active » Fixed

This is a pretty well-tested feature, and I'm confident it works.

Are you sure your view is empty? It's very common for people to improperly filter their views, and have views that return rows that have no data in the fields selected and assume that Views can tell the difference. It cannot.

Any view that has rows, regardless of whether or not those rows have data in it, are not empty.

The easiest way to test this is to add Node: Nid as a field. If your view then shows a bunch of nids, you need to add some better filtering to your view.

davidneedham’s picture

Ah ha! I had the "Exposed form style" set to "Input required" even though I had no exposed filters. As a result, it was giving me an error which I didn't see. Is it possible to move that onto the exposed filters themselves? That seems like a weird place to put that setting.

Thanks Earl!

merlinofchaos’s picture

No it's not possible to move that.

Status: Fixed » Closed (fixed)

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

alimac’s picture

I had a similar issue -- had exposed filters applied per page but ended up removing them. The "Exposed form style" was set to "Basic" but it was set for "This page (override)". After reverting to default the issue was fixed and text area in No Results Behavior behaved as expected.

kclarkson’s picture

Status: Closed (fixed) » Active

I am using views 7.x-3.3, ctools 7.x-1.0 and Panels 7.x - 3.2.

I have created a custom panel page that uses a views content pane to show argumented events using a url like node/%node/events

My view is a content pane that has a relationship and argument. For some reason I cannot get the content pane to show the Empty Text Results.

But if I add the "view" in Panels and select the "master", I am able to see the empty text rules.

kclarkson’s picture

Status: Active » Closed (fixed)

It is working.

For anybody else who may stumble upon this.

You have to set this withing the Contextual Filters section, under "action to take if filter does not validate" select the Display Contents of No results found.

mikemadison’s picture

I actually ran into this today, and after some digging I noticed that I was using a relationship for my fields, but not for my filters. So, the filters were returning results based on the page I was on (contextual filter) but nothing was actually showing up since the fields were based on the relationship.

Really easy fix: Just added the relationship to the filters and I was good.

m23reo32’s picture

Issue summary: View changes

I encountered the same thing and it happens when the returned value on the contextual filter is not integer. In my case the returned value is FALSE, thinking that it would convert it from boolean to integer 0, but it doesn't.

If you encounter the same thing, you may check the returned value, and make sure it's an integer type.

nithinkolekar’s picture

this bug is present with specific views format like D3 Visualization(#2382527: Views incorrect behaviour when no results found) and Views data source's Json view (#2558223: No Results Behavior does not render in json_view).

May its the Views core which is not triggering empty flag for specific format?