Title: WP_DEBUG errors
Last modified: August 22, 2016

---

# WP_DEBUG errors

 *  [bkjproductions](https://wordpress.org/support/users/bkjproductions/)
 * (@bkjproductions)
 * [11 years, 5 months ago](https://wordpress.org/support/topic/wp_debug-errors-4/)
 * If the plugin author isn’t maintaining this, maybe someone can pick up this? 
   I have a few edits that can be made to resolve the WP_DEBUG errors. When the 
   plugin is activated it generates 281 characters of errors (one message) and it
   also causes a problem having to do with permissions and the has_cap function 
   or the add_submenu_page function….
 * In **loginlog.php** there are two changes needed. One around line 30:
 *     ```
       // was
       	//require_once(ABSPATH . 'wp-admin/upgrade-functions.php');
       	require_once( ABSPATH . 'wp-admin/includes/upgrade.php' );
       ```
   
 * and then around line 60 or so… in the **loginlog_users()** function:
 *     ```
       // was
       	//add_submenu_page('users.php','Login logs','Login logs',8,'login-logger/manage.php');
       	add_submenu_page('users.php','Login logs','Login Logs','delete_users','login-logger/manage.php');
       ```
   
 * Basically, just use the ‘delete_users’ value instead of “8” for the parameter
   that adds the submenu for an Admin-type of user.
 * Also it looks like the table created by the plugin is left behind when the plugin
   is deactivate or deleted, so maybe someone could remove it.
 * [https://wordpress.org/plugins/login-logger/](https://wordpress.org/plugins/login-logger/)

The topic ‘WP_DEBUG errors’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/login-logger.svg)
 * [Login Logger](https://wordpress.org/plugins/login-logger/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/login-logger/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/login-logger/)
 * [Active Topics](https://wordpress.org/support/plugin/login-logger/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/login-logger/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/login-logger/reviews/)

 * 0 replies
 * 1 participant
 * Last reply from: [bkjproductions](https://wordpress.org/support/users/bkjproductions/)
 * Last activity: [11 years, 5 months ago](https://wordpress.org/support/topic/wp_debug-errors-4/)
 * Status: not resolved