Title: Error on line 4
Last modified: October 26, 2022

---

# Error on line 4

 *  Resolved [jellebuelens](https://wordpress.org/support/users/jellebuelens/)
 * (@jellebuelens)
 * [3 years, 9 months ago](https://wordpress.org/support/topic/error-on-line-4-2/)
 * I have this error since a few days:
    Warning: Undefined variable $open_gallery_in_lightbox
   in /customers/8/9/f/vvzkapelle.be/httpd.www/wp-content/plugins/nextgen-gallery/
   products/photocrati_nextgen/modules/nextgen_basic_album/templates/extended.php
   on line 4 Whats wrong?
 * Thanks!
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Ferror-on-line-4-2%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  Plugin Contributor [Imagely](https://wordpress.org/support/users/imagely/)
 * (@imagely)
 * [3 years, 9 months ago](https://wordpress.org/support/topic/error-on-line-4-2/#post-16134935)
 * [@jellebuelens](https://wordpress.org/support/users/jellebuelens/),
 * What lightbox effect do you use?
 *  Thread Starter [jellebuelens](https://wordpress.org/support/users/jellebuelens/)
 * (@jellebuelens)
 * [3 years, 9 months ago](https://wordpress.org/support/topic/error-on-line-4-2/#post-16134941)
 * where can i find it?
 *  Plugin Contributor [Imagely](https://wordpress.org/support/users/imagely/)
 * (@imagely)
 * [3 years, 9 months ago](https://wordpress.org/support/topic/error-on-line-4-2/#post-16134942)
 * By the way, that’s not a error but just a non functionally affecting warning 
   that you can hide by deactivating WP Debug mode from your site’s wp-config.php
   file.
 *  Thread Starter [jellebuelens](https://wordpress.org/support/users/jellebuelens/)
 * (@jellebuelens)
 * [3 years, 9 months ago](https://wordpress.org/support/topic/error-on-line-4-2/#post-16134972)
 * debug is off. still showing
 *  Plugin Contributor [Imagely](https://wordpress.org/support/users/imagely/)
 * (@imagely)
 * [3 years, 9 months ago](https://wordpress.org/support/topic/error-on-line-4-2/#post-16134989)
 * Try using:
 *     ```
       ini_set('display_errors','Off');
       ini_set('error_reporting', E_ALL );
       define('WP_DEBUG', false);
       define('WP_DEBUG_DISPLAY', false);
       ```
   
 *  Thread Starter [jellebuelens](https://wordpress.org/support/users/jellebuelens/)
 * (@jellebuelens)
 * [3 years, 9 months ago](https://wordpress.org/support/topic/error-on-line-4-2/#post-16135009)
 * not working 🙁
 *  Plugin Contributor [Imagely](https://wordpress.org/support/users/imagely/)
 * (@imagely)
 * [3 years, 9 months ago](https://wordpress.org/support/topic/error-on-line-4-2/#post-16135035)
 * It actually works but NextGen caches its views so you’ll have to either wait 
   for it to clear by itself after some time or refresh the page adding `?1` to 
   the URL as below to force NextGen reload the view:
 * [https://vvzkapelle.be/media/fotoboek/?1](https://vvzkapelle.be/media/fotoboek/?1)
    -  This reply was modified 3 years, 9 months ago by [Imagely](https://wordpress.org/support/users/imagely/).

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

The topic ‘Error on line 4’ is closed to new replies.

 * ![](https://ps.w.org/nextgen-gallery/assets/icon-256x256.png?rev=2083961)
 * [Photo Gallery, Sliders, Proofing and Themes - NextGEN Gallery](https://wordpress.org/plugins/nextgen-gallery/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/nextgen-gallery/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/nextgen-gallery/)
 * [Active Topics](https://wordpress.org/support/plugin/nextgen-gallery/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/nextgen-gallery/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/nextgen-gallery/reviews/)

 * 7 replies
 * 2 participants
 * Last reply from: [Imagely](https://wordpress.org/support/users/imagely/)
 * Last activity: [3 years, 9 months ago](https://wordpress.org/support/topic/error-on-line-4-2/#post-16135035)
 * Status: resolved