WordPress.org

Support

Support » Plugins and Hacks » [Resolved] Warning / Notices on DEBUG mode

[Resolved] Warning / Notices on DEBUG mode

  • 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/

Viewing 3 replies - 1 through 3 (of 3 total)
  • 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' );

    Thank you very much !

    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

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘[Resolved] Warning / Notices on DEBUG mode’ is closed to new replies.