Active
Project:
ImageField
Version:
6.x-3.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
13 May 2009 at 02:17 UTC
Updated:
5 Nov 2012 at 07:32 UTC
Jump to comment: Most recent file
I'm using Views with Imagecache for images. I have default images set up which work on the node pages, but not when it comes to Views. The nodes with images uploaded show up, and the default image has been created for the imagecache preset.
Anybody else having this problem?
| Comment | File | Size | Author |
|---|---|---|---|
| #34 | cck-views-3.patch | 2.21 KB | sijumpk |
Comments
Comment #1
dawehneri think you mean imagefield default images
which version of imagefield do you use, i used the current one, and there the default image works well.
Comment #2
ctalley5 commentedSorry - yeah I meant Imagefield. I'm using the most recent 6x.-3.0. The strange thing, i had it working a while back no problem, i actually had to go out of my way in Views to turn the defaults off. Now that I want them, i can't get it back on a new View. I'm not doing anything different... maybe there is an argument or relationship that I'm missing? So far i have none - only a filter (content type) and Fields (node title & content image preset) with Table style.
Comment #3
dawehnerso this is Part of imagefield
Comment #4
quicksketchComment #5
mp commentedi´m interested too in this
subscribed 0 + 1 = 1
Comment #6
cocoloco commentedI'm having this problem as well - but are you sure this problem is in ImageField and not Views? ImageField's job is only to provide a default image, apply filters and serve it, which it is doing correctly outside of views (e.g. if an appropriate image is selected in display fields). However this problem only shows up when being selected from views.
Let me know if you agree so we can post this to the appropriate forum if needed.
Thanks.
Comment #7
ctalley5 commentedI believe it's a Views issue as well, that's where i originally placed the issue... so I will move it bring it back around again and see if anybody else has found out why
Comment #8
ctalley5 commentedComment #9
dawehneri don't think so
the display is handled by the specific views fields handlers, and this is handled by cck with the formatters and imagefield has their formatters for images
you couldn't do anything with views here :)
Comment #10
ctalley5 commentedhaha, oohhh okay I see. Thanks for the explanation! Back to Imagefield we go...
Comment #11
OnkelTem commentedSo? Have no default images in Ubercart catalog. Nobody cares?
D6, 3.0
Comment #12
quicksketchI haven't been able to reproduce this problem. I have a view set up with a default image and it displays just fine. If you can provide steps to reproduce the issue from a clean Drupal install (preferably not requiring Ubercart) then I'll reproduce and fix it.
Comment #13
ctalley5 commentedOkay I've got it fixed.
What I did: not much, I completely uninstalled then reinstalled Imagefield & Views (just in case, but afterwards i am convinced it was not Views like dereine previously said).
I think it was "user error" in the end however. After uploading the default image, I think what I did was leave "use default image" unchecked. It may have been my understanding that by checking that would cause it to not use my uploaded default.
So... if anybody else is having this issue.... CHECK the "use default image" after uploading the image.... in the Default image area.
Comment #14
eliza411 commentedI was having the same problem and following this thread. I had always had "use default image" checked. I just now tried removing the image from the view and adding it back in, and the default image started to appear as expected.
Comment #15
restyler commentedI'm still having problems with rendering default image in my view. 'use default image' checkbox is checked. theme('imagecache') call renders default image without any problems.
Here is the export of the view that can't render the default image. It just renders empty
<div class="views-field-field-image-cache-fid"><span class="field-content"></span </div>I've tried removing of the image field from that view and adding it again, no success.
Comment #16
sbydrupal commentedRestyler -
I had the same issue, if you havent solved your problem, try this (in case):
I had 2 content types that was using imagefield. I have set the image defaults checked for one of them, and the other content type image defaults was not checked on.
This affects the Views. Looks like Views takes the latest content type modification. After I checked image defaults for both content types, Views shows the defaults now.
Cheers , hopefully this is your problem.
Comment #17
hefox commentedI am having a similar issue, but the symptom is that the all defaults are appearing as same for all conent types even when set differntly
backtracking it could be the call in cck's content_handler_field on line 18 where it called content_fields with field name but NOT content type, so it it not retrieving the correct field info for the field+content type
A quickie "let's hack cck yay" was to add
to like 173 to load up the correct field info for that content type.
didn;'t want to due it earlier in case it screws up something. might still screw up something, but appears to be working so far.
Comment #18
well mannered squirrel commentedI have the same issue as hefox's here.
I have several views page filtering nodes by content type. Each content type has its own default image. Everything works well in each node but in Views, the same default image shows up for all views page.
Will try hefox's quick fix
Comment #19
hefox commentedI realized I didn't give enough specificity (It was late =/)
The file in question was content_handler_field.inc under cck/includes/views/handlers/, same line number, which is Inside the render() function before it's sent out to be formated.
Not sure if this is a cck bug or not, didn't see anything in cck issue queue
Comment #20
anrikun commentedWorks for me, thanks.
Comment #21
yched commentedre #16, #17, #18 : see #510396: Field info passed to theme functions field only, not field/content type
Thus, closing back this issue.
Comment #22
asak commentedI'm having the same issue, but don't have the field displayed at more then one content type, so not really sure what's going on.
Another thing i found, is this imagecache removes the default image i'm placing...
I'll investigate some more - but this is strange...
Comment #24
a_c_m commentedI ran into this as well... this is as far as we have gotten in trying to fix it - close, but still a little way to go.
thanks to psynaptic for getting a foothold on this.
Comment #25
mbiddlecombe commentedsubscribing with same problem! Have tried latest cck dev version with hefox's fix but still doesn't work.
Comment #26
a_c_m commenteddid you try my module based fix?
Comment #27
Marko B commentedI am having similar problem. In view when i have list of all nodes (row style is field) default image doesnt appear, but on node it does. Could this be view problem afterall?
p.s.
acm i tried fix, but doesnt help. still no image in views.
Comment #28
cyaneo commentedSimilar to me - the default image does not shown in ubercart product list, but is visible on the node page and on the "related product" box.Comment #29
spylvas commentedI have this problem too. I can see images just fine if I am signed in as a admin, but nobody else can see them. Problem isnt only on ubercart product list, but all the field based views where image field is used.
Comment #30
spylvas commentedThis was permission problem. Solved by giving users permission to view field_image_cache.
Comment #31
cyaneo commentedSorry, but not so at my sites - view "field_image_cache" permission enabled for all users/groups.
All users can see all uploaded images but not the default image given by the default field-settings at admin/content/node-type/product/fields/field_image_cache - this "default image" is nowhere visible.
http://lh3.ggpht.com/_b6iZZs_jeZU/Sw2pIJzdDCI/AAAAAAAAAiI/CFocUzxy7IY/de...
Comment #32
Johnny vd Laar commentedi'm having the same problem with 6.x-3.2
i have a view that shows fields (not a node view) and that includes an imagefield with a default image. in the node page the default image is shown. on the view the default image is not shown.
Comment #33
yosemite commentedsame here
image appears as thumb in preview and regular image in node as defined in file_field and imagcache but will not appear when called for in a view. have tried all suggestions above
d 6.16
views 6.10
ImageField 6 3.2
from page created by view where image is supposed to go
Comment #34
sijumpk commentedThis is a problem happened due to the cck handler issue while using views 3. Please apply the patch to CCK module. It will solve the issue. :)
Comment #35
dawehner@sijumpk
This issue should be solved in 2.x/3.x-dev of cck already.
Comment #36
quicksketchThis should be fixed in the latest version of CCK (2.7) that came out today then.
Comment #37
marcoBauli commentedOpen again..still having problems with default image in Views, which show nothing.
Tried all the possible: 'use default image' checkbox is checked, theme('imagecache') call renders default image without any problems, upgraded to latest versions (as of today) of VIews, CCK, imagefield, Filefield. No joy.
Anyone else can please share their findings with latest CCK 2.7? Thx
Comment #38
Mitson commentedI edited my post! Sorry for my hasty response.
When Group multiple values in Views settings (in my case it is Defaults: Configure field Content: Photo (field_photo)) is checked then starting from text field must be set to "0" in order to display default image.
It must be remembered that first item is 0!
If I need Views to display second image but node has only one or no image and starting from is set to 1 or more, then nothing is displayed.
I think there must be some type of fallback in these cases.
@marcoBauli
Try to set starting from to 0
Comment #39
marcoBauli commentedMitson, thanks for dropping by.
Unfortunately i am not Grouping multiple values anywhere in the view.
Just displaying a Grid view with the following Fields: Content:Image, Node:Title, Taxonomy:Term
I can attach an export of the View if it can help, still is something very basic.. thx
Comment #40
TomEagle commentedI am not sure if I'm posting in the right place, but the symptoms I have are similar, although only in IE. In Firefox and Chrome the imagefield are ok in views.
I am looking at the html and see height="a" width="a" in
Anyone else with the same symptoms?
Using the latest ver. 3.6
Comment #41
quicksketchThat was caused by the 3.6 version of FileField. Use the 3.7 version released yesterday. Let's focus on just default images not showing up in Views in this issue.
Comment #42
Mitson commentedI will try to explain #39 again about Default images not showing up in Views.
The only case I found is when I use Group multiple values option and starting from sub-option with value set to 1 or more in Views settings (adding Views field -> Content: some_image_field). Then default image never shows in Views.
I'm not sure if this is a bug report or feature request, but it will be very useful if there is a sub-option in Group multiple values. For example checkbox Always display item(s) if item number is less than value set in starting from sub-option. In this way the images will always be displayed even if no (i.e. default image will be displayed).
Comment #43
Mitson commentedHmm, this is perhaps CCK issue, not FileField/ImageField. As far as I see it is in "cck/includes/views/handlers/content_handler_field_multiple.inc".
Comment #44
quicksketchYes, any request regarding multiple values will likely need to be handled by CCK.
Comment #45
Andrew Gorokhovets commentedthe same problem
Comment #46
Poieo commentedAnyone that runs across this, I had the same problem. I re-uploaded my default image which forced the creation of the imagefield_default_images directory which in turn caused the default images to display in views.
Comment #47
adamgerthel commentedI'm having the exact same problem, but in Drupal 7 using core fields
Comment #48
rickh commentedGuys i've tried 0 in views and re-uploading. Even uploading a different one then re-uploading my original and nothing. Any ideas?
Comment #49
summit commented#38 helped me! Why is views not showing images which have an offset more than 0?
Greetings, Martijn
Comment #50
eodonnell commentedThis fixed it for me! http://drupal.org/node/1090770#comment-6003216
Comment #51
marcoBauli commentedstill happening sometimes with latest version of the module when upgrading from 5.x to 6.x. Re-uploading the default picture in the cck field settings seems to fix it.
Setting this to 'fixed' as is a longstanding bug that seems solved for most. Please revert in case.
Comment #53
raulmuroc commentedReverting and should be Versioned do 7.x-1.x-dev because there also exists the problem.
For ex:
I have added a default image into an Image field in a profile and it just does not show up through the views.