Disable Colorbox Module Without Breaking Drupal Site?

I'm not using the Colorbox module on the site. It's greyed out because apparently other modules require it.

Would it be okay if I disabled using Drush, or would there be unforseen consequences?
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

I wouldn't. If it's grayed out, it means it's a requirement for another module, or a Feature (from the Features module). If you can determine which one it is (look at the Required by, etc. below the module's description) then see if you can disable that "parent" module.

Are you using a distribution by any chance? Or just the standard Drupal install?

sandshakimiAuthor Commented:
I'm using the OpenPublic distro.

This all stems from an error:

"Uncaught TypeError: Object[object Object] has no method 'colorbox'

I was looking for an easy solution, figure it was disabling the module.

Otherwise any ideas on how to fix?
That's what I figured. I wouldn't tinker with the requirements and dependencies. They could have disastrous results. I've seen it, lived through it, and fixed it. It's not pretty :)

Uncaught TypeError sounds like it's a jQuery error. Do you know what version of jQuery is running on the site? If you have jQuery Update installed you should be able to choose the version. Colorbox may require a higher version than you are running. In drupal 6 the default version was 1.3.2 and in D7 it's 1.5. With jQuery Update in D7 you can bring that to 1.7 or 1.8, I believe.

It's also possible that for some reason jQuery isn't being loaded onto the page. Check the source to see if jquery.js is being referenced in the <head></head> area.

That's where I would start. JavaScript/jQuery errors are not the most descriptive in the world.


Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Can you log into the website and go to the modules page and see what other modules are using it?
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.