Title: Errors on &#039;Enable/Disable Alerts&#039; page
Last modified: August 21, 2016

---

# Errors on 'Enable/Disable Alerts' page

 *  Resolved [Sjourney](https://wordpress.org/support/users/sjourney/)
 * (@sjourney)
 * [12 years, 7 months ago](https://wordpress.org/support/topic/errors-on-enabledisable-alerts-page/)
 * Running Version 0.4
    When opening ‘Enable/Disable Alerts’ page I see these errors:
 * Warning: array_keys() expects parameter 1 to be array, null given in wp-content/
   plugins/wp-security-audit-log/pages/alerts.php on line 21
 * Warning: array_keys() expects parameter 1 to be array, null given in wp-content/
   plugins/wp-security-audit-log/pages/alerts.php on line 95
 * Warning: Invalid argument supplied for foreach() in wp-content/plugins/wp-security-
   audit-log/pages/alerts.php on line 97
 * Warning: Invalid argument supplied for foreach() in wp-content/plugins/wp-security-
   audit-log/pages/alerts.php on line 106
 * [http://wordpress.org/plugins/wp-security-audit-log/](http://wordpress.org/plugins/wp-security-audit-log/)

Viewing 3 replies - 1 through 3 (of 3 total)

 *  Thread Starter [Sjourney](https://wordpress.org/support/users/sjourney/)
 * (@sjourney)
 * [12 years, 7 months ago](https://wordpress.org/support/topic/errors-on-enabledisable-alerts-page/#post-4246671)
 * BTW, running WP 3.6.1
 * Update: What’s disconcerting is that there have been multiple events showing 
   someone has tried to login to the site using the correct login name but unsuccessfully
   guessing the password.
 * I took a look at the code and it seems to be showing that on line #18 $opt is
   not inheriting the object data from WPPH::getPluginSettings();
    Which breaks #
   19 and #21 and later #97
 *     ```
       18 $opt = WPPH::getPluginSettings();
       19 $logEvents = $opt->logEvents;
       20 $validationMessage = array();
       21 $sectionNames = array_keys($logEvents);
       22 $activeTab = 0;
       23 $rm = strtoupper($_SERVER['REQUEST_METHOD']);
       ```
   
 *  [WPWhiteSecurity](https://wordpress.org/support/users/wpwhitesecurity/)
 * (@wpwhitesecurity)
 * [12 years, 7 months ago](https://wordpress.org/support/topic/errors-on-enabledisable-alerts-page/#post-4246688)
 * Hi Sjourney,
 * Thank you for showing interest in our plugin and for pointing this issue out.
 * We fixed the issue and the fix shall be available in the upcoming build of the
   plugin, which should be available in a week or two.
 * Should you have any further queries, do not hesitate to contact us.
 * Have a great day!
 *  Thread Starter [Sjourney](https://wordpress.org/support/users/sjourney/)
 * (@sjourney)
 * [12 years, 7 months ago](https://wordpress.org/support/topic/errors-on-enabledisable-alerts-page/#post-4246726)
 * I’ve needed disable and remove the plugin because I would get PHP errors when
   I tried to login to the admin panel. I had to login via cpanel, rename the plugin
   dir, then access the WP admin plugin page and deactive/remove the plugin because
   of this.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Errors on 'Enable/Disable Alerts' page’ is closed to new replies.

 * ![](https://ps.w.org/wp-security-audit-log/assets/icon-256x256.png?rev=2961534)
 * [WP Activity Log](https://wordpress.org/plugins/wp-security-audit-log/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-security-audit-log/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-security-audit-log/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-security-audit-log/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-security-audit-log/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-security-audit-log/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [Sjourney](https://wordpress.org/support/users/sjourney/)
 * Last activity: [12 years, 7 months ago](https://wordpress.org/support/topic/errors-on-enabledisable-alerts-page/#post-4246726)
 * Status: resolved