Title: [Plugin: Widgets Reloaded] WP_DEBUG errors &#8211; undefined constant
Last modified: August 20, 2016

---

# [Plugin: Widgets Reloaded] WP_DEBUG errors – undefined constant

 *  Resolved [WebEndev](https://wordpress.org/support/users/munman/)
 * (@munman)
 * [14 years, 8 months ago](https://wordpress.org/support/topic/plugin-widgets-reloaded-wp_debug-errors-undefined-constant/)
 * I was troubleshooting another issue in wp_debug and got these when activating
   the plugin. FYI
 * Notice: Use of undefined constant WIDGETS_RELOADED_DIR – assumed ‘WIDGETS_RELOADED_DIR’
   in siteurl\wp-content\plugins\widgets-reloaded\widgets-reloaded.php on line 39
 * Notice: Use of undefined constant WIDGETS_RELOADED_URL – assumed ‘WIDGETS_RELOADED_URL’
   in siteurl\wp-content\plugins\widgets-reloaded\widgets-reloaded.php on line 42
 * [http://wordpress.org/extend/plugins/widgets-reloaded/](http://wordpress.org/extend/plugins/widgets-reloaded/)

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

 *  [Ivaylo Draganov](https://wordpress.org/support/users/dragunoff/)
 * (@dragunoff)
 * [14 years, 7 months ago](https://wordpress.org/support/topic/plugin-widgets-reloaded-wp_debug-errors-undefined-constant/#post-2283748)
 * Hi,
 * That’s just a PHP notice – it won’t break anything, but it is annoying. To fix
   it simply add quotes around WIDGETS_RELOADED_DIR on lines 39 and 42, here’s an
   excerpt:
 *     ```
       /* Set constant path to the members plugin directory. */
       	define( 'WIDGETS_RELOADED_DIR', plugin_dir_path( __FILE__ ) );
   
       	/* Set constant path to the members plugin directory. */
       	define( 'WIDGETS_RELOADED_URL', plugin_dir_url( __FILE__ ) );
       ```
   
 * Cheers!
 *  Thread Starter [WebEndev](https://wordpress.org/support/users/munman/)
 * (@munman)
 * [14 years, 7 months ago](https://wordpress.org/support/topic/plugin-widgets-reloaded-wp_debug-errors-undefined-constant/#post-2283749)
 * Hi dragunoff
 * Yes, I did realize that it was just a notice, and would not affect anything. 
   I just wanted the dev to know about it so that it can be corrected in a future
   release.
 * Thanks

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

The topic ‘[Plugin: Widgets Reloaded] WP_DEBUG errors – undefined constant’ is closed
to new replies.

 * ![](https://ps.w.org/widgets-reloaded/assets/icon-256x256.png?rev=1733875)
 * [Widgets Reloaded](https://wordpress.org/plugins/widgets-reloaded/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/widgets-reloaded/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/widgets-reloaded/)
 * [Active Topics](https://wordpress.org/support/plugin/widgets-reloaded/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/widgets-reloaded/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/widgets-reloaded/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [WebEndev](https://wordpress.org/support/users/munman/)
 * Last activity: [14 years, 7 months ago](https://wordpress.org/support/topic/plugin-widgets-reloaded-wp_debug-errors-undefined-constant/#post-2283749)
 * Status: resolved