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).

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

Pol’s picture

Status: Active » Closed (duplicate)
dianacastillo’s picture

Status: Closed (duplicate) » Active

I 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)

Pol’s picture

dianacastillo’s picture

now I ran update again because I got that libraries error again and my map DISAPPEARED AGAIN :-(

dianacastillo’s picture

Status: Active » Fixed

okay all my problems fixed with the help of Pol, see here https://drupal.org/node/1971162#comment-7307690

Status: Fixed » Closed (fixed)

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

defconjuan’s picture

If 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.

itarato’s picture

tstoeckler’s picture

A 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.