WP_DEBUG errors
-
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.
The topic ‘WP_DEBUG errors’ is closed to new replies.