WordPress.org

Ready to get started?Download WordPress

Forums

Popularity Posts Widget
Notices when WP_DEBUG is set to true (1 post)

  1. befive
    Member
    Posted 1 year ago #

    Thank you for a great plugin!

    BTW, I noticed that the WordPress outputs error messages when the WP_DEBUG (found in the wp-config.php) is set to true.

    I have modified the following lines to sort that out, but there may be more when other option settings are enabled. Please feel free to remove this post.

    --------------

    Notice: Undefined index: show_cat in /Library/WebServer/Documents/wordpress/wp-content/plugins/popularity-posts-widget/class_popularity-posts-widget.php on line 104
    line 104, changed to : if(array_key_exists('show_cat',$instance)) {

    Notice: Undefined variable: res in /Library/WebServer/Documents/wordpress/wp-content/plugins/popularity-posts-widget/class_popularity-posts-widget.php on line 137
    added @ line 130 : $res = '';

    Notice: Undefined index: show_thumbs in /Library/WebServer/Documents/wordpress/wp-content/plugins/popularity-posts-widget/class_popularity-posts-widget.php on line 158
    line 158, changed to : if(array_key_exists('show_thumbs',$instance)) { // if ($instance['show_thumbs']) {

    Notice: Undefined index: show_thumbs in /Library/WebServer/Documents/wordpress/wp-content/plugins/popularity-posts-widget/style/style-one.php on line 19
    line 19, changed to : if(array_key_exists('show_thumbs',$instance)) {

    Notice: Undefined index: show_cat in /Library/WebServer/Documents/wordpress/wp-content/plugins/popularity-posts-widget/class_popularity-posts-widget.php on line 248
    removed: if ($instance['show_cat']) {
    changed to: if(array_key_exists('show_thumbs',$instance)) {

    Notice: Undefined variable: cat_res in /Library/WebServer/Documents/wordpress/wp-content/plugins/popularity-posts-widget/class_popularity-posts-widget.php on line 265
    just before ///////End filter
    added } else {$cat_res = ' ';}

    http://wordpress.org/extend/plugins/popularity-posts-widget/

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.