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
- The topic ‘Deprecated constructor method’ is closed to new replies.