Title: Undefined variable.
Last modified: August 21, 2016

---

# Undefined variable.

 *  Resolved [studiorusty](https://wordpress.org/support/users/studiorusty/)
 * (@studiorusty)
 * [12 years, 10 months ago](https://wordpress.org/support/topic/undefined-variable-5/)
 * Hello,
 * I have just installed the plugin, which is great by the way but on my live server
   I get this Notice and I dont know how to fix it.
 * The error is: Notice: Undefined variable: type in /home/beachwed/public_html/
   wp-content/plugins/responsive-gallery-grid/gallerygrid.php on line 46
 * Can someone help me? Thank you!
 * [http://wordpress.org/extend/plugins/responsive-gallery-grid/](http://wordpress.org/extend/plugins/responsive-gallery-grid/)

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

 *  Plugin Author [Jules Colle](https://wordpress.org/support/users/jules-colle/)
 * (@jules-colle)
 * [12 years, 10 months ago](https://wordpress.org/support/topic/undefined-variable-5/#post-3946621)
 * Thanks, will try to fix this in the next update. For now you’d better disable
   PHP notifications by adding this on top of your functions.php file:
    `<?php error_reporting(
   E_ALL ^ E_NOTICE); ?>`
 *  Thread Starter [studiorusty](https://wordpress.org/support/users/studiorusty/)
 * (@studiorusty)
 * [12 years, 9 months ago](https://wordpress.org/support/topic/undefined-variable-5/#post-3946631)
 * Ok, that did the trick. Thank you!
 *  Thread Starter [studiorusty](https://wordpress.org/support/users/studiorusty/)
 * (@studiorusty)
 * [12 years, 9 months ago](https://wordpress.org/support/topic/undefined-variable-5/#post-3946633)
 * Update: That actualy broke my website, I’ve restored my functions and set debug
   to fals in wp-config.php.
 * define(‘WP_DEBUG’, false);
 *  Plugin Author [Jules Colle](https://wordpress.org/support/users/jules-colle/)
 * (@jules-colle)
 * [12 years, 9 months ago](https://wordpress.org/support/topic/undefined-variable-5/#post-3946635)
 * Good to know. Looks like the correct way is to change it in wp-config.php indeed.
   I wasn’t aware of that option.
 *  Plugin Author [Jules Colle](https://wordpress.org/support/users/jules-colle/)
 * (@jules-colle)
 * [12 years, 8 months ago](https://wordpress.org/support/topic/undefined-variable-5/#post-3946686)
 * It should be fixed in the latest version.

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

The topic ‘Undefined variable.’ is closed to new replies.

 * ![](https://ps.w.org/responsive-gallery-grid/assets/icon-256x256.png?rev=2072597)
 * [Responsive Gallery Grid](https://wordpress.org/plugins/responsive-gallery-grid/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/responsive-gallery-grid/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/responsive-gallery-grid/)
 * [Active Topics](https://wordpress.org/support/plugin/responsive-gallery-grid/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/responsive-gallery-grid/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/responsive-gallery-grid/reviews/)

## Tags

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

 * 5 replies
 * 2 participants
 * Last reply from: [Jules Colle](https://wordpress.org/support/users/jules-colle/)
 * Last activity: [12 years, 8 months ago](https://wordpress.org/support/topic/undefined-variable-5/#post-3946686)
 * Status: resolved