I have a view to check unpublished items, which works when you push "preview" showing some nodes; but when going to the page created by the view I receive the "no nodes" message.

I have cleared cache (both views and browser).

Any hint of how to solve this?

CommentFileSizeAuthor
#4 Live Preview10.13 KBapaqui
#4 Block (no admin)11.99 KBapaqui

Comments

enboig’s picture

I have discovered where the problem lies; using a trigger when inserting "events" make the node not to be saved correctly, what causes Views to see it just in previews. It is not Views "fault", despite the fact that having a preview view different of the final view is a little weird.

merlinofchaos’s picture

Can you explain what you mean in further detail? I don't understand how a node can end up in a view preview and not the actual view itself. They should be identical.

enboig’s picture

I activated a trigger which caused "node-events" not to be completely saved on the database (its a but either from event module or trigger module or action module).
So if you make a "SELECT" from de node table they can be found, but if you try to make a "node_load" they don't.
"I think" the preview was just making a SELECT from the node table (which just listed the unpublished event nodes to approve them); but when trying to render the full view it couldn't.

apaqui’s picture

StatusFileSize
new11.99 KB
new10.13 KB

I have the same problem, I can see the view on Live Preview but when I show the block with the view these looks different, some fields are hidden (for anonymous user) but you can view on live preview or if you log in as administrator.

apaqui’s picture

I have the solution!!

The problem was in the permissions, I gave permissions (module content_permissions) to some fields and the view worked

LOL

enboig’s picture

Status: Active » Closed (fixed)

I don't think we had the same problem, my problem is caused by "malformed" nodes.

I close it