I installed Media Gallery and it appeared to work fine, but I did remember seeing from the beginning an error message:

Warning: file_get_contents(sites/all/libraries/colorbox/colorbox/jquery.colorbox-min.js) [function.file-get-contents]: failed to open stream: No such file or directory in _locale_parse_js_file() (line 1488 of /path/to/my/site/includes/locale.inc).

This normally shows up after I clear the cache.

Initially the colorbox would work unless I got the error. In that case I would resave the gallery page and it would work again. Now, that doesn't even work. I can't get the thumbnails to open in Colorbox.

I'm using:

Drupal core 7.22

Colorbox 7.x-2.4
Entity API 7.x-1.1
Libraries API 7.x-2.1
Media 7.x-1.3
Media Browser Plus 7.x-1.0-beta3
Media: YouTube 7.x-2.0-rc3
Multiple forms 7.x-1.0
Plupload integration 7.x-1.1
Remote stream wrapper 7.x-1.0-beta4

The Colorbox library is: Version 1.4.15

Reports page is all green.

Comments

codeknitter’s picture

I had the same error until I moved the colorbox library into a sub-folder called colorbox:
/sites/all/libraries/colorbox/colorbox/jquery.colorbox-min.js

Double check that the jquery.colorbox-min.js file is in the location indicated by the path.

ar-jan’s picture

Version: 7.x-1.0-beta8 » 7.x-1.x-dev
Category: bug » task

Same thing. Looks like the file layout of the library was changed, so it seems like a good idea to update media_gallery for this.

Otherwise you need to duplicate the js file if you use the colorbox module, since their instructions say: Make sure the path to the plugin file becomes: "sites/all/libraries/colorbox/jquery.colorbox-min.js"

ar-jan’s picture

Title: Colorbox error, and full size opens in separate page instead of colorbox » Update jquery.colorbox-min.js path for newer colorbox library versions

Issue title.

For completeness, my error was: Warning: file_get_contents(sites/all/libraries/colorbox/colorbox/jquery.colorbox-min.js): failed to open stream: No such file or directory in drupal_build_js_cache() (line 4940 of includes/common.inc).

klonos’s picture

Status: Active » Closed (duplicate)