After adding a comment with an image field with simple rotate image my logs gives me:

Warning: Invalid argument supplied for foreach() in simple_image_rotate_rotate_image() (line 126 of /public_html/drupal-7/sites/all/modules/simple_image_rotate/simple_image_rotate.module). 

Notice: Undefined index: und in simple_image_rotate_rotate_image() (line 126 of /public_html/drupal-7/sites/all/modules/simple_image_rotate/simple_image_rotate.module).

Tested with an empty (not used) image field.
Using only Dutch as (default) language on the site, not using any i18n module/function only Drupal core locale module

CommentFileSizeAuthor
#3 multilinugal-issue_2889423-3.patch4.03 KBkhoomy

Comments

Anonymous’s picture

cmseasy created an issue. See original summary.

gmarineau’s picture

Same bug for me !

Notice : Undefined index: und dans simple_image_rotate_rotate_image() (ligne 126 dans /home/www-prod/sexup/lib/sites/all/modules/contrib/simple_image_rotate/simple_image_rotate.module).
Warning : Invalid argument supplied for foreach() dans simple_image_rotate_rotate_image() (ligne 126 dans /home/www-prod/sexup/lib/sites/all/modules/contrib/simple_image_rotate/simple_image_rotate.module).
khoomy’s picture

Status: Active » Needs review
StatusFileSize
new4.03 KB

Following patch will fix the issue

  • khoomy committed 3293cec on 7.x-2.x
    Issue #2889423 by khoomy: warning/notice on line 126 simple_image_rotate...
khoomy’s picture

Also fixed in 7.x-2.x-dev branch

khoomy’s picture

Version: 7.x-2.2 » 7.x-2.3
khoomy’s picture

Fixed in latest 7.x-2.3 release

khoomy’s picture

Assigned: Unassigned » khoomy
Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.