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.
I just got this error when I upgraded to 7.x-2.1
Notice: Undefined index: pre-dependencies-load in libraries_invoke() (line 161 of C:\Program Files (x86)\Apache Software Foundation\Apache2.2\htdocs\pn\sites\all\modules\libraries\libraries.module).
Warning: Invalid argument supplied for foreach() in libraries_invoke() (line 161 of C:\Program Files (x86)\Apache Software Foundation\Apache2.2\htdocs\pn\sites\all\modules\libraries\libraries.module).
Comment | File | Size | Author |
---|---|---|---|
#8 | libraries-missing_array_key-1971708-8.patch | 590 bytes | itarato |
Comments
Comment #1
PolDuplicate of #1938638: Cached libraries (with corrupt data structure) are being loaded on update.php before the update from 2.0 to 2.1.
Please, use the search function.
Comment #2
dianacastillo CreditAttribution: dianacastillo commentedI ran update and it got fixed, but now the error is back when I installed another module (openlayers) and ran update :
Notice: Undefined index: pre-dependencies-load in libraries_invoke() (line 161 of C:\Program Files (x86)\Apache Software Foundation\Apache2.2\htdocs\pn\sites\all\modules\libraries\libraries.module).
Warning: Invalid argument supplied for foreach() in libraries_invoke() (line 161 of C:\Program Files (x86)\Apache Software Foundation\Apache2.2\htdocs\pn\sites\all\modules\libraries\libraries.module)
Comment #3
PolOnce again: http://drupal.org/node/1938638#comment-7228054
Comment #4
dianacastillo CreditAttribution: dianacastillo commentednow I ran update again because I got that libraries error again and my map DISAPPEARED AGAIN :-(
Comment #5
dianacastillo CreditAttribution: dianacastillo commentedokay all my problems fixed with the help of Pol, see here https://drupal.org/node/1971162#comment-7307690
Comment #7
defconjuan CreditAttribution: defconjuan commentedIf the links in #3 and #5 don't help you, read on:
Short version: You may also need the patch by barraponto in comment 7 or 12 on http://drupal.org/node/1908042.
Long version: If you've come across this page when Googling "Notice: Undefined index: pre-dependencies-load in libraries_invoke() (line 161..." error like I have, most people reference (1) fixing a typo contained on line 302 of the libraries.api.php; (2) running Drupal update; and (3) clearing all caches. This fixes it for many people, but not for Panopoly or Kala Theme users. For those users, you need to apply the patch by barraponto in comment 7 or 12 on http://drupal.org/node/1908042, then clear your cache and you'll be good to go.
Comment #8
itarato CreditAttribution: itarato commentedComment #9
tstoecklerA similar fix was already committed in the referenced issue.
I only stumbled on this issue by accident, btw. Since this issue is closed, it will not be seen by the maintainers of this module.