I had this error this morning, May 25 , 2015. The only fix was to remove it entirely so far. Any suggestions ? thanks

$ drush dl colorbox
Project colorbox (7.x-2.8) downloaded to /var/www/visitmiddlesex.ca/sites/all/modules/colorbox. [success]
rprice@dcvmub5:/var/www/visitmiddlesex.ca$ drush en colorbox
PHP Fatal error: Call to undefined function libraries_load() in /var/www/visitmiddlesex.ca/sites/all/modules/colorbox/colorbox.module on line 223
Drush command terminated abnormally due to an unrecoverable error. [error]
Error: Call to undefined function libraries_load() in /var/www/visitmiddlesex.ca/sites/all/modules/colorbox/colorbox.module, line 223

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

ryanprice_middlesex’s picture

B00N’s picture

Maybe you have to update the libraries module: https://www.drupal.org/project/libraries

Skomli’s picture

Had this problem also. Problem was, I had Libraries 1.0 installed. Updating Libraries to 2.2 fixed the problem for me.

justinmello32’s picture

Same problem, I was supporting an older Drupal 7 site and giving some errors when updating colorbox module. After updating libraries module to 7.x-2.5, it successful resolved issues.

Probably ok to mark this issue as resolved?

ishani.addweb’s picture

@ryanprice_middlesex, Please find my attached solution which works for me when I got the same error on module install.

ishani.addweb’s picture

Status: Active » Needs review

Status: Needs review » Needs work

The last submitted patch, 5: colorbox-2494529-4.patch, failed testing. View results

Neslee Canil Pinto’s picture

Status: Needs work » Closed (cannot reproduce)
Neslee Canil Pinto’s picture

Status: Closed (cannot reproduce) » Needs review

Neslee Canil Pinto’s picture

Status: Needs review » Fixed
jabeler’s picture

The change in #10 is filling the Drupal logs with PHP errors.

Warning: Use of undefined constant libraries_load - assumed 'libraries_load' (this will throw an Error in a future version of PHP) in _colorbox_doheader() (line 225 of /home/xxx/public_html/sites/all/modules/colorbox/colorbox.module).

Changing libraries_load to 'libraries_load' on line 225 of colorbox.module suppresses the errors.

Neslee Canil Pinto’s picture

Reverted , thanks for the information

Status: Fixed » Closed (fixed)

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