Title: Incorrectly defined constants causing PHP notices
Last modified: August 30, 2016

---

# Incorrectly defined constants causing PHP notices

 *  [Camden Segal](https://wordpress.org/support/users/camdensegal/)
 * (@camdensegal)
 * [11 years ago](https://wordpress.org/support/topic/incorrectly-defined-constants-causing-php-notices/)
 * Hi there, I noticed there is a small issue with this plugin causing notices to
   be triggered when debugging is on.
 * On lines 12 & 13 of addthis-bar.php the define functions are being called without
   the new constant names in quotes, this leads to the notices:
 * Notice: Use of undefined constant ADDTHIS_WELCOME_PRODUCT_CODE – assumed ‘ADDTHIS_WELCOME_PRODUCT_CODE’
 * Notice: Use of undefined constant ADDTHIS_WELCOME_AT_VERSION – assumed ‘ADDTHIS_WELCOME_AT_VERSION’
 * If you just wrap the constants on those lines in quotes it will be all fixed!
 * Thanks,
    Camden
 * [https://wordpress.org/plugins/addthis-welcome/](https://wordpress.org/plugins/addthis-welcome/)

The topic ‘Incorrectly defined constants causing PHP notices’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/addthis-welcome.svg)
 * [AddThis Welcome Bar](https://wordpress.org/plugins/addthis-welcome/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/addthis-welcome/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/addthis-welcome/)
 * [Active Topics](https://wordpress.org/support/plugin/addthis-welcome/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/addthis-welcome/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/addthis-welcome/reviews/)

## Tags

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

 * 0 replies
 * 1 participant
 * Last reply from: [Camden Segal](https://wordpress.org/support/users/camdensegal/)
 * Last activity: [11 years ago](https://wordpress.org/support/topic/incorrectly-defined-constants-causing-php-notices/)
 * Status: not resolved