Closed (duplicate)
Project:
ImageField
Version:
6.x-3.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
22 Dec 2008 at 22:40 UTC
Updated:
18 Mar 2009 at 13:39 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
drewish commentedis this with the latest -dev release?
Comment #2
patrickharris commentedIt was against 6.3 alpha 2, but when I upgraded to the 6.3dev that didn't help things. I tried deleting the cck fields, and starting again by creating fields with different names, but the same problem still happened.
Comment #3
Anonymous (not verified) commentedI'm also seeing this. I created a content type with an ImageField that had no default Alt and Title text (and disabled the custom settings), yet when I hover over the images, 'a' appears as the title/alt text...
Comment #4
drewish commentedwhich display format are you using for the field?
Comment #5
Anonymous (not verified) commentedIn 'Display Fields' in the CCK settings, my imagefield is set to 'Image' for both teaser and full node...
Comment #6
ktleow commentedI have the same problem of alt and title displays "a" too.
But mine happens to all display. Not just edit forms.
Tried disabling alt and title property in CCK, still displays "a"!!
Comment #7
UnicornSong commentedSubscribing. I also have this issue, but when I edit the content type's imagefield, the Description, Alt text and Title all show my custom text as expected. When the image is saved and viewed, the title and alt texts are "a"
Comment #8
ktleow commentedExactly @ UnicornSong.
Same case =(
Hope someone rectifies this issue asap.
Comment #9
internets commentedI also have this issue, I'm using all the latest modules (dev versions).
I Tried setting a custom and default alt / title tags and I get "a".
Before enabling "custom alt / title tags" some images were showing up with "s" for the alt and title tag.
Comment #10
internets commentedOk a fix that worked for me...
I added this line (now line 18 for me)
above this line
so the top of my imagefield_formatter.inc file looks like this
Comment #11
Anonymous (not verified) commentedI can confirm this seems to work (though I don't understand how it works).
Attached a patch for those that don't like packaged files ;)
Comment #12
upupax commentedI have problem with images displayed in my views page.
The patch seems to have solved the issue.
Comment #13
upupax commentedAfter patching, the code I wrote to massively import node with images stop working.
I used this code to build the field structure
but after patching I get this error:
Is there an error in my code?
Comment #14
psynaptic commentedI'm also seeing this issue in views pages when I select "Image" as the format. I have tested the one line patch and it's working perfectly. Please commit!
Comment #15
Anonymous (not verified) commentedupupax, the patch adds the following code:
$item['data'] = unserialize($item['data']);Your error says:
warning: unserialize() expects parameter 1 to be string, array given...I would therefore assume that you have to change your 'data' element from an array to a string:
to:
Comment #16
stevekerouac commentedI'm also getting the
warning: unserialize() expects parameter 1 to be stringerror, but I have no custom code anywhere. I'm only using a few contributed modules - views, cck, pathauto etc.
Comment #17
upupax commentedConfirm.
Even creating a content with the node submit form gave the same error.
Comment #18
alexpottNot sure that this is an Imagefield issue. I've fixed this problem by patching the filefield module - see http://drupal.org/node/363960
Comment #19
stevekerouac commentedThe filefield patch seems to be working for me so far. I restored the imagefield formatter.inc file to its original state.
Comment #20
drewish commentedthen lets mark this as a duplicate of #363960: Data array not unserialized on the sanitize call.
Comment #21
chadcross commentedI updated filefield and am still getting the "a" for alt and title.
Comment #22
upupax commentedI had the same problem today, then I realized the patch has not been committed to -dev version yet..
Applying the patch #11 solved the problem..
Comment #23
jannalexx commentedupdated to beta1 (imagefield/filefield)
It seems like http://drupal.org/node/397578 "Uncouple ImageField from FileField Custom Hooks" doen't solve this, or some how there are still existent problems with serialised cck fields..
as pointed in http://drupal.org/node/366434#comment-1370628 Represent title, description or alt fields in Views 2
is a filefield issue now