Title: arning: array_key_exists() expects parameter 2 to be array
Last modified: November 5, 2020

---

# arning: array_key_exists() expects parameter 2 to be array

 *  [sng66](https://wordpress.org/support/users/sng66/)
 * (@sng66)
 * [5 years, 6 months ago](https://wordpress.org/support/topic/arning-array_key_exists-expects-parameter-2-to-be-array/)
 * Just happened today, unable to use wordpress because of this error. Anyone know
   what to do to fix this?
 * Warning: array_key_exists() expects parameter 2 to be array, string given in /
   wp-content/plugins/justified-gallery/includes/admin/settings/Settings.php on 
   line 252

Viewing 1 replies (of 1 total)

 *  Plugin Author [Mateusz Czardybon](https://wordpress.org/support/users/matczar/)
 * (@matczar)
 * [5 years, 6 months ago](https://wordpress.org/support/topic/arning-array_key_exists-expects-parameter-2-to-be-array/#post-13627034)
 * It looks like the plugin settings saved in the database are incorrect for some
   reason.
 * Do you have access to the database via phpmyadmin or a similar tool?
    The easiest
   way to do this is to delete two records in the wp_options table: where ‘option_name’
   = ‘dgwt_jg_version’ and ‘option_name’ = ‘dgwt_jg_settings’ – then the plugin 
   will restore the settings to the same as just after installing it.

Viewing 1 replies (of 1 total)

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

 * ![](https://ps.w.org/justified-gallery/assets/icon-256x256.png?rev=1430465)
 * [Justified Gallery](https://wordpress.org/plugins/justified-gallery/)
 * [Support Threads](https://wordpress.org/support/plugin/justified-gallery/)
 * [Active Topics](https://wordpress.org/support/plugin/justified-gallery/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/justified-gallery/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/justified-gallery/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Mateusz Czardybon](https://wordpress.org/support/users/matczar/)
 * Last activity: [5 years, 6 months ago](https://wordpress.org/support/topic/arning-array_key_exists-expects-parameter-2-to-be-array/#post-13627034)
 * Status: not resolved