• As reported by various other users, there are some simple errors in this plugin causing error messages to print out in the footer, due to unassigned variables being accessed.

    (one of them gets assigned the first time you click on “ignore updates” on a plugin. I’m not sure when the other one gets assigned).

    But, it is good practice to check whether a variable is null before doing an operation on it anyway.

    Here is the fix:

    Index: inc/admin.php
    ===================================================================
    --- inc/admin.php       (revision 12654)
    +++ inc/admin.php       (working copy)
    @@ -194,11 +194,17 @@
         }
            //BRM loop through $update_plugins pull out keys strip to 1st/ match against new array count_arr2 built from keys of count_arr  striped to 1st /
            $count_arr = get_option('plugin_update_ignore');
    +       $count_arr2 = array();
    +       if(is_array($count_arr)){
            foreach ($count_arr as $key => $value) {
                    $length=strpos($key,"/");
                    $result=substr($key,$start,$length);
                    $count_arr2[]=$result;
            }
    +       }
    +       $unlocked_4_update = 0;
    +
    +       if(is_array($update_plugins)){
            foreach ($update_plugins as $v) {
            $i=$i+1;
                    $sub_arr=$v;
    @@ -212,6 +218,7 @@
                            }
                    }
            }
    +       }
            $locked_count=$updates_4_locked;
         $total_update_count = $update_count - $locked_count;
         $js = array();

    http://wordpress.org/extend/plugins/wp-manage-plugins/

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘[Plugin: WP Manage Plugins] PHP errors (patch included)’ is closed to new replies.