Ran into this error today when I updated a production site that uses roots 6.5.x to WP 4.3.
Notice: The called constructor method for WP_Widget is deprecated since version 4.3.0! Use
__construct()
instead. in /var/www/dev.ecotrust.org/wordpress/wp-includes/functions.php on line 3457
Thought I’d share the solution here in case anyone else runs into it. As you can see, WP doesn’t actually give you any sort of trace.
In /your-theme/lib/widgets.php
change:
$this->WP_Widget('widget_roots_vcard', __('Roots: vCard', 'roots'), $widget_ops);
to
parent::__construct('widget_roots_vcard', __('Roots: vCard', 'roots'), $widget_ops);
Seems to work just fine.
More info from the WP team here for the curious: https://gist.github.com/chriscct7/d7d077afb01011b1839d