Title: After update PHP Warning: array_key_exists()
Last modified: March 24, 2020

---

# After update PHP Warning: array_key_exists()

 *  Resolved [LeRedac](https://wordpress.org/support/users/leredac/)
 * (@leredac)
 * [6 years, 2 months ago](https://wordpress.org/support/topic/after-update-php-warning-array_key_exists/)
 * Hello.
 * Thank you for your plugin.
 * This morning after update y have many error in log :
 * PHP Warning: array_key_exists() expects parameter 2 to be array, string given
   in /var/www/www……/wp-content/plugins/advanced-access-manager/application/Core/
   Config.php on line 65
 * My WP
    – WordPress – 5.3.2 – Advanced Access Manager 6.4.1
 * What is wrong please ?

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

 *  Thread Starter [LeRedac](https://wordpress.org/support/users/leredac/)
 * (@leredac)
 * [6 years, 2 months ago](https://wordpress.org/support/topic/after-update-php-warning-array_key_exists/#post-12576660)
 * Hi again
 * I have fixed the bug on my side but I am not sure that this is the right solution.
   Everything is working properly now (ostensibly).
 * Change line 65 (application/Core/Config.php) :
 * `if (array_key_exists($option, self::$config))`
 * To
 * `if (is_array(self::$config) && array_key_exists($option, self::$config))`
 *  Plugin Author [AAM Plugin](https://wordpress.org/support/users/vasyltech/)
 * (@vasyltech)
 * [6 years, 2 months ago](https://wordpress.org/support/topic/after-update-php-warning-array_key_exists/#post-12586711)
 * [@leredac](https://wordpress.org/support/users/leredac/),
 * It appears that `aam_config` option in the wp_options database table contains
   corrupted value. In should have a serialized array of key/value pairs. Instead,
   it contains something different. My best guess is that is the string.
 * You can delete the mentioned option and the error should go away.
 * Regards,
    Vasyl
 *  Thread Starter [LeRedac](https://wordpress.org/support/users/leredac/)
 * (@leredac)
 * [6 years, 1 month ago](https://wordpress.org/support/topic/after-update-php-warning-array_key_exists/#post-12628038)
 * Hello. Indeed the entries in the multisites was empty. I deleted them and kept
   only that of the main site which contained a value. The error no longer appears
   now. Thanks for your help.

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

The topic ‘After update PHP Warning: array_key_exists()’ 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/)

 * 3 replies
 * 2 participants
 * Last reply from: [LeRedac](https://wordpress.org/support/users/leredac/)
 * Last activity: [6 years, 1 month ago](https://wordpress.org/support/topic/after-update-php-warning-array_key_exists/#post-12628038)
 * Status: resolved