Title: Undefined array key &amp; Cannot modify header warnings
Last modified: September 21, 2024

---

# Undefined array key & Cannot modify header warnings

 *  Resolved [braymond64](https://wordpress.org/support/users/braymond64/)
 * (@braymond64)
 * [1 year, 8 months ago](https://wordpress.org/support/topic/undefined-array-key-cannot-modify-header-warnings/)
 * I just installed the spam blocker and added some domains to block. When I save
   the form, I get the following errors (I’ve replaced the hosting location with
   <site> to make it easier to read):
 * **Warning**: Undefined array key “wpcf7_block_log_erase” in **<site>**/wp-content/
   plugins/wp-contact-form-7-spam-blocker/admin/class-admin.php on line **274**
   **
   Warning**: Undefined array key “request-form-path” in **<site>/wp-content/plugins/
   wp-contact-form-7-spam-blocker/admin/class-admin.php** on line **288****Warning**:
   Cannot modify header information – headers already sent by (output started at
   <site>/wp-content/plugins/wp-contact-form-7-spam-blocker/admin/class-admin.php:
   274) in **<site>**/wp-includes/pluggable.php on line **1435**
 * My changes were saved, but the form did not block the email domains during my
   test.
 * How do I fix these errors?
 * Thank you.

Viewing 1 replies (of 1 total)

 *  Plugin Author [NYSL](https://wordpress.org/support/users/nysl/)
 * (@nysl)
 * [1 year, 8 months ago](https://wordpress.org/support/topic/undefined-array-key-cannot-modify-header-warnings/#post-18032154)
 * Hi,
 * You cannot use <site> as part of the filename.
 * Please uninstall and reinstall the plugin.
 * Follow the detailed instructions you find under each field, save the Contact 
   form 7 setting and test.
 * Thanks,
 * NYSL
    -  This reply was modified 1 year, 8 months ago by [NYSL](https://wordpress.org/support/users/nysl/).
      Reason: typo

Viewing 1 replies (of 1 total)

The topic ‘Undefined array key & Cannot modify header warnings’ is closed to new
replies.

 * ![](https://ps.w.org/wp-contact-form-7-spam-blocker/assets/icon-256x256.png?rev
   =2273252)
 * [Spam Protect for Contact Form 7](https://wordpress.org/plugins/wp-contact-form-7-spam-blocker/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-contact-form-7-spam-blocker/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-contact-form-7-spam-blocker/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-contact-form-7-spam-blocker/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-contact-form-7-spam-blocker/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-contact-form-7-spam-blocker/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [NYSL](https://wordpress.org/support/users/nysl/)
 * Last activity: [1 year, 8 months ago](https://wordpress.org/support/topic/undefined-array-key-cannot-modify-header-warnings/#post-18032154)
 * Status: resolved