Many Drupal users have reported encountering an error "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 colorbox_get_version() (line 300 of /home/[website]/public_html/dir/sites/all/modules/colorbox/colorbox.module)" when trying to use the Drupal Colorbox module. The same users had also reported that the status reports returned a "Colorbox plugin At least 1.3.6 You need to download the Colorbox plugin and extract the entire contents of the archive into the sites/all/libraries folder of your server." message. If you are encountering the same situation in your Drupal site then read on to know the fix.
Here is the solution
- Check if the public_html/dir/sites/all/libraries/colorbox/colorbox/jquery.colorbox-min.js file exists in your filesystem
- The default installation will only provide a public_html/dir/sites/all/libraries/colorbox/jquery.colorbox-min.js file which is not sufficient
- Go to http://www.jacklmoore.com/colorbox/colorbox.zip, download and unpack the colorbox.zip file in "sites/all/libraries" and you will automatically get the required folders
- Finally make sure that all Colorbox directories have the file permission - 755 as they come packed with 700
Hope that helps.
The easiest way to solve a Drupal issue is to hand it to the Drupal experts. We can provide a wide range of Drupal services to help you maintain and manage your Drupal websites. Get in touch with us to know more.