Title: Fatal error while validating the settings
Last modified: September 21, 2025

---

# Fatal error while validating the settings

 *  Resolved [doczimute](https://wordpress.org/support/users/doczimute/)
 * (@doczimute)
 * [8 months, 1 week ago](https://wordpress.org/support/topic/fatal-error-while-validating-the-settings/)
 * Hello
 * In the plugin settings, when I tried to disable the admin bar, I got a critical
   error:
 * Fatal error: Uncaught TypeError: array_merge(): Argument #1 must be of type array,
   string given in /wp-content/plugins/insert-headers-and-footers/includes/class-
   wpcode-settings.php:156 Stack trace: #0 /wp-content/plugins/insert-headers-and-
   footers/includes/class-wpcode-settings.php(156): array_merge(”, Array) #1 /wp-
   content/plugins/insert-headers-and-footers/includes/admin/pages/class-wpcode-
   admin-page-settings.php(320): WPCode_Settings->bulk_update_options(Array) #2 /
   wp-includes/class-wp-hook.php(324): WPCode_Admin_Page_Settings->submit_listener(”)#
   3 /wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters(NULL, Array) #4/
   wp-includes/plugin.php(517): WP_Hook->do_action(Array) #5 /wp-admin/admin.php(
   176): do_action(‘admin_init’) #6 {main} thrown in /wp-content/plugins/insert-
   headers-and-footers/includes/class-wpcode-settings.php on line 156
 * This error is also obtained, without modifications, by simply validating the 
   settings.
 * Slt, Daniel.

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

 *  Plugin Author [Mircea Sandu](https://wordpress.org/support/users/gripgrip/)
 * (@gripgrip)
 * [8 months, 1 week ago](https://wordpress.org/support/topic/fatal-error-while-validating-the-settings/#post-18650913)
 * Hi [@doczimute](https://wordpress.org/support/users/doczimute/),
 * Thank you for bringing this issue to our attention.
 * We can’t replicate this on our end so far but we are going to improve validation
   in a future version to avoid this.
 * Can you please try deactivating and then activating the WPCode plugin again?
 * Do you have any PHP snippets active that could maybe interfere with the settings
   saving?
 * Thank you
 *  Thread Starter [doczimute](https://wordpress.org/support/users/doczimute/)
 * (@doczimute)
 * [8 months, 1 week ago](https://wordpress.org/support/topic/fatal-error-while-validating-the-settings/#post-18650949)
 * Hello, Nothing worked, even after disabling the additional codes that were added.
 *  Plugin Author [Mircea Sandu](https://wordpress.org/support/users/gripgrip/)
 * (@gripgrip)
 * [6 months, 3 weeks ago](https://wordpress.org/support/topic/fatal-error-while-validating-the-settings/#post-18709430)
 * [@doczimute](https://wordpress.org/support/users/doczimute/) we released an update
   that should address the issue you encountered. Please update to the latest version
   of WPCode.

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

The topic ‘Fatal error while validating the settings’ is closed to new replies.

 * ![](https://ps.w.org/insert-headers-and-footers/assets/icon-256x256.png?rev=2758516)
 * [WPCode - Insert Headers and Footers + Custom Code Snippets - WordPress Code Manager](https://wordpress.org/plugins/insert-headers-and-footers/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/insert-headers-and-footers/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/insert-headers-and-footers/)
 * [Active Topics](https://wordpress.org/support/plugin/insert-headers-and-footers/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/insert-headers-and-footers/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/insert-headers-and-footers/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [Mircea Sandu](https://wordpress.org/support/users/gripgrip/)
 * Last activity: [6 months, 3 weeks ago](https://wordpress.org/support/topic/fatal-error-while-validating-the-settings/#post-18709430)
 * Status: resolved