[SOLVED][Drupal Colorbox] Uncaught TypeError: Object # has no method 'colorbox'

| | 1 min read

Many Drupal users who were using the Colorbox module in their sites have encountered an "Uncaught TypeError: Object # has no method 'colorbox'" in the Javascript console of their browser. If you are facing the same issue with Colorbox in their module then continue reading to find out more.

As reported by Drupal users who fixed the error message, the problem lay with the fact that Colorbox was not set to load on certain pages. You can find it out from the Advanced Settings in /admin/config/media/colorbox. Simply removing the exception for node/add/* and node/*/edit will resolve the error message.

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.