Module works excellent. The following error occurs though when you click preview and you have used the alt field. It does not cause any issues though with the final save/submit of content.

Notice: Undefined index: alt in theme_image_formatter() (line 580 of /var/www/html/modules/image/image.field.inc).

Thanks for the great work. This is what a multi upload widget should function like.

CommentFileSizeAuthor
#6 1424602.patch493 bytescasey
#6 1424602-D7.patch728 bytescasey

Comments

Anonymous’s picture

Status: Active » Closed (cannot reproduce)

Try to download newer version.

Louis Bob’s picture

same issue with the last version (7.x-1.0-alpha1) when previewing the node:

Notice : Undefined index: alt dans theme_image_formatter() (ligne 581 dans /.../modules/image/image.field.inc).
Notice : Undefined index: title dans theme_image_formatter() (ligne 590 dans /.../modules/image/image.field.inc).

There is no error when the Plup module is not used to upload the images.

Louis Bob’s picture

Status: Closed (cannot reproduce) » Active

re-opening the issue, since it is not solved and seems directly related to this module.

Anonymous’s picture

Version: 7.x-1.x-dev » 7.x-1.0-alpha1
Status: Active » Closed (cannot reproduce)

I've tried it in fresh installation but still cannot reproduce.

Louis Bob’s picture

To reproduce the error, I think you need to "untick" the "Enable the Alt field" and "Enable the Title field" lines in the image field settings of the node.
=> when these are ticked, I have no error.

So I guess that the Plup module cannot treat the case where these values are missing?

casey’s picture

Project: Plup » Drupal core
Version: 7.x-1.0-alpha1 » 8.x-dev
Component: Code » image.module
Status: Closed (cannot reproduce) » Needs review
StatusFileSize
new728 bytes
new493 bytes

This also happens without plup. Previews are build out of form data. If the alt and title form fields aren't available you get these notices.

Status: Needs review » Needs work

The last submitted patch, 1424602-D7.patch, failed testing.

Louis Bob’s picture

Status: Needs work » Needs review

#6: 1424602-D7.patch queued for re-testing.

Status: Needs review » Needs work

The last submitted patch, 1424602-D7.patch, failed testing.

Louis Bob’s picture

Ok thank you.
So it means that I have to apply the above patches to the image core module ?

tim.plunkett’s picture