Title: Undefined elements from debug mode
Last modified: September 1, 2016

---

# Undefined elements from debug mode

 *  Resolved [aecorn](https://wordpress.org/support/users/aecorn/)
 * (@aecorn)
 * [9 years, 11 months ago](https://wordpress.org/support/topic/undefined-elements-from-debug-mode/)
 * When setting the site to debug mode I get the errors below, Ive changed the theme
   to “twentyfifteen”, so I dont think its my themes fault. Is this an issue with
   the plugin’s core php-files?
 *     ```
       Notice: Undefined index: type in /wp-content/plugins/simplest-gallery/simplest-gallery.php on line 322
   
       Notice: Undefined variable: gallid in /wp-content/plugins/simplest-gallery/lightbox.php on line 93
   
       Notice: Undefined variable: gallid in /wp-content/plugins/simplest-gallery/lightbox.php on line 96
   
       Notice: Undefined variable: gallid in /wp-content/plugins/simplest-gallery/lightbox.php on line 102
   
       Notice: Undefined variable: gallid in /wp-content/plugins/simplest-gallery/lightbox.php on line 105
   
       Notice: Undefined variable: gallid in /wp-content/plugins/simplest-gallery/lightbox.php on line 137
   
       Notice: Undefined variable: gallid in /wp-content/plugins/simplest-gallery/lightbox.php on line 137
   
       Notice: Undefined variable: gallid in /wp-content/plugins/simplest-gallery/lightbox.php on line 143
   
       Notice: Undefined variable: gallid in /wp-content/plugins/simplest-gallery/lightbox.php on line 143
   
       Notice: Undefined variable: gallid in /wp-content/plugins/simplest-gallery/lightbox.php on line 143
   
       Notice: Undefined variable: gallid in /wp-content/plugins/simplest-gallery/lightbox.php on line 143
   
       Notice: Undefined variable: gallid in /wp-content/plugins/simplest-gallery/lightbox.php on line 143
   
       Notice: Undefined variable: gallid in /wp-content/plugins/simplest-gallery/lightbox.php on line 143
       ```
   
 * [https://wordpress.org/plugins/simplest-gallery/](https://wordpress.org/plugins/simplest-gallery/)

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

 *  Plugin Author [cleoni](https://wordpress.org/support/users/cleoni/)
 * (@cleoni)
 * [9 years, 11 months ago](https://wordpress.org/support/topic/undefined-elements-from-debug-mode/#post-7507163)
 * Hello, thanks for telling us, this needs fixing.
 * Please note, however, that notices are not strictly errors, just advices for 
   a better code. They should be turned off in all production environments.
 * It will be surely fixed in the next release, though.
 *  Plugin Author [cleoni](https://wordpress.org/support/users/cleoni/)
 * (@cleoni)
 * [9 years, 11 months ago](https://wordpress.org/support/topic/undefined-elements-from-debug-mode/#post-7507164)
 * After a quick inspection I have seen it was easy to fix, so I already did it.
 * I have not released a new version but simply modified the current, so if you 
   uninstall/reinstall the plugin it should be all fixed on your site too.
 * Thanks for reporting this issue, you have been very helpful.
 *  Thread Starter [aecorn](https://wordpress.org/support/users/aecorn/)
 * (@aecorn)
 * [9 years, 11 months ago](https://wordpress.org/support/topic/undefined-elements-from-debug-mode/#post-7507165)
 * Thank you for a quick fix!

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

The topic ‘Undefined elements from debug mode’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/simplest-gallery_fcf1d1.svg)
 * [Simplest Gallery Plugin](https://wordpress.org/plugins/simplest-gallery/)
 * [Support Threads](https://wordpress.org/support/plugin/simplest-gallery/)
 * [Active Topics](https://wordpress.org/support/plugin/simplest-gallery/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/simplest-gallery/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/simplest-gallery/reviews/)

## Tags

 * [undefined](https://wordpress.org/support/topic-tag/undefined/)

 * 3 replies
 * 2 participants
 * Last reply from: [aecorn](https://wordpress.org/support/users/aecorn/)
 * Last activity: [9 years, 11 months ago](https://wordpress.org/support/topic/undefined-elements-from-debug-mode/#post-7507165)
 * Status: resolved