{"id":5683351,"date":"2015-01-17T21:11:56","date_gmt":"2015-01-17T21:11:56","guid":{"rendered":"https:\/\/wordpress.org\/support\/topic\/wp_debug-errors-4\/"},"modified":"2016-08-22T15:31:23","modified_gmt":"2016-08-22T15:31:23","slug":"wp_debug-errors-4","status":"closed","type":"topic","link":"https:\/\/wordpress.org\/support\/topic\/wp_debug-errors-4\/","title":{"rendered":"WP_DEBUG errors"},"content":{"rendered":"<p>If the plugin author isn&#8217;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&#8230;.<\/p>\n<p>In <strong>loginlog.php<\/strong> there are two changes needed. One around line 30:<\/p>\n<pre><code>\/\/ was\n\t\/\/require_once(ABSPATH . &#039;wp-admin\/upgrade-functions.php&#039;);\n\trequire_once( ABSPATH . &#039;wp-admin\/includes\/upgrade.php&#039; );<\/code><\/pre>\n<p>and then around line 60 or so&#8230; in the <strong>loginlog_users()<\/strong> function:<\/p>\n<pre><code>\/\/ was\n\t\/\/add_submenu_page(&#039;users.php&#039;,&#039;Login logs&#039;,&#039;Login logs&#039;,8,&#039;login-logger\/manage.php&#039;);\n\tadd_submenu_page(&#039;users.php&#039;,&#039;Login logs&#039;,&#039;Login Logs&#039;,&#039;delete_users&#039;,&#039;login-logger\/manage.php&#039;);<\/code><\/pre>\n<p>Basically, just use the &#8216;delete_users&#8217; value instead of &#8220;8&#8221; for the parameter that adds the submenu for an Admin-type of user.<\/p>\n<p>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.<\/p>\n<p>https:\/\/wordpress.org\/plugins\/login-logger\/<\/p>\n","protected":false},"template":"","class_list":["post-5683351","topic","type-topic","status-closed","hentry"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/5683351","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic"}],"about":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/types\/topic"}],"version-history":[{"count":0,"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/5683351\/revisions"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=5683351"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}