Closed (fixed)
Project:
ImageField
Version:
5.x-2.x-dev
Component:
Code
Priority:
Critical
Category:
Bug report
Assigned:
Reporter:
Created:
15 May 2008 at 07:37 UTC
Updated:
29 Mar 2009 at 06:00 UTC
Jump to comment: Most recent file
Hello,
First of all, thank you for the great module!
If I enable the default image, I get an error stating that on 177 the function unlink can not be found, but I only got that the first time.
Basically, everything works fine, exept when I display the default fields with imagecache. They just don't show. Everything shows, except the default images. Any ideas?
| Comment | File | Size | Author |
|---|---|---|---|
| #20 | imagefield-2.4-update.patch | 931 bytes | caktux |
| #18 | imagefield-2.4-update.patch | 713 bytes | caktux |
| #17 | imagefield-2.4-update.patch | 680 bytes | caktux |
| #14 | imagefield_258747.patch | 1.89 KB | drewish |
| #11 | imagefield-update.patch | 1.4 KB | smk-ka |
Comments
Comment #1
dopry commentedYou will need to go and update/reset all the formatters on admin/content/types/$type/display. It seems I missed this part of the upgrade path. I'll try to figure out a way to correct when I'm working on imagefield next this weds, but it is easily curable by updating the display settings page, if tedious.
Comment #2
dopry commentedThe new formatter handling code changed the name of the default formatter to from $preset['name'] to $preset['name'] .'_default'. This applies to both imagefield and imagecache. The update function should iterate over all function types, updating the formatter name if it hasn't been updated already.
Comment #3
dorien commentedThanks for your reply.
I have just upgraded from 2.0-rc8 to 2.1. However, the ajax upload seems to be broken now! But only for imagefield uploads. It keeps on displaying the loading bar.
If I go to the display options of my content type, I cannot see this default handler that you talk about.
Comment #4
jpetso commented> However, the ajax upload seems to be broken now! But only for imagefield uploads. It keeps on displaying the loading bar.
I bet three euros that you've got the Devel module enabled, which causes AJAX uploads (not only those in imagefield, but also in upload.module and filefield) to stall.
Comment #5
dorien commentedI have :-)
I will disable it and let you know if that solves it. Thanks for the tip!
Comment #6
dorien commentedExcellent!
Comment #7
dopry commentedSorry.. this is still active as there is an involved upgrade path that needs to be fixed as well...
Comment #8
kulfi commentedNo images are displayed in 'view' mode. Devel is not enabled.
Comment #9
bwood commentedThank you! I was about to do drastic things. I guess I missed that in some Devel documentation...
Comment #10
smk-ka commentedImplemented the update path as outlined in #2. However, I think the name of the default formatter changed from just 'default' to 'imagefield_default', don't know where $preset['name'] fits in there.
Comment #11
smk-ka commentedAdded clearing of content type cache after update.
Comment #12
liquidcms commentedi think imagefield still has a bug trying to load default image.. all i see on node_load() for a field with no image but with a defauklt.. is that the field is not populated into the node object.
also, patch in #11 fails on call to undefined function _content_admin_display_contexts()
how is it this hasn't been sorted out.. doesnt everyone use this module???
Comment #13
bomarmonk commentedDuplicate? This patch worked for me: http://drupal.org/node/318058
Comment #14
drewish commentedI committed the attached to HEAD so that it'd stay consistent.
Comment #15
drewish commentedcommitted smk-ka's patch to DRUPAL-5--2.
Comment #17
caktux commentedThe same problem applies to default Views (5.x) formatters, this patch fixed every view I had that used imagefield.
Comment #18
caktux commentednice, wrong way patch... sorry
Comment #19
drewish commentedi think we could do without the first place holder ala:
also how about making it into a separate update?
Comment #20
caktux commentedwithout first placeholder and as a separate update
note: The same thing would need to be done for every imagecache presets' defaults (ie. "YourImagecachePreset" for "YourImagecachePreset_default"), or you have to manually edit your view and re-set it.
Comment #21
quicksketchcaktux, this change is no longer necessary after #402200: Restore the "default" Formatter. This whole changing the name of the default formatter was a bad idea from the start.