Title: PHP Warning: Invalid Argument
Last modified: August 22, 2016

---

# PHP Warning: Invalid Argument

 *  Resolved [bonnerl](https://wordpress.org/support/users/bonnerl/)
 * (@bonnerl)
 * [11 years, 6 months ago](https://wordpress.org/support/topic/php-warning-invalid-argument-2/)
 * I maintain a couple of custom WP themes and plugins and as such I tend to watch
   my server error logs and wanted to let you know I’ve seen the following two errors
   from your plugin.
 * `PHP Warning: array_keys() expects parameter 1 to be array, null given in /var/
   www/wp-content/plugins/wp-security-audit-log/classes/Sensors/PluginsThemes.php`
 * `PHP Warning: array_diff(): Argument #2 is not an array in /var/www/wp-content/
   plugins/wp-security-audit-log/classes/Sensors/PluginsThemes.php on line 28`
 * Thanks for otherwise good plugin!
 * [https://wordpress.org/plugins/wp-security-audit-log/](https://wordpress.org/plugins/wp-security-audit-log/)

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

 *  Plugin Support [robertabela](https://wordpress.org/support/users/robert681/)
 * (@robert681)
 * [11 years, 6 months ago](https://wordpress.org/support/topic/php-warning-invalid-argument-2/#post-5470729)
 * HI Bonnerl,
 * Thanks for showing interest and using our plugins.
 * We are looking into this issue as we speak, though just to confirm, even though
   you have these errors the plugin is still working, correct?
 * Also are these error frequent or just one offs?
 * Looking forward to hearing from you.
 *  [WPWhiteSecurity](https://wordpress.org/support/users/wpwhitesecurity/)
 * (@wpwhitesecurity)
 * [11 years, 6 months ago](https://wordpress.org/support/topic/php-warning-invalid-argument-2/#post-5470780)
 * HI Bonnerl,
 * Trust this message finds you well.
 * Please note that we fixed this issue and the fix will be available in the next
   update which is to be released next week.
 * If you would like to get the patch before the release send us an email on [support@wpwhitesecurity.com](https://wordpress.org/support/topic/php-warning-invalid-argument-2/support@wpwhitesecurity.com?output_format=md).
 * Thank you for reporting the issue and for using our plugin.
 *  Thread Starter [bonnerl](https://wordpress.org/support/users/bonnerl/)
 * (@bonnerl)
 * [11 years, 6 months ago](https://wordpress.org/support/topic/php-warning-invalid-argument-2/#post-5470781)
 * Excellent. Thanks for being on top of things!
 * -Lucas
 *  Plugin Support [robertabela](https://wordpress.org/support/users/robert681/)
 * (@robert681)
 * [11 years, 6 months ago](https://wordpress.org/support/topic/php-warning-invalid-argument-2/#post-5470782)
 * You are welcome Lucas! If WP Security Audit Log is helping you keep track of 
   things would appreciate if you can [rate our plugin](https://wordpress.org/support/view/plugin-reviews/wp-security-audit-log).
 * Thanks again for supporting us.

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

The topic ‘PHP Warning: Invalid Argument’ 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/)

 * 4 replies
 * 3 participants
 * Last reply from: [robertabela](https://wordpress.org/support/users/robert681/)
 * Last activity: [11 years, 6 months ago](https://wordpress.org/support/topic/php-warning-invalid-argument-2/#post-5470782)
 * Status: resolved