Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Every first media upload into a empty gallery produces a notice, followed by a warning.
Notice: Undefined index: und in media_gallery_add_images() (line 264 of [...]\sites\all\modules\media_gallery\media_gallery.pages.inc).
Warning: Invalid argument supplied for foreach() in media_gallery_add_images() (line 265 of [...]\sites\all\modules\media_gallery\media_gallery.pages.inc).
The reason is, that the media_gallery_media property is empty.
Patch applied, tested on a fresh installation.
Comment | File | Size | Author |
---|---|---|---|
media-gallery-notice-warning-on-first-media-upload-0.patch | 564 bytes | Moloc |
Comments
Comment #1
lsolesen CreditAttribution: lsolesen commented