Title: Deprecated constructor method
Last modified: August 31, 2016

---

# Deprecated constructor method

 *  [hxxrmonkey](https://wordpress.org/support/users/hxxrmonkey/)
 * (@hxxrmonkey)
 * [10 years, 1 month ago](https://wordpress.org/support/topic/deprecated-constructor-method/)
 * Catablog is using a deprecated constructor method, throwing errors all over my
   logs. Would be nice to get that fixed, shouldn’t take much effort.
 * [Sun Apr 24 07:35:04 2016] [error] [client 142.4.217.162] PHP Notice: The called
   constructor method for WP_Widget in CataBlogWidget is **deprecated** since version
   4.3.0! Use
 *     ```
       __construct()
       ```
   
 *  instead. in /public_html/wp-includes/functions.php on line 3722
    [Sun Apr 24
   07:35:04 2016] [error] [client 142.4.217.162] PHP Stack trace: [Sun Apr 24 07:
   35:04 2016] [error] [client 142.4.217.162] PHP 1. {main}() /public_html/index.
   php:0 [Sun Apr 24 07:35:04 2016] [error] [client 142.4.217.162] PHP 2. require()/
   public_html/index.php:17 [Sun Apr 24 07:35:04 2016] [error] [client 142.4.217.162]
   PHP 3. require_once() /public_html/wp-blog-header.php:13 [Sun Apr 24 07:35:04
   2016] [error] [client 142.4.217.162] PHP 4. require_once() /public_html/wp-load.
   php:37 [Sun Apr 24 07:35:04 2016] [error] [client 142.4.217.162] PHP 5. require_once()/
   public_html/wp-config.php:101 [Sun Apr 24 07:35:04 2016] [error] [client 142.4.217.162]
   PHP 6. do_action() /public_html/wp-settings.php:393 [Sun Apr 24 07:35:04 2016][
   error] [client 142.4.217.162] PHP 7. call_user_func_array:{/public_html/wp-includes/
   plugin.php:525}() /public_html/wp-includes/plugin.php:525 [Sun Apr 24 07:35:04
   2016] [error] [client 142.4.217.162] PHP 8. wp_widgets_init() /public_html/wp-
   includes/plugin.php:525 [Sun Apr 24 07:35:04 2016] [error] [client 142.4.217.162]
   PHP 9. do_action() /public_html/wp-includes/widgets.php:1475 [Sun Apr 24 07:35:
   04 2016] [error] [client 142.4.217.162] PHP 10. call_user_func_array:{/public_html/
   wp-includes/plugin.php:525}() /public_html/wp-includes/plugin.php:525 [Sun Apr
   24 07:35:04 2016] [error] [client 142.4.217.162] PHP 11. __lambda_func() /public_html/
   wp-includes/plugin.php:525 [Sun Apr 24 07:35:04 2016] [error] [client 142.4.217.162]
   PHP 12. register_widget() /public_html/wp-content/plugins/catablog/lib/CataBlog.
   class.php(126) : runtime-created function:1 [Sun Apr 24 07:35:04 2016] [error][
   client 142.4.217.162] PHP 13. WP_Widget_Factory->register() /public_html/wp-includes/
   widgets.php:113 [Sun Apr 24 07:35:04 2016] [error] [client 142.4.217.162] PHP
   14. CataBlogWidget->CataBlogWidget() /public_html/wp-includes/class-wp-widget-
   factory.php:57 [Sun Apr 24 07:35:04 2016] [error] [client 142.4.217.162] PHP 
   15. WP_Widget->WP_Widget()/public_html/wp-content/plugins/catablog/lib/CataBlogWidget.
   class.php:15 [Sun Apr 24 07:35:04 2016] [error] [client 142.4.217.162] PHP 16.
   _deprecated_constructor() /public_html/wp-includes/class-wp-widget.php:181 [Sun
   Apr 24 07:35:04 2016] [error] [client 142.4.217.162] PHP 17. trigger_error() /
   public_html/wp-includes/functions.php:3722
 * [https://wordpress.org/plugins/catablog/](https://wordpress.org/plugins/catablog/)

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

 *  [mbrsolution](https://wordpress.org/support/users/mbrsolution/)
 * (@mbrsolution)
 * [10 years, 1 month ago](https://wordpress.org/support/topic/deprecated-constructor-method/#post-7320317)
 * Hi, thank you for reporting this issue. I have submitted a message to the plugin
   developer to investigate further your finding.
 * Regards
 *  [mbrsolution](https://wordpress.org/support/users/mbrsolution/)
 * (@mbrsolution)
 * [9 years, 3 months ago](https://wordpress.org/support/topic/deprecated-constructor-method/#post-8814501)
 * Hi, have you resolves your issue? What PHP version is your server running?
    -  This reply was modified 9 years, 3 months ago by [mbrsolution](https://wordpress.org/support/users/mbrsolution/).
 *  Thread Starter [hxxrmonkey](https://wordpress.org/support/users/hxxrmonkey/)
 * (@hxxrmonkey)
 * [9 years, 3 months ago](https://wordpress.org/support/topic/deprecated-constructor-method/#post-8816624)
 * No we ended up turning off error reporting.
 *  [mbrsolution](https://wordpress.org/support/users/mbrsolution/)
 * (@mbrsolution)
 * [9 years, 3 months ago](https://wordpress.org/support/topic/deprecated-constructor-method/#post-8819006)
 * Do you know what PHP version your server is running?
 *  Thread Starter [hxxrmonkey](https://wordpress.org/support/users/hxxrmonkey/)
 * (@hxxrmonkey)
 * [9 years, 3 months ago](https://wordpress.org/support/topic/deprecated-constructor-method/#post-8819799)
 * 5.6
 *  [mbrsolution](https://wordpress.org/support/users/mbrsolution/)
 * (@mbrsolution)
 * [9 years, 3 months ago](https://wordpress.org/support/topic/deprecated-constructor-method/#post-8820861)
 * That is a good PHP version. What version of WordPress are you running? Did you
   ever try the following. Disable all of your other plugins except this one and
   carrying out a test?

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

The topic ‘Deprecated constructor method’ is closed to new replies.

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

## Tags

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

 * 6 replies
 * 2 participants
 * Last reply from: [mbrsolution](https://wordpress.org/support/users/mbrsolution/)
 * Last activity: [9 years, 3 months ago](https://wordpress.org/support/topic/deprecated-constructor-method/#post-8820861)
 * Status: not resolved