I am on Drupal 7.22
Panels 7.x-3.3
Views 7.x-3.7+2-dev (2013-May-06)

I am having problems with Views displaying content from fields.

I think it is similar to this problem

http://drupal.org/node/1025716

but I looked at the panel.view.inc document it already has the text of this patch so I guess it has been incorporated into the latest version.

I make a content type, add an image field or file field depending on the content. I make 1 field for every item I want to upload so I can manipulate them differently. ie 'press logo1', 'press logo2' etc I upload the images or files one to each field and they appear fine.

I make a new View (block) specifically for that image or file. I add that field. This displays fine and I can configure the field, change the formatter, image style etc.

I add this new View (block) as content into a panel region.
This displays fine and the configurations work beautifully so I have different images appear on hover or link to other webpages when they're clicked.

Then out of the blue the field stops displayed. The nodes are still there in their original content page, he files still there in my site folder, the panel still registers the view as added, the new View is still there.
The field simply stops showing. Both in the views own preview when you click edit and in the panel page.

I have done a complete re-install of drupal and tried the 2 available versions of Views but it keeps happening.

Comments

stefan lehmann’s picture

Hi!

1) I think this is not a "Module Development or Code Question". It should rather go into "Post Installation", I suppose.

2) The error description is also not really good. What does "disappear" exactly mean? Does the view stop rendering your images/results? Are the image links just broken? Please provide some more info.

Cheers,
Stefan

nevets’s picture

How did you upload the stills? Are you using a file field in the content type?

lauramorrod’s picture

Yes - apologies - I put this in the wrong place - I think it is now just in Post Installation -

I have created different content types - the most common field type that disappears is 'image' but there is also one where the field is 'file' which has gone too. They are both inserted into panels using Views.
When I say disappeared I mean vanished without trace from the page as if they were not added.
In the individual views pages it recognises the content type and has all the settings the image or file just no longer appears.

On one web page there is just 3 images in the panel, where the added content is Views. All 3 vanished in one go although the panel content page still registers everything.
On another page there is a mix of ways I have added content to the panels - I added views to 2 regions and I used the panels own nodes to add content to the rest. These are fine- only the conted added by views is not showing.

This is so frustrating! I really need this website to be finished and I can't send it out to people if bits of it might just disappear some day :(

Thanks!!

nevets’s picture

So you have a content type with a file or image field and after you using the add content link, the file/image shows fine but after a while disappears, is this correct?

Are you using any contribute modules to assist with uploading files?

If you look under sites/all/files do the files still exist?

lauramorrod’s picture

I create a new content type.
Add image or file fields depending on what the content is. (I leave the default settings for the field and display) One field for each specific image so I can single them out.
In 'Add content' I upload files to the nodes just using the normal drupal upload function.
This gives me a page of images etc. I do not make a menu link.
I then go into Structure/Views and make a new View. I create a block not a page.
Under Fields I add content - pick the specific image I want in the specific field in the new content type I just made.
Change the display to whatever I want, hover preview or fileforce or link it to another webpage.
This makes the new block, I can see it in the preview.
I make a new panel template.
I Add content using the panel template and give it a menu link. I edit the page and add content to each region - pick views, pick the new view I made, display as Block.
When I first make and save it it works beautifully.

Some time later, after no specific action the images etc just fail to appear on the webpage. If I go into edit the information about that content in the regions still registers.

If I go to 'Find content' and open the original page I uploaded the files to they appear fine.
They are still in the 'sites' folder on my host.

This last week, on one page one region disappeared but the other one was fine. Next day that had gone too. Then a page with 3 images on all vanished together. Then a couple of days later the last page with any views on went too.

Panels itself seems to be working as content added directly into the regions does not have a problem.

The only link I can see is that after I have added them I have been making new pages with embedded video links. The problem happens after that but not immediately or all in one go so I'm not sure that is really connected. Plus I have been using different video host sites and it happened both times.

Any thoughts welcome!!

nevets’s picture

Is the view displaying images from a specific instance of the content type (single node) or all images (for the given field) for the content type (all nodes)?

If you look at the html for the generate page does the html for the view even show. What happens if you add "empty text" to the view (under advanced)

lauramorrod’s picture

I make specific fields for each individual image so I can manipulate them differently.

ie I have a logo of a press magazine I want on my page. I make a content type called 'Press icons', add image fields 'press1', 'press2' etc. I upload the first logo to 'press1' etc. I then make a view specifically for that logo maybe call that 'press logo1', add the specific field with that node in (press1). Use views to link it to the article etc

I'm afraid I don't know where to look for HTML.
Sorry.
Thanks for the help though :)

lauramorrod’s picture

I've been having a little poke around my site to test a few things and I think the problem is with views loosing the content in the fields. Not just the fields I have added either, I just had a new view and added 4 content types including 'body' which definitely has various nodes/ bits of content in but nothing was visible on the preview.

Why would View loose the connection to the fields?

nevets’s picture

Are you using the views to place fields from a node in blocks?

lauramorrod’s picture

I create a new view - block not page.
Add content - a specific field with only 1 node uploaded to it (image or file).
I save the new view:block
In a panel page I add this new view:block as content to a region

So I am using views to create new view:blocks, to place nodes uploaded to specific fields of a specific content type into panel regions.

nevets’s picture

How do you associate the view with a specific node?

lauramorrod’s picture

Make new view - make block not page - in the fields column/heading click add. This gives you a drop down menu of content fields, filter by content - pick the specific field I created for this image or file - there is only 1 image or file in this field - save view

nevets’s picture

Does the view show images from all content of a given type or from a specific instance (node)?

lauramorrod’s picture

I create a new content type.
Add one field for each specific image so I can single them out.
There is only 1 specific image or file per field.

"All content of a given type" IS "a specific node. "

Do you have any suggestions as to how I might fix this?

lauramorrod’s picture

I found this thread and I think it might be the same problem
http://drupal.org/node/1025716

but this is a couple of years ago and I don't want to add this patch if it is not current or clashes with my version of Views/Panels.

Plus I don't have SSH access to my host and I can't get Drush to install. I don't know how to get the patch into the module!