When you want to preview a node with an image with the media browser widget, you get an Notice for 2 variables in an array (alt and title) :

Notice: Undefined index: alt in theme_image_formatter() (line 581 of /home/qalocal/projets/plateforme/plateformedrupal/html/modules/image/image.field.inc).
Notice: Undefined index: title in theme_image_formatter() (line 590 of /home/qalocal/projets/plateforme/plateformedrupal/html/modules/image/image.field.inc).
Notice: Undefined index: alt in theme_image_formatter() (line 581 of /home/qalocal/projets/plateforme/plateformedrupal/html/modules/image/image.field.inc).
Notice: Undefined index: title in theme_image_formatter() (line 590 of /home/qalocal/projets/plateforme/plateformedrupal/html/modules/image/image.field.inc).

It seems Media don't use the alt and title of image field so when the theme function is called, variables is not found.

Do you have some ideas to fix this bug ?

Comments

tsvenson’s picture

Your correct, Media does not have any support for the Image field alt/title fields.

Do you have those options turned on for the field? If so, turning them off again should make the notices go away.

Its unlikely support for these attributes will be added for the 1.x branch, however a solution for the 2.x File Entity module is in the works #1553094: Alt and Title support for Images.

mgifford’s picture

Status: Active » Closed (cannot reproduce)

I'm going to mark this as closed for now. Seems it was fixed in the related link pointed out in the comment above. If not, please re-open.