New Landing How can we help? Themeforest Theme Support Dante Deprecated Notice: Constructor Method for WP_Widget since 4.3.0

Viewing 9 posts - 1 through 9 (of 9 total)
  • Posted in: Dante
  • #213217
    webreports
    Member
    Post count: 12

    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

    Deprecating PHP4 style constructors in WordPress 4.3

    #213400
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    Hi,
    I have forwarded this issue. The developer of theme will assist you shortly.
    Thanks
    Mohammad

    #213831
    Swift Ideas – Ed
    Keymaster
    Post count: 15264

    Tested 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

    #213837
    webreports
    Member
    Post count: 12

    You need to turn debugging on to see all the errors.
    define(‘WP_DEBUG_DISPLAY’, true);

    #213841
    Swift Ideas – Ed
    Keymaster
    Post count: 15264

    We have debug tools – nothing logged, I assure you, this is not to do with the latest released update of the theme.

    – Ed

    #213848
    webreports
    Member
    Post count: 12

    I 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

    #213854
    Swift Ideas – Ed
    Keymaster
    Post count: 15264
    This reply has been marked as private.
    #213861
    webreports
    Member
    Post count: 12

    Ok, 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/downloads

    #214038
    David Martin – Support
    Moderator
    Post count: 20834

    Thanks Ed, 3.16 will replace the TF version when it’s approved.

    – David.

Viewing 9 posts - 1 through 9 (of 9 total)

You must be logged in and have valid license to reply to this topic.

License required for one of the following items
Login and Registration Log in · Register