If using a drush make file for an installation profile build media_gallery_library() defaults to 'sites/all/libraries' as the 'media_gallery_library_path' however this may not be the case as drush make will default to profiles/INSTALL-PROFILE/libraries instead of 'sites/all/libraries'.

As such during installation the following error is generated.

Type	page not found
Date	Monday, February 27, 2012 - 5:18pm
User	admin
Message	sites/all/libraries/colorbox/colorbox/jquery.colorbox-min.js
Severity	warning

The file does exist at

Members fund testing for the Drupal project. Drupal Association Learn more


Moloc’s picture

Status: Active » Needs review
1.27 KB

For this task (finding the correct library-folder), there is the Library API module.

The applied patch will use that module, if it is installed.

As the module allows to change the path with the variable media_gallery_library_path, the patch changes some string-concatenation to be backward compatible.

jgraham’s picture

Patch works great, thanks!

lsolesen’s picture

lsolesen’s picture

Status: Needs review » Reviewed & tested by the community

The patch applies cleanly.

lsolesen’s picture

Status: Reviewed & tested by the community » Fixed

Status: Fixed » Closed (fixed)

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