Title: Warning: array_keys() expects parameter 1 to be array, boolean given
Last modified: February 14, 2017

---

# Warning: array_keys() expects parameter 1 to be array, boolean given

 *  Resolved Anonymous User 7349216
 * (@anonymized-7349216)
 * [9 years, 3 months ago](https://wordpress.org/support/topic/warning-array_keys-expects-parameter-1-to-be-array-boolean-given/)
 * Got those two PHP errors in the backend and frontend too, since I recently updated
   AAM to version 4.0.1:
    `Warning: array_keys() expects parameter 1 to be array,
   boolean given in /www/htdocs/ … /wp-content/plugins/advanced-access-manager/Application/
   Core/Compatibility.php on line 88` `Warning: Invalid argument supplied for foreach()
   in /www/htdocs/ … /wp-content/plugins/advanced-access-manager/Application/Core/
   Compatibility.php on line 88` I am running PHP 7.0.14.
 * Can You please provide a fix?
 * Kind regards
    Christian

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

 *  [vasyl_m](https://wordpress.org/support/users/vasyl_m/)
 * (@vasyl_m)
 * [9 years, 3 months ago](https://wordpress.org/support/topic/warning-array_keys-expects-parameter-1-to-be-array-boolean-given/#post-8804548)
 * Hi Christian,
 * Get AAM development version from [here](https://downloads.wordpress.org/plugin/advanced-access-manager.zip).
   This should fix the issue. In addition install [CodePinch](https://wordpress.org/plugins/wp-error-fix/)
   plugin. All errors related to AAM we provide for no cost.
 * Regards,
    Vasyl
    -  This reply was modified 9 years, 3 months ago by [vasyl_m](https://wordpress.org/support/users/vasyl_m/).
 *  Thread Starter Anonymous User 7349216
 * (@anonymized-7349216)
 * [9 years, 3 months ago](https://wordpress.org/support/topic/warning-array_keys-expects-parameter-1-to-be-array-boolean-given/#post-8805345)
 * Development version works perfect, just like the plugin did before the update.
   
   Thank’s a lot!
    -  This reply was modified 9 years, 3 months ago by Anonymous User 7349216.

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

The topic ‘Warning: array_keys() expects parameter 1 to be array, boolean given’
is closed to new replies.

 * ![](https://ps.w.org/advanced-access-manager/assets/icon-256x256.png?rev=3447421)
 * [Advanced Access Manager – Access Governance for WordPress](https://wordpress.org/plugins/advanced-access-manager/)
 * [Support Threads](https://wordpress.org/support/plugin/advanced-access-manager/)
 * [Active Topics](https://wordpress.org/support/plugin/advanced-access-manager/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/advanced-access-manager/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/advanced-access-manager/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: Anonymous User 7349216
 * Last activity: [9 years, 3 months ago](https://wordpress.org/support/topic/warning-array_keys-expects-parameter-1-to-be-array-boolean-given/#post-8805345)
 * Status: resolved