Closed (duplicate)
Project:
Views (for Drupal 7)
Version:
7.x-3.x-dev
Component:
fieldapi data
Priority:
Critical
Category:
Bug report
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
1 Dec 2010 at 11:37 UTC
Updated:
15 Dec 2010 at 09:48 UTC
Jump to comment: Most recent file
Comments
Comment #1
Letharion commentedPlease read the guidelines.
Comment #2
drupa11y commentedHad a similar problem, after installing latest dev all the fields are empty or not displayed.
Changing back to version from 2010.11.26 and everything is fine again.
Comment #3
israel dahan commentedSo it does issue?
If possible please also link version
I'm sorry for opening the issue, just I'm new here.
Slowly I will learn
Comment #4
dawehnerCould be a duplicate of #936196: Don't use entity_load to display fields
Comment #5
juves commentedduplicate or not, I have the same problem
Comment #6
dawehnerThere is still no bug report here.
Comment #7
juves commented1. Create View
2. Add Page Display
3. Add custom fields
4. Only first field has content
There is no bug with build-in fields, only with custom fields
Comment #8
drcho commentedSame problem here.
See the very simpler view structure in my attachment. Only the title an field_image is displayed in this example. the output of the bodytext is empty (see Screenshot in attachment).
Comment #9
aspilicious commentedTry again with latest drupal version (head! and not rc1) and latest view dev code...
Comment #10
drcho commentedi just installed the actual dev version of views and the dev version of drupal7. Still the same problem :-( Or what do you mean with 'head'?
Comment #11
bojanz commentedhead == latest drupal dev. So you did right.
Will try to reproduce this tonight.
EDIT: Spent the evening on other things, need to sleep now. Tomorrow is a new day, though.
Comment #12
drcho commentedthank you. i tried to understand the views module but it's too complex for me. perhaps you can find the solution it in the views_handler_field_field.inc (render function?)...
Comment #13
drcho commentedwhy is the status postponed? which information do you need anymore?
Comment #14
dawehnerNoone updated the status in the meantime.
Comment #15
drcho commentedok. i'd like to help searching for the error but don't know where. any suggestions?
Comment #16
bojanz commentedviews_handler_field_field.inc
prerender() gets the data, render() displays it.
The data is either not provided, or not displayed (doesn't come out of render).
See which one it is.
Comment #17
drcho commentedThe problem isn't caused by views but by drupal core.
I tried to find the bug: pre_render() and render() work fine. Render returns empty field content for the 2nd field+ because of the field module of the drupal core.
The drupal core function field_language in modules/field/field.multilingual.inc returns the false language. don't know how to solve this :(
Comment #18
bradezone commentedSubscribing, as I think this is the problem I'm having. I've tried to create image galleries using Views in D7, and none of them have worked because the images simply don't show up. BUT the correct number of entries are shown (as I'm also displaying Title while trying to debug this problem), so I think the Views query is almost right but not quite.
My content type is called "Image Gallery" and I add one custom field called "photo" which can have unlimited entries. When I view the built-in page, things look fine and I can adjust the image sizes using "manage displays" so I know the problem must be with Views. Within Views I am merely filtering by this content type, then for Fields I am showing Node:Title and Fields:field_photo - I am formatting the field merely to output the original image (also tried the various imagecache formats). The query returns the correct number of entries because the Title appears multiple times, but no images show up. I looked at the query then at my DB, and while I know next to nothing about the inner workings of Views, I think it is because Views never consults the "file_managed" table even though that's where the URL's are for the uploaded files.
Here is the query in Views:
Here's a similar query in one of my D6 sites:
Compared to a D6 image gallery I created before, this query is pretty similar except for the bracketed terms {node} and {field_data_field_photo} which are only in the D7 query (and cause it to be invalid when entering it directly on the DB). Also the :views_join_condition thingies are new in D7...
Comment #19
bojanz commented@drcho
Please open a drupal core issue with all the information you have, and link it here.
We can then close this views issue, and continue fixing it in the core issue...
Comment #20
drcho commentedall right, here is the core issue: http://drupal.org/node/992542 hope it can be solved soon
Comment #21
bojanz commented@bradezone
Your support request needs an issue of it's own. Maybe you're just missing a Relationship?
@drcho
We'll see.
Closing this issue.
Comment #22
plachComing from #992542: field module: field_view_field returns an empty field to the views module. This is a Views issue:
The
$entityobject needs to be prepared so that it holds all the fields belonging to the entity to be displayed. This should be feasible somehow by looping on the result set.If this is not possible the only viable alternative is clearing
field_language()static cache for each field, but this won't be good for performance.Comment #23
plachtagging
Comment #24
plachOk, it seems this is being addressed in #987478: Field language is not properly handled.