When the less library doesn't exist you get this error:

Notice: Undefined index: value in theme_status_report() (line 2583 of /var/www/mysite/modules/system/system.admin.inc).

This is because less_requirements() in the install file, returns a requiement that doens't ahve a 'value' attribute.

From the docs:

value: The current value (e.g., version, time, level, etc). During install phase, this should only be used for version numbers, do not set it if not applicable.

So it probably should be 'value' => ''.

CommentFileSizeAuthor
#1 less-undefined_index_value-2069457-1.patch604 bytesrooby
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

rooby’s picture

Status: Active » Needs review
FileSize
604 bytes

I may as well just do it seeing as it's so simple. Here you go.

corey.aufang’s picture

So the documentation is wrong? or at least misleading?

rooby’s picture

Yeah, it is misleading.

Most other related code seems to properly handle it when it is unset, it seems to just be this bit.

There is a drupal core issue open to fix the root cause:

#1880224: Notice: Undefined index: value in theme_status_report() (line 2577 of modules/system/system.admin.inc)

corey.aufang’s picture

Version: 7.x-3.x-dev » 7.x-4.x-dev
Issue summary: View changes
Status: Needs review » Fixed

Now thats some timely bug fixing.

  • corey.aufang committed 8b1d2c7 on 7.x-4.x authored by rooby
    Issue #2069457 by rooby, corey.aufang: Notice: Undefined index: value in...

Status: Fixed » Closed (fixed)

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