Title: WP_DEBUG causes PHP warnings
Last modified: August 21, 2016

---

# WP_DEBUG causes PHP warnings

 *  [edik](https://wordpress.org/support/users/plocha/)
 * (@plocha)
 * [12 years, 7 months ago](https://wordpress.org/support/topic/wp_debug-causes-php-warnings/)
 * Hi,
    WordPress generates deprecation notices if I set WB_DEBUG to true. The deprecated
   function calls are:
    - load_plugin_textdomain
    - register_sidebar_widget
    - register_widget_control
    - register_sidebar_widget
 * On newer WP versions there are maybe more warnings.
 * In addition, I get the following PHP notice:
 * > Notice: Undefined index: statpress_action in /var/www/wordpress/wp-content/
   > plugins/statpress/statpress.php on line 149
 * If you do not have much time, I can maybe write a patch some day.
 * [http://wordpress.org/plugins/statpress/](http://wordpress.org/plugins/statpress/)

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

 *  [gverhaeg](https://wordpress.org/support/users/gverhaeg/)
 * (@gverhaeg)
 * [12 years, 3 months ago](https://wordpress.org/support/topic/wp_debug-causes-php-warnings/#post-4242737)
 * I just installed your plugin now and I received the same error messages
 * Many thanks to correct this quickly
 *  [carestad](https://wordpress.org/support/users/carestad/)
 * (@carestad)
 * [12 years ago](https://wordpress.org/support/topic/wp_debug-causes-php-warnings/#post-4242758)
 * Yes, and the use of eregi() is also deprecated in newer PHP versions, so please
   fix this

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

The topic ‘WP_DEBUG causes PHP warnings’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/statpress.svg)
 * [StatPress](https://wordpress.org/plugins/statpress/)
 * [Support Threads](https://wordpress.org/support/plugin/statpress/)
 * [Active Topics](https://wordpress.org/support/plugin/statpress/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/statpress/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/statpress/reviews/)

## Tags

 * [deprecation](https://wordpress.org/support/topic-tag/deprecation/)
 * [notice](https://wordpress.org/support/topic-tag/notice/)
 * [PHP Warning](https://wordpress.org/support/topic-tag/php-warning/)
 * [wp_debug](https://wordpress.org/support/topic-tag/wp_debug/)

 * 2 replies
 * 3 participants
 * Last reply from: [carestad](https://wordpress.org/support/users/carestad/)
 * Last activity: [12 years ago](https://wordpress.org/support/topic/wp_debug-causes-php-warnings/#post-4242758)
 * Status: not resolved