{"id":7320047,"date":"2016-04-26T11:14:45","date_gmt":"2016-04-26T11:14:45","guid":{"rendered":"https:\/\/wordpress.org\/support\/topic\/deprecated-constructor-method\/"},"modified":"2016-08-31T16:55:56","modified_gmt":"2016-08-31T16:55:56","slug":"deprecated-constructor-method","status":"publish","type":"topic","link":"https:\/\/wordpress.org\/support\/topic\/deprecated-constructor-method\/","title":{"rendered":"Deprecated constructor method"},"content":{"rendered":"<p>Catablog is using a deprecated constructor method, throwing errors all over my logs. Would be nice to get that fixed, shouldn&#8217;t take much effort.<\/p>\n<p>[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 <strong>deprecated<\/strong> since version 4.3.0! Use<\/p>\n<pre>__construct()<\/pre>\n<p> instead. in \/public_html\/wp-includes\/functions.php on line 3722<br \/>\n[Sun Apr 24 07:35:04 2016] [error] [client 142.4.217.162] PHP Stack trace:<br \/>\n[Sun Apr 24 07:35:04 2016] [error] [client 142.4.217.162] PHP   1. {main}() \/public_html\/index.php:0<br \/>\n[Sun Apr 24 07:35:04 2016] [error] [client 142.4.217.162] PHP   2. require() \/public_html\/index.php:17<br \/>\n[Sun Apr 24 07:35:04 2016] [error] [client 142.4.217.162] PHP   3. require_once() \/public_html\/wp-blog-header.php:13<br \/>\n[Sun Apr 24 07:35:04 2016] [error] [client 142.4.217.162] PHP   4. require_once() \/public_html\/wp-load.php:37<br \/>\n[Sun Apr 24 07:35:04 2016] [error] [client 142.4.217.162] PHP   5. require_once() \/public_html\/wp-config.php:101<br \/>\n[Sun Apr 24 07:35:04 2016] [error] [client 142.4.217.162] PHP   6. do_action() \/public_html\/wp-settings.php:393<br \/>\n[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<br \/>\n[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<br \/>\n[Sun Apr 24 07:35:04 2016] [error] [client 142.4.217.162] PHP   9. do_action() \/public_html\/wp-includes\/widgets.php:1475<br \/>\n[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<br \/>\n[Sun Apr 24 07:35:04 2016] [error] [client 142.4.217.162] PHP  11. __lambda_func() \/public_html\/wp-includes\/plugin.php:525<br \/>\n[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<br \/>\n[Sun Apr 24 07:35:04 2016] [error] [client 142.4.217.162] PHP  13. WP_Widget_Factory-&gt;register() \/public_html\/wp-includes\/widgets.php:113<br \/>\n[Sun Apr 24 07:35:04 2016] [error] [client 142.4.217.162] PHP  14. CataBlogWidget-&gt;CataBlogWidget() \/public_html\/wp-includes\/class-wp-widget-factory.php:57<br \/>\n[Sun Apr 24 07:35:04 2016] [error] [client 142.4.217.162] PHP  15. WP_Widget-&gt;WP_Widget()\/public_html\/wp-content\/plugins\/catablog\/lib\/CataBlogWidget.class.php:15<br \/>\n[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<br \/>\n[Sun Apr 24 07:35:04 2016] [error] [client 142.4.217.162] PHP  17. trigger_error() \/public_html\/wp-includes\/functions.php:3722<\/p>\n<p>https:\/\/wordpress.org\/plugins\/catablog\/<\/p>\n","protected":false},"template":"","class_list":["post-7320047","topic","type-topic","status-publish","hentry","topic-tag-deprecated","topic-tag-wp_widget"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/7320047","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic"}],"about":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/types\/topic"}],"version-history":[{"count":0,"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/7320047\/revisions"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=7320047"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}