Take the 2-minute tour ×
Drupal Answers is a question and answer site for Drupal developers and administrators. It's 100% free, no registration required.

I followed the instructions and installed the Colorbox plugin, the Colorbox module, and the Libraries API module. For some reson, when I go to the Modules pages and try and enable the Colorbox module, it says Requires: Libraries (2.x) (incompatible with version ). Even though libraries 2.x has been installed. I can't figure out what I'm doing wrong.

share|improve this question
add comment

2 Answers

up vote 3 down vote accepted

It should just happen when the Libraries API doesn't contains the version line in libraries.info. That would explain why the message doesn't report the Library API version.

I made a test on my test site. On the .info file for a custom module I added the following line.

dependencies[] = libraries (2.x)

In the libraries.info file, I removed the following line.

version = "7.x-2.0+5-dev"

When I visited the module page, I saw the following message for my custom module:

Requires: Libraries (2.x) (incompatible with version )

screenshot

I thought it would happen when the installed module was a development snapshot, but it's not true. If I add the line I removed, all back to normality, even if I installed the development snapshot of the Libraries API module.

screenshot

If you copied the Libraries API files from a Git repository, the libraries.info file is missing the version line, and that would explain the message error you see.

Removing the version from the dependency line is fine, as long as you don't install the Libraries API module 1.x by mistake.

share|improve this answer
    
your solution makes perfect sense .... I did chack out from git –  user379468 Nov 25 '12 at 18:51
add comment

I'm not sure why, but I was able to fix it simply be changing the module requirements from dependencies[] = libraries (2.x) to dependencies[] = libraries for some reason, even though I had libraries 2.x installed, colorbox thought I didn't

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.