Title: [Plugin: WP Manage Plugins] PHP errors (patch included)
Last modified: August 20, 2016

---

# [Plugin: WP Manage Plugins] PHP errors (patch included)

 *  [jondaley](https://wordpress.org/support/users/jondaley/)
 * (@jondaley)
 * [14 years, 4 months ago](https://wordpress.org/support/topic/plugin-wp-manage-plugins-php-errors-patch-includes/)
 * 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/](http://wordpress.org/extend/plugins/wp-manage-plugins/)

Viewing 1 replies (of 1 total)

 *  [RoamFree](https://wordpress.org/support/users/roamfree/)
 * (@roamfree)
 * [14 years, 3 months ago](https://wordpress.org/support/topic/plugin-wp-manage-plugins-php-errors-patch-includes/#post-2538715)
 * This plugin was last updated in 2009. Maybe it needs a little fix.

Viewing 1 replies (of 1 total)

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

 * ![](https://s.w.org/plugins/geopattern-icon/wp-manage-plugins.svg)
 * [WP Manage Plugins](https://wordpress.org/plugins/wp-manage-plugins/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-manage-plugins/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-manage-plugins/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-manage-plugins/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-manage-plugins/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-manage-plugins/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [RoamFree](https://wordpress.org/support/users/roamfree/)
 * Last activity: [14 years, 3 months ago](https://wordpress.org/support/topic/plugin-wp-manage-plugins-php-errors-patch-includes/#post-2538715)
 * Status: not resolved