Title: Errors when I set WP Debug to true
Last modified: August 30, 2016

---

# Errors when I set WP Debug to true

 *  Resolved [getmechamot](https://wordpress.org/support/users/getmechamot/)
 * (@getmechamot)
 * [10 years, 7 months ago](https://wordpress.org/support/topic/errors-when-i-set-wp-debug-to-true/)
 * I enabled debug to solve some issues and see this wave of errors from your plugin.
   I don’t even thing we have the widget showing anywhere!
 * Notice: Use of undefined constant PLUGIN_FILE – assumed ‘PLUGIN_FILE’ in /home/
   jcole1/public_html/bal/wp-content/plugins/google-analytics-counter-widget/ga-
   counter-widget.php on line 19
 * Notice: Use of undefined constant PLUGIN_DIR – assumed ‘PLUGIN_DIR’ in /home/
   jcole1/public_html/bal/wp-content/plugins/google-analytics-counter-widget/ga-
   counter-widget.php on line 20
 * Notice: Use of undefined constant PLUGIN_VERSION – assumed ‘PLUGIN_VERSION’ in/
   home/jcole1/public_html/bal/wp-content/plugins/google-analytics-counter-widget/
   ga-counter-widget.php on line 21
 * Notice: Use of undefined constant PLUGIN_ID – assumed ‘PLUGIN_ID’ in /home/jcole1/
   public_html/bal/wp-content/plugins/google-analytics-counter-widget/include/global-
   defines.php on line 3
 * Notice: Use of undefined constant WIDGET_CLASS – assumed ‘WIDGET_CLASS’ in /home/
   jcole1/public_html/bal/wp-content/plugins/google-analytics-counter-widget/include/
   global-defines.php on line 4
 * Notice: Use of undefined constant WIDGET_FIELD_START_DATE – assumed ‘WIDGET_FIELD_START_DATE’
   in /home/jcole1/public_html/bal/wp-content/plugins/google-analytics-counter-widget/
   include/global-defines.php on line 5
 * Notice: Use of undefined constant WIDGET_HTML_HOOK – assumed ‘WIDGET_HTML_HOOK’
   in /home/jcole1/public_html/bal/wp-content/plugins/google-analytics-counter-widget/
   include/global-defines.php on line 6
 * Notice: Use of undefined constant TEXT_DOMAIN – assumed ‘TEXT_DOMAIN’ in /home/
   jcole1/public_html/bal/wp-content/plugins/google-analytics-counter-widget/include/
   global-defines.php on line 8
 * Notice: Use of undefined constant SCRIPT_ID – assumed ‘SCRIPT_ID’ in /home/jcole1/
   public_html/bal/wp-content/plugins/google-analytics-counter-widget/include/global-
   defines.php on line 9
 * Notice: Use of undefined constant ADMIN_NOTICE_NAG_META – assumed ‘ADMIN_NOTICE_NAG_META’
   in /home/jcole1/public_html/bal/wp-content/plugins/google-analytics-counter-widget/
   include/global-defines.php on line 11
 * Notice: Use of undefined constant ADMIN_NOTICE_NAG_PARAM – assumed ‘ADMIN_NOTICE_NAG_PARAM’
   in /home/jcole1/public_html/bal/wp-content/plugins/google-analytics-counter-widget/
   include/global-defines.php on line 12
 * Notice: Use of undefined constant FIELD_AJAXTIMEOUT – assumed ‘FIELD_AJAXTIMEOUT’
   in /home/jcole1/public_html/bal/wp-content/plugins/google-analytics-counter-widget/
   classes/class-ga-counter-widget.php on line 3
 * Notice: Use of undefined constant FIELD_COUNTERTYPE – assumed ‘FIELD_COUNTERTYPE’
   in /home/jcole1/public_html/bal/wp-content/plugins/google-analytics-counter-widget/
   classes/class-ga-counter-widget.php on line 4
 * Notice: Use of undefined constant FIELD_CUSTOMCSS – assumed ‘FIELD_CUSTOMCSS’
   in /home/jcole1/public_html/bal/wp-content/plugins/google-analytics-counter-widget/
   classes/class-ga-counter-widget.php on line 5
 * Notice: Use of undefined constant FIELD_LABEL – assumed ‘FIELD_LABEL’ in /home/
   jcole1/public_html/bal/wp-content/plugins/google-analytics-counter-widget/classes/
   class-ga-counter-widget.php on line 6
 * Notice: Use of undefined constant FIELD_STARTDATE – assumed ‘FIELD_STARTDATE’
   in /home/jcole1/public_html/bal/wp-content/plugins/google-analytics-counter-widget/
   classes/class-ga-counter-widget.php on line 7
 * Notice: Use of undefined constant FIELD_TITLE – assumed ‘FIELD_TITLE’ in /home/
   jcole1/public_html/bal/wp-content/plugins/google-analytics-counter-widget/classes/
   class-ga-counter-widget.php on line 8
 * Notice: Use of undefined constant FIELD_TRANSIENT – assumed ‘FIELD_TRANSIENT’
   in /home/jcole1/public_html/bal/wp-content/plugins/google-analytics-counter-widget/
   classes/class-ga-counter-widget.php on line 9
 * Notice: Use of undefined constant FIELD_USEAJAX – assumed ‘FIELD_USEAJAX’ in /
   home/jcole1/public_html/bal/wp-content/plugins/google-analytics-counter-widget/
   classes/class-ga-counter-widget.php on line 10
 * Notice: Use of undefined constant TODAY – assumed ‘TODAY’ in /home/jcole1/public_html/
   bal/wp-content/plugins/google-analytics-counter-widget/classes/class-ga-counter-
   widget.php on line 12
 * Notice: Use of undefined constant ga_counter_widget_admin_notice – assumed ‘ga_counter_widget_admin_notice’
   in /home/jcole1/public_html/bal/wp-content/plugins/google-analytics-counter-widget/
   ga-counter-widget.php on line 63
 * Notice: Use of undefined constant ga_counter_widget_styles_registration – assumed‘
   ga_counter_widget_styles_registration’ in /home/jcole1/public_html/bal/wp-content/
   plugins/google-analytics-counter-widget/ga-counter-widget.php on line 106
 * Notice: Use of undefined constant ga_counter_widget_initialization – assumed ‘
   ga_counter_widget_initialization’ in /home/jcole1/public_html/bal/wp-content/
   plugins/google-analytics-counter-widget/ga-counter-widget.php on line 107
 * Notice: Use of undefined constant ga_counter_widget_registration – assumed ‘ga_counter_widget_registration’
   in /home/jcole1/public_html/bal/wp-content/plugins/google-analytics-counter-widget/
   ga-counter-widget.php on line 108
 * Notice: Use of undefined constant ga_counter_widget_activation – assumed ‘ga_counter_widget_activation’
   in /home/jcole1/public_html/bal/wp-content/plugins/google-analytics-counter-widget/
   ga-counter-widget.php on line 137
 * Notice: Use of undefined constant ga_counter_widget_uninstall – assumed ‘ga_counter_widget_uninstall’
   in /home/jcole1/public_html/bal/wp-content/plugins/google-analytics-counter-widget/
   ga-counter-widget.php on line 149
 * [https://wordpress.org/plugins/google-analytics-counter-widget/](https://wordpress.org/plugins/google-analytics-counter-widget/)

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

 *  Plugin Author [DareDevil73](https://wordpress.org/support/users/daredevil73/)
 * (@daredevil73)
 * [10 years, 7 months ago](https://wordpress.org/support/topic/errors-when-i-set-wp-debug-to-true/#post-6854297)
 * Hi, these are warnings, not errors.
 * I have just fixed them with release 1.0.0.
 * Have you yet tried? Does it solve your issue?
 * Thank you! 🙂
 *  Thread Starter [getmechamot](https://wordpress.org/support/users/getmechamot/)
 * (@getmechamot)
 * [10 years, 7 months ago](https://wordpress.org/support/topic/errors-when-i-set-wp-debug-to-true/#post-6854336)
 * I’ll let you know as soon as I can; we’re in the middle of switching the site
   to SSL and having certificate issues so the ftp side of things is not working
   correctly. I’ll reply later!
 *  Plugin Author [DareDevil73](https://wordpress.org/support/users/daredevil73/)
 * (@daredevil73)
 * [10 years, 6 months ago](https://wordpress.org/support/topic/errors-when-i-set-wp-debug-to-true/#post-6854403)
 * Thank you, let me know as soon as you can.
 *  Plugin Author [DareDevil73](https://wordpress.org/support/users/daredevil73/)
 * (@daredevil73)
 * [10 years, 6 months ago](https://wordpress.org/support/topic/errors-when-i-set-wp-debug-to-true/#post-6854467)
 * I checked my last last release and all warnings disappeared.
 * Can I set the issue as solved also for you?
 * Thank you!
 *  Thread Starter [getmechamot](https://wordpress.org/support/users/getmechamot/)
 * (@getmechamot)
 * [10 years, 6 months ago](https://wordpress.org/support/topic/errors-when-i-set-wp-debug-to-true/#post-6854468)
 * Sorry, thought my email response would get posted!
 * Yes, your changes made all those warnings go away – thank you so much!
 *  Plugin Author [DareDevil73](https://wordpress.org/support/users/daredevil73/)
 * (@daredevil73)
 * [10 years, 6 months ago](https://wordpress.org/support/topic/errors-when-i-set-wp-debug-to-true/#post-6854469)
 * Thank to you!

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

The topic ‘Errors when I set WP Debug to true’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/google-analytics-counter-widget_f6f6f6.
   svg)
 * [Google Analytics counter widget (for Google Analyticator)](https://wordpress.org/plugins/google-analytics-counter-widget/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/google-analytics-counter-widget/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/google-analytics-counter-widget/)
 * [Active Topics](https://wordpress.org/support/plugin/google-analytics-counter-widget/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/google-analytics-counter-widget/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/google-analytics-counter-widget/reviews/)

## Tags

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

 * 6 replies
 * 2 participants
 * Last reply from: [DareDevil73](https://wordpress.org/support/users/daredevil73/)
 * Last activity: [10 years, 6 months ago](https://wordpress.org/support/topic/errors-when-i-set-wp-debug-to-true/#post-6854469)
 * Status: resolved