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
Location	http://192.168.56.101/sites/all/libraries/colorbox/colorbox/jquery.colorbox-min.js?v=1.3.9
Referrer	http://192.168.56.101/install.php?profile=INSTALL-PROFILE&locale=en
Message	sites/all/libraries/colorbox/colorbox/jquery.colorbox-min.js
Severity	warning
Hostname	192.168.56.1
Operations	

The file does exist at http://192.168.56.101/profiles/INSTALL-PROFILE/libraries/colorbox/colorb...

Files: 

Comments

Moloc’s picture

Status: Active » Needs review
FileSize
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.