WordPress.org

Ready to get started?Download WordPress

Forums

WP Favorite Posts
[resolved] Warning / Notices on DEBUG mode (4 posts)

  1. p36p
    Member
    Posted 1 year ago #

    Hi,

    I had these Notices :
    Notice: register_sidebar_widget est déprécié depuis la version 2.8 (is deprecated)! Utilisez (use) wp_register_sidebar_widget() à la place (instead) in (...)/wp-includes/functions.php on line 2839
    Notice: register_widget_control est déprécié depuis la version 2.8! Utilisez wp_register_widget_control() à la place. in (...)/wp-includes/functions.php on line 2839
    Notice: register_sidebar_widget est déprécié depuis la version 2.8! Utilisez wp_register_sidebar_widget() à la place. in (...)/wp-includes/functions.php on line 2839
    Notice: register_widget_control est déprécié depuis la version 2.8! Utilisez wp_register_widget_control() à la place. in (...)/wp-includes/functions.php on line 2839

    So I Had the "wp_" suffix but I have now these warning :

    Warning: Missing argument 3 for wp_register_sidebar_widget(), called in (...)/wp-content/plugins/wp-favorite-posts/wpfp-widgets.php on line 45 and defined in (...)/wp-includes/widgets.php on line 604
    Warning: Missing argument 3 for wp_register_widget_control(), called in (...)/wp-content/plugins/wp-favorite-posts/wpfp-widgets.php on line 46 and defined in (...)/wp-includes/widgets.php on line 716
    Warning: Missing argument 3 for wp_register_sidebar_widget(), called in (...)/wp-content/plugins/wp-favorite-posts/wpfp-widgets.php on line 94 and defined in (...)/wp-includes/widgets.php on line 604
    Warning: Missing argument 3 for wp_register_widget_control(), called in (...)/wp-content/plugins/wp-favorite-posts/wpfp-widgets.php on line 95 and defined in (...)/production/wp-includes/widgets.php on line 716

    Does anyone has reolved this issue?

    http://wordpress.org/extend/plugins/wp-favorite-posts/

  2. geoff67
    Member
    Posted 1 year ago #

    You need to specify an ID for the first argument. I used the submit buttons as naming conventions until the plugin author corrects it.

    //    register_sidebar_widget('Most Favorited Posts', 'wpfp_widget_view');
    //    register_widget_control('Most Favorited Posts', 'wpfp_widget_control' );
        wp_register_sidebar_widget('wpfp-widget','Most Favorited Posts', 'wpfp_widget_view');
        wp_register_widget_control('wpfp-widget','Most Favorited Posts', 'wpfp_widget_control' );

    and

    //    register_sidebar_widget('User\'s Favorites', 'wpfp_users_favorites_widget_view');
    //    register_widget_control('User\'s Favorites', 'wpfp_users_favorites_widget_control' );
        wp_register_sidebar_widget('wpfp-uf-widget','User\'s Favorites', 'wpfp_users_favorites_widget_view');
        wp_register_widget_control('wpfp-uf-widget','User\'s Favorites', 'wpfp_users_favorites_widget_control' );
  3. p36p
    Member
    Posted 1 year ago #

    Thank you very much !

  4. geoff67
    Member
    Posted 1 year ago #

    Actually, it looks like the author is aware of it but has not yet updated the source in the WordPress repository.

    https://github.com/hberberoglu/wp-favorite-posts/blob/master/wpfp-widgets.php

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic