I'm getting this error after migrating a site to a server with php 5.3.

Notice: Undefined index: description in theme_imagefield_image_imagecache_lightbox2() (line 162 of /var/aegir/platforms/live/systemseed-6.x-1.20.3/profiles/systemseed/modules/contrib/lightbox2/lightbox2.formatter.inc).

Attached patch should resolve it.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

mrfelton’s picture

Status: Active » Needs review
FileSize
661 bytes

And the patch :)

God, how may more undefined index warnings can one man fix in a day!!!

mikeytown2’s picture

FileSize
1.72 KB

Patch I'm using for this

theohawse’s picture

Issue tags: +php5.3
FileSize
1.33 KB

neither patch worked for me against 1.1 or 1.x-dev (edit:drush make=culprit)

attached is patch for testing, also included the other php 5.3 fix from here: http://drupal.org/node/1244546

theohawse’s picture

turns out drush make is super picky. attached is a friendlier non git version

projects[lightbox2][version] = 1.x-dev
projects[lightbox2][type] = "module"
projects[lightbox2][patch][] = "http://drupal.org/files/lightbox2-1244546-1165214-drushmakeclean.patch"
smokris’s picture

FileSize
1.35 KB

Re-rolled patch in #3/#4.