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
Comment | File | Size | Author |
---|---|---|---|
#5 | colorbox-2494529-4.patch | 492 bytes | ishani.addweb |
Comments
Comment #1
ryanprice_middlesex CreditAttribution: ryanprice_middlesex as a volunteer commentedComment #2
B00N CreditAttribution: B00N as a volunteer commentedMaybe you have to update the libraries module: https://www.drupal.org/project/libraries
Comment #3
Skomli CreditAttribution: Skomli commentedHad this problem also. Problem was, I had Libraries 1.0 installed. Updating Libraries to 2.2 fixed the problem for me.
Comment #4
justinmello32 CreditAttribution: justinmello32 as a volunteer commentedSame 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?
Comment #5
ishani.addweb CreditAttribution: ishani.addweb at AddWeb Solution Pvt. Ltd. commented@ryanprice_middlesex, Please find my attached solution which works for me when I got the same error on module install.
Comment #6
ishani.addweb CreditAttribution: ishani.addweb at AddWeb Solution Pvt. Ltd. commentedComment #8
Neslee Canil PintoComment #9
Neslee Canil PintoComment #11
Neslee Canil PintoComment #12
jabeler CreditAttribution: jabeler commentedThe 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.Comment #14
Neslee Canil PintoReverted , thanks for the information