Title: <abbr title="Not Safe For Work / Mature content">[NSFW]</abbr> Undefined variable
Last modified: September 16, 2022

---

# [NSFW] Undefined variable

 *  Resolved [mcmurry](https://wordpress.org/support/users/mcmurry/)
 * (@mcmurry)
 * [3 years, 8 months ago](https://wordpress.org/support/topic/undefined-variable-88/)
 * Hello,
 * I am receiving the following notice with Easy Marijuana Age Verify Premium:
 * Notice: Undefined variable: color in /var/www/pom420.com/public_html/wp-content/
   plugins/easy-marijuana-age-verify-premium/includes/functions.php on line 450
 * Notice: Undefined offset: 1 in /var/www/pom420.com/public_html/wp-content/plugins/
   easy-marijuana-age-verify-premium/includes/class-easy-marijuana-age-verify.php
   on line 289
 * Notice: Undefined offset: 2 in /var/www/pom420.com/public_html/wp-content/plugins/
   easy-marijuana-age-verify-premium/includes/class-easy-marijuana-age-verify.php
   on line 290
 * Here’s my current php debug settings:
    define( ‘WP_DEBUG’, false ); define( ‘
   WP_DEBUG_LOG’, true ); define(‘WP_DEBUG_DISPLAY’, false);
 * I’ve been able to suppress the notice from being displayed by setting WP_DEBUG_DISPLAY
   to false but this appears to be a bug in the plugin’s code.
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fundefined-variable-88%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 1 replies (of 1 total)

 *  Plugin Author [5 Star Plugins (Rob)](https://wordpress.org/support/users/5starplugins/)
 * (@5starplugins)
 * [3 years, 8 months ago](https://wordpress.org/support/topic/undefined-variable-88/#post-16018410)
 * Hi [@mcmurry](https://wordpress.org/support/users/mcmurry/) PHP notices are not
   errors and should not affect the web site functionality, and WP_DEBUG_DISPLAY
   should be set to false for all live sites.
 * That said, we will make a note of these notices and see if we can address them
   so that the variables and offsets are not undefined when using the plugin, it
   may be a certain combination of options that is causing that to happen.
 * Thanks for sending those in, and look for an update to the plugin that resolves
   those notices from being shown with DEBUG is set to display on the site.

Viewing 1 replies (of 1 total)

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

 * ![](https://ps.w.org/easy-marijuana-age-verify/assets/icon-256x256.gif?rev=2770789)
 * [Marijuana Age Verify](https://wordpress.org/plugins/easy-marijuana-age-verify/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/easy-marijuana-age-verify/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/easy-marijuana-age-verify/)
 * [Active Topics](https://wordpress.org/support/plugin/easy-marijuana-age-verify/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/easy-marijuana-age-verify/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/easy-marijuana-age-verify/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [5 Star Plugins (Rob)](https://wordpress.org/support/users/5starplugins/)
 * Last activity: [3 years, 8 months ago](https://wordpress.org/support/topic/undefined-variable-88/#post-16018410)
 * Status: resolved