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.
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' => ''.
Comment | File | Size | Author |
---|---|---|---|
#1 | less-undefined_index_value-2069457-1.patch | 604 bytes | rooby |
Comments
Comment #1
rooby CreditAttribution: rooby commentedI may as well just do it seeing as it's so simple. Here you go.
Comment #2
corey.aufang CreditAttribution: corey.aufang commentedSo the documentation is wrong? or at least misleading?
Comment #3
rooby CreditAttribution: rooby commentedYeah, 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)
Comment #4
corey.aufang CreditAttribution: corey.aufang commentedNow thats some timely bug fixing.