Title: V2.0.9 Javascript error &#8211; plugin not working
Last modified: June 9, 2017

---

# V2.0.9 Javascript error – plugin not working

 *  Resolved [tony08](https://wordpress.org/support/users/tony08/)
 * (@tony08)
 * [8 years, 12 months ago](https://wordpress.org/support/topic/v2-0-9-javascript-error-plugin-not-working/)
 * After updating the plugin the lightbox doesn’t seem to work anymore. It’s giving
   this console error in firefox, ie11. I already rolled back the plugin to the 
   previous version and it works again. Please fix this so I can update the plugin.
 * Console error:
 *  SCRIPT5007: Unable to get property ‘0’ of undefined or null reference
    lightbox.
   js (398,9)
 * -> lightbox.js
 *     ```
       switch($object.settings.openCloseType[0]){
                   case 'open_1':
                   case 'open_2':
                   case 'open_3':
                   case 'open_4':
                   case 'open_5':
                   case 'open_1_r':
                   case 'open_2_r':
                   case 'open_3_r':
                   case 'open_4_r':
                   case 'open_5_r':
                       setTimeout(function(){
                           $object.$cont.addClass('rwd-visible');
                           $('.rwd-container').addClass($object.settings.openCloseType[0]);
                       }, 0);
                       break;
                   default:
                       $('.rwd-container').addClass($object.settings.openCloseType[0]);
                       setTimeout(function () {
                           $object.$cont.addClass('rwd-visible');
                       }, this.settings.overlayDuration);
                       break;
               }
       ```
   

Viewing 6 replies - 1 through 6 (of 6 total)

 *  [huge-it-support-1](https://wordpress.org/support/users/huge-it-support-1/)
 * (@huge-it-support-1)
 * [8 years, 12 months ago](https://wordpress.org/support/topic/v2-0-9-javascript-error-plugin-not-working/#post-9215167)
 * Dear tony08,
 * Thank you for contacting us.
 * Please, be kindly informed that we have checked the error in your console.
    This
   error is definitely related to the database and is site-specific as we do not
   have this kind of errors. Could you, please, send us your PHP version, and we
   will try to test.
 * Regards
    -  This reply was modified 8 years, 12 months ago by [huge-it-support-1](https://wordpress.org/support/users/huge-it-support-1/).
 *  Thread Starter [tony08](https://wordpress.org/support/users/tony08/)
 * (@tony08)
 * [8 years, 12 months ago](https://wordpress.org/support/topic/v2-0-9-javascript-error-plugin-not-working/#post-9219012)
 * Hello,
 * Thank you for your reply. We are using PHP Version 7.1.1.
 *  [huge-it-support-1](https://wordpress.org/support/users/huge-it-support-1/)
 * (@huge-it-support-1)
 * [8 years, 12 months ago](https://wordpress.org/support/topic/v2-0-9-javascript-error-plugin-not-working/#post-9222455)
 * Dear tony08,
 * Thank you for the additional information.
    Please, be kindly informed that we
   have tested it at our end and faced no issue. As we could understand the issue
   comes from the database. Seems like something is wrong with database parameters
   values. In the case, if you could contact us directly on our website, which is
   Huge-IT.com or use this contact us form [https://huge-it.com/contact-us/](https://huge-it.com/contact-us/)
   we will be happy to investigate the case deeper and offer you an appropriate 
   solution.
 * Please, include this forum link to the email.
 * Looking forward to hearing from you soon.
    Regards,
 *  [drjoe66](https://wordpress.org/support/users/drjoe66/)
 * (@drjoe66)
 * [8 years, 12 months ago](https://wordpress.org/support/topic/v2-0-9-javascript-error-plugin-not-working/#post-9222648)
 * Hi,
    we have the same Problem with our site and Huge IT Lightbox. I’ve send you
   an email through your contact form.
 * Regards, Johannes
 * Wordpress: 4.8
    Huge IT Lightbox: 2.0.9 PHP: 5.6 MySQL: 5.5 URL: [http://hms.netperformers.de/referenzen/neubau-3-familienwohnhaus-in-der-altstadt-von-schwalbach-am-taunus/](http://hms.netperformers.de/referenzen/neubau-3-familienwohnhaus-in-der-altstadt-von-schwalbach-am-taunus/)
    -  This reply was modified 8 years, 12 months ago by [drjoe66](https://wordpress.org/support/users/drjoe66/).
 *  [huge-it-support-1](https://wordpress.org/support/users/huge-it-support-1/)
 * (@huge-it-support-1)
 * [8 years, 12 months ago](https://wordpress.org/support/topic/v2-0-9-javascript-error-plugin-not-working/#post-9226287)
 * Dear drjoe66,
 * Thank you for contacting us.
 * Please, be kindly informed that our support team department has already replied
   to your email.
    In the case, if you do not see it in the inbox, please, check
   your spam folder as well.
 * Regards,
 *  [huge-it-support-1](https://wordpress.org/support/users/huge-it-support-1/)
 * (@huge-it-support-1)
 * [8 years, 11 months ago](https://wordpress.org/support/topic/v2-0-9-javascript-error-plugin-not-working/#post-9261789)
 * It has been one week, we are marking the ticket as resolved, because it is site
   specific and we have got no reply. Feel free to reply at any time with more information
   on this issue or un-resolve the topic if you do return to the ticket with a reply.

Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘V2.0.9 Javascript error – plugin not working’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/lightbox_2d8f90.svg)
 * [Lightbox](https://wordpress.org/plugins/lightbox/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/lightbox/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/lightbox/)
 * [Active Topics](https://wordpress.org/support/plugin/lightbox/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/lightbox/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/lightbox/reviews/)

 * 6 replies
 * 3 participants
 * Last reply from: [huge-it-support-1](https://wordpress.org/support/users/huge-it-support-1/)
 * Last activity: [8 years, 11 months ago](https://wordpress.org/support/topic/v2-0-9-javascript-error-plugin-not-working/#post-9261789)
 * Status: resolved