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.
error message:
Undefined index: installed libraries.drush.inc:68
the code in question:
65| // Only list installed variants.
66| $variants = array();
67| foreach ($library['variants'] as $variant_name => $variant) {
68| if ($variant['installed']) {
69| $variants[] = $variant_name;
70| }
71| }
mm still testing some modules that need Libraries, so not all are installed, including Colorbox. is this the reason why Drush is breaking?
Comments
Comment #1
tstoecklerI just re-tried this, and I'm not getting the error. As you can see in libraries_detect_library() 'installed' should always be set, so I don't know what is causing this. Can you post the output of libraries_info(), please? Thanks.
Comment #2
liza CreditAttribution: liza commentedam sorry, how do i do that? do i create a file? do i put it through devel?
thanx.
Comment #3
tstoecklerIf you have Drush you should be able to run
drush libraries-list
. Otherwise you can use either the Devel code block or the PHP filter to run the following code:Let me know, if you need any further help!
Comment #4
tstoecklerClosing this. Please re-open if you're still experiencing problems.