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.
The function tries to add to the array $library['variants'] wich is not yet set.
$library['variants'] += array($variant => array('installed' => FALSE));
Comments
Comment #1
tstoecklerActually it is set by libraries_info_defaults() (see l. 355).
What is the setup in which you got that error?
Comment #2
tstoecklerNo response, marking fixed.
Comment #3
Chris CharltonFor reference, a similar issue: https://drupal.org/node/1988882
Comment #4
Chris CharltonI received this error after a standard updating from 7.x-2.0 to 7.x-2.1 release, but the error line for me is 609.
Comment #5
Chris CharltonComment #6
Chris CharltonAfter a little hacking, I got all caches to flush properly and now the error is gone. I got the idea from this issue https://drupal.org/node/1938638 and it seems to have helped. Maybe there's an issue with cached libraries and flushing caches upon update.
Putting ticket status back to what it was before I jumped in.