Title: array_key_exists() expects parameter 2 to be array
Last modified: July 9, 2019

---

# array_key_exists() expects parameter 2 to be array

 *  Resolved [e dev](https://wordpress.org/support/users/efishinsea/)
 * (@efishinsea)
 * [6 years, 11 months ago](https://wordpress.org/support/topic/array_key_exists-expects-parameter-2-to-be-array-4/)
 * After updating the plugin to v2.7.4.4, all of our menu settings are lost, nothing
   will save, and I am getting this error constantly.
 * array_key_exists() expects parameter 2 to be array, string given in /wp-content/
   plugins/mobile-menu/vendor/titan-framework/lib/class-titan-framework.php on line
   287
 * Any ideas? I’ve tried resaving the settings, but nothing I set will save. The
   page just reloads.

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

 *  Thread Starter [e dev](https://wordpress.org/support/users/efishinsea/)
 * (@efishinsea)
 * [6 years, 11 months ago](https://wordpress.org/support/topic/array_key_exists-expects-parameter-2-to-be-array-4/#post-11712977)
 * As an update, I disabled SSL as I saw a mixed content error coming from that 
   with the plugin, and was eventually able to save the general settings again. 
   I had also edited the Titan Library file to make the following adjustment from
   this:
 *     ```
       if ( array_key_exists( $optionName, $this->adminOptions ) ) {
   
       }
       ```
   
 * to this:
 *     ```
       if ( is_array($this->adminOptions) && array_key_exists( $optionName, $this->adminOptions ) ) {
   
       }
       ```
   
 * everything is saving now and I was able to renable the SSL to allow everything
   to work properly once again.
 *  Plugin Author [Rui Guerreiro](https://wordpress.org/support/users/takanakui/)
 * (@takanakui)
 * [6 years, 11 months ago](https://wordpress.org/support/topic/array_key_exists-expects-parameter-2-to-be-array-4/#post-11713867)
 * Hi [@efishinsea](https://wordpress.org/support/users/efishinsea/),
 * Apologize for that. I’m glad it’s sorted and thanks for sharing the solution.

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

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

 * ![](https://ps.w.org/mobile-menu/assets/icon-128x128.png?rev=1890426)
 * [WP Mobile Menu - The Mobile-Friendly Responsive Menu](https://wordpress.org/plugins/mobile-menu/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/mobile-menu/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/mobile-menu/)
 * [Active Topics](https://wordpress.org/support/plugin/mobile-menu/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/mobile-menu/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/mobile-menu/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [Rui Guerreiro](https://wordpress.org/support/users/takanakui/)
 * Last activity: [6 years, 11 months ago](https://wordpress.org/support/topic/array_key_exists-expects-parameter-2-to-be-array-4/#post-11713867)
 * Status: resolved