Title: array_key_exists() expects parameter 2 to be array, null given
Last modified: September 17, 2021

---

# array_key_exists() expects parameter 2 to be array, null given

 *  [sandm4n](https://wordpress.org/support/users/sandm4n/)
 * (@sandm4n)
 * [4 years, 8 months ago](https://wordpress.org/support/topic/array_key_exists-expects-parameter-2-to-be-array-null-given-2/)
 * Hi. This website is one of my client’s. It was working very well until recently
   he asked me to do some work on it. But when I entered the website it was showing
 * Warning: array_key_exists() expects parameter 2 to be array, null given in /homepages/
   46/d880808763/htdocs/clickandbuilds/JINIMEDIA/wp-content/plugins/af-companion/
   inc/demo-importer.php on line 78
 * And I cannot log in to the WordPress dashboard either. It is showing
 *     ```
       Warning: array_key_exists() expects parameter 2 to be array, null given in /homepages/46/d880808763/htdocs/clickandbuilds/JINIMEDIA/wp-content/plugins/af-companion/inc/demo-importer.php on line 78
   
       Warning: Cannot modify header information - headers already sent by (output started at /homepages/46/d880808763/htdocs/clickandbuilds/JINIMEDIA/wp-content/plugins/af-companion/inc/demo-importer.php:78) in /homepages/46/d880808763/htdocs/clickandbuilds/JINIMEDIA/wp-includes/pluggable.php on line 1340
   
       Warning: Cannot modify header information - headers already sent by (output started at /homepages/46/d880808763/htdocs/clickandbuilds/JINIMEDIA/wp-content/plugins/af-companion/inc/demo-importer.php:78) in /homepages/46/d880808763/htdocs/clickandbuilds/JINIMEDIA/wp-includes/pluggable.php on line 1343
       ```
   
 * Is there anything I can do to solve this issue?
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Farray_key_exists-expects-parameter-2-to-be-array-null-given-2%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 1 replies (of 1 total)

 *  Plugin Author [AF themes](https://wordpress.org/support/users/afthemes/)
 * (@afthemes)
 * [4 years, 8 months ago](https://wordpress.org/support/topic/array_key_exists-expects-parameter-2-to-be-array-null-given-2/#post-14904096)
 * Hi there,
    First off, sorry for the inconvenience. the issue has been fixed on
   our latest release. Would you please try to update to your plugin and confirm
   that fixes? Thanks

Viewing 1 replies (of 1 total)

The topic ‘array_key_exists() expects parameter 2 to be array, null given’ is closed
to new replies.

 * ![](https://ps.w.org/af-companion/assets/icon-256x256.png?rev=2476755)
 * [AF Companion – Starter Sites, Speed Booster & Growth Suite for Professional Publishing](https://wordpress.org/plugins/af-companion/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/af-companion/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/af-companion/)
 * [Active Topics](https://wordpress.org/support/plugin/af-companion/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/af-companion/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/af-companion/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [AF themes](https://wordpress.org/support/users/afthemes/)
 * Last activity: [4 years, 8 months ago](https://wordpress.org/support/topic/array_key_exists-expects-parameter-2-to-be-array-null-given-2/#post-14904096)
 * Status: not resolved