PHP 5.5.x
Drupal 7.24
Media 7.x-2-unstable -> media 7.x-2 HEAD

While media_update_7211() is running is it throwing a bunch of warnings. Attaching a small patch that tries to check the array key for existent before using it.

...
Performed update: file_entity_update_7211
Illegal string offset 'image_style' media.install:937
Illegal string offset 'image_style' media.install:937
Illegal string offset 'image_style' media.install:937
Illegal string offset 'image_style' media.install:937
Illegal string offset 'image_style' media.install:937
Illegal string offset 'image_style' media.install:937
Illegal string offset 'image_style' media.install:937
Illegal string offset 'image_style' media.install:937
Illegal string offset 'image_style' media.install:937
Illegal string offset 'image_style' media.install:937
....
Performed update: media_update_7211

CommentFileSizeAuthor
media-7211-warnings.patch759 bytessteinmb
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

Devin Carlson’s picture

Status: Needs review » Fixed

Thanks for the patch!

Tested and committed to Media 7.x-2.x.

Status: Fixed » Closed (fixed)

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