Digital experiences for all disciplines
New Landing › How can we help? › Themeforest Theme Support › Dante › Deprecated Notice: Constructor Method for WP_Widget since 4.3.0
New Landing › How can we help? › Themeforest Theme Support › Dante › Deprecated Notice: Constructor Method for WP_Widget since 4.3.0
- This topic has 8 replies, 4 voices, and was last updated 9 years by David Martin – Support.
-
Posted in: Dante
-
September 15, 2015 at 4:03 pm #213217
I just downloaded the latest version of Dante and found that it is not compatible with WordPress 4.3. Please see the article linked below for more info. Can you please update the theme based on this information and let me know when it’s available? I need to use my debugging for other purposes and this is getting in the way. Thanks.
ERROR:
Notice: The called constructor method for WP_Widget is deprecated since version 4.3.0! Use __construct() instead.https://core.trac.wordpress.org/ticket/32872
September 16, 2015 at 8:13 am #213400Hi,
I have forwarded this issue. The developer of theme will assist you shortly.
Thanks
MohammadSeptember 16, 2015 at 7:02 pm #213831Tested locally (Dante v3.16 and WordPress 4.3.1) and no issue at all – the notice must be coming from a plugin, or outdated theme file? How did you update?
– Ed
September 16, 2015 at 7:21 pm #213837You need to turn debugging on to see all the errors.
define(‘WP_DEBUG_DISPLAY’, true);September 16, 2015 at 7:28 pm #213841We have debug tools – nothing logged, I assure you, this is not to do with the latest released update of the theme.
– Ed
September 16, 2015 at 8:09 pm #213848I think it’s a little early in this conversation to be sure about anything. With debugging display on, I deactivated all plugins, switched to the Twentyfifteen theme and there are no errors. When I switch back to the Dante theme all the errors appear (below). When you research these errors you will find that it’s a warning to let all the vendors know they need to update their code. I sent the links with information about this in my first post. I searched the Dante theme folder for the deprecated code and found 26 instances of it (below).
Search “WP_Widget” (26 hits in 10 files)
Q:\inetpub\grovedev.valenciacollege.edu\wp-content\themes\dante\includes\plugins\love-it-pro\includes\widgets.php (5 hits)
Line 6: class lip_most_loved_widget extends WP_Widget {
Line 10: parent::WP_Widget(false, $name = __(‘Most Loved Items’, ‘swiftframework’), array(‘description’ => __(‘Show the most loved items’, ‘swift-framework-admin’)));
Line 13: /** @see WP_Widget::widget */
Line 46: /** @see WP_Widget::update */
Line 54: /** @see WP_Widget::form */
Q:\inetpub\grovedev.valenciacollege.edu\wp-content\themes\dante\swift-framework\widgets\widget-advertgrid.php (2 hits)
Line 12: class sf_advert_grid_widget extends WP_Widget {
Line 17: $this->WP_Widget( ‘advert-grid-widget’, ‘Swift Framework Advert Grid Widget’, $widget_ops, $control_ops );
Q:\inetpub\grovedev.valenciacollege.edu\wp-content\themes\dante\swift-framework\widgets\widget-comments.php (2 hits)
Line 16: class sf_recent_comments extends WP_Widget {
Line 18: parent::WP_Widget( ‘sf_recent_custom_comments’, $name = ‘Swift Framework Recent Comments’ );
Q:\inetpub\grovedev.valenciacollege.edu\wp-content\themes\dante\swift-framework\widgets\widget-flickr.php (2 hits)
Line 12: class sf_flickr_widget extends WP_Widget {
Line 16: $this->WP_Widget( ‘flickr-widget’, ‘Swift Framework Flickr Widget’, $widget_ops);
Q:\inetpub\grovedev.valenciacollege.edu\wp-content\themes\dante\swift-framework\widgets\widget-infocus.php (2 hits)
Line 16: class sf_infocus extends WP_Widget {
Line 18: parent::WP_Widget( ‘sf_infocus_widget’, $name = ‘Swift Framework In Focus’ );
Q:\inetpub\grovedev.valenciacollege.edu\wp-content\themes\dante\swift-framework\widgets\widget-portfolio-grid.php (3 hits)
Line 16: class sf_portfolio_grid extends WP_Widget {
Line 18: parent::WP_Widget( ‘sf_custom_portfolio_grid’, $name = ‘Swift Framework Portfolio Grid’ );
Line 127: <label for=”<?php echo $this->get_field_id(‘category’); ?>”><?php _e(‘Category’, ‘wp_widget_plugin’); ?></label>
Q:\inetpub\grovedev.valenciacollege.edu\wp-content\themes\dante\swift-framework\widgets\widget-portfolio.php (3 hits)
Line 16: class sf_recent_portfolio extends WP_Widget {
Line 18: parent::WP_Widget( ‘sf_recent_custom_portfolio’, $name = ‘Swift Framework Recent Portfolio’ );
Line 117: <label for=”<?php echo $this->get_field_id(‘category’); ?>”><?php _e(‘Category’, ‘wp_widget_plugin’); ?></label>
Q:\inetpub\grovedev.valenciacollege.edu\wp-content\themes\dante\swift-framework\widgets\widget-posts.php (3 hits)
Line 16: class sf_recent_posts extends WP_Widget {
Line 18: parent::WP_Widget( ‘sf_recent_custom_posts’, $name = ‘Swift Framework Recent Posts’ );
Line 150: <label for=”<?php echo $this->get_field_id(‘category’); ?>”><?php _e(‘Category’, ‘wp_widget_plugin’); ?></label>
Q:\inetpub\grovedev.valenciacollege.edu\wp-content\themes\dante\swift-framework\widgets\widget-twitter.php (2 hits)
Line 28: class Twitter_Widget extends WP_Widget {
Line 37: $this->WP_Widget(‘twitter-widget’, ‘Swift Framework Tweets’, $widget_ops);
Q:\inetpub\grovedev.valenciacollege.edu\wp-content\themes\dante\swift-framework\widgets\widget-video.php (2 hits)
Line 12: class sf_video_widget extends WP_Widget {
Line 17: $this->WP_Widget( ‘video-widget’, ‘Swift Framework Video Widget’, $widget_ops, $control_ops );DEBUG DISPLAY:
Notice: The called constructor method for WP_Widget is deprecated since version 4.3.0! Use__construct()
instead. in D:\inetpub\grovedev.valenciacollege.edu\wp-includes\functions.php on line 3457
Notice: The called constructor method for WP_Widget is deprecated since version 4.3.0! Use
__construct()
instead. in D:\inetpub\grovedev.valenciacollege.edu\wp-includes\functions.php on line 3457
Notice: The called constructor method for WP_Widget is deprecated since version 4.3.0! Use
__construct()
instead. in D:\inetpub\grovedev.valenciacollege.edu\wp-includes\functions.php on line 3457
Notice: The called constructor method for WP_Widget is deprecated since version 4.3.0! Use
__construct()
instead. in D:\inetpub\grovedev.valenciacollege.edu\wp-includes\functions.php on line 3457
Notice: The called constructor method for WP_Widget is deprecated since version 4.3.0! Use
__construct()
instead. in D:\inetpub\grovedev.valenciacollege.edu\wp-includes\functions.php on line 3457
Notice: The called constructor method for WP_Widget is deprecated since version 4.3.0! Use
__construct()
instead. in D:\inetpub\grovedev.valenciacollege.edu\wp-includes\functions.php on line 3457
Notice: The called constructor method for WP_Widget is deprecated since version 4.3.0! Use
__construct()
instead. in D:\inetpub\grovedev.valenciacollege.edu\wp-includes\functions.php on line 3457
Notice: The called constructor method for WP_Widget is deprecated since version 4.3.0! Use
__construct()
instead. in D:\inetpub\grovedev.valenciacollege.edu\wp-includes\functions.php on line 3457
Notice: The called constructor method for WP_Widget is deprecated since version 4.3.0! Use
__construct()
instead. in D:\inetpub\grovedev.valenciacollege.edu\wp-includes\functions.php on line 3457
Notice: The called constructor method for WP_Widget is deprecated since version 4.3.0! Use
__construct()
instead. in D:\inetpub\grovedev.valenciacollege.edu\wp-includes\functions.php on line 3457
September 16, 2015 at 8:27 pm #213854This reply has been marked as private.September 16, 2015 at 8:52 pm #213861Ok, I just downloaded this theme from the Themeforest site last week (version 3.15). The version you just sent me is version 3.16 and it’s working with no errors. I will use this version instead. Thanks.
http://themeforest.net/downloadsSeptember 17, 2015 at 10:54 am #214038Thanks Ed, 3.16 will replace the TF version when it’s approved.
– David.
-
Posted in: Dante
You must be logged in and have valid license to reply to this topic.