Title: Plugin error in wp_debug mode
Last modified: August 21, 2016

---

# Plugin error in wp_debug mode

 *  Resolved [Evan Scheingross](https://wordpress.org/support/users/evster/)
 * (@evster)
 * [11 years, 9 months ago](https://wordpress.org/support/topic/plugin-error-in-wp_debug-mode/)
 * Hi, first off just wanted to thank you for your work on this awesome little plugin.
 * I’m getting an error when updating the plugin option with wp_debug mode turned
   on.
 * The error is as follows:
 *     ```
       Notice: Undefined index: textarea_one in /path-shortened/wp-content/plugins/format-media-titles/format-media-titles.php on line 140
   
       Notice: Undefined index: txt_one in /path-shortened/wp-content/plugins/format-media-titles/format-media-titles.php on line 143
   
       Warning: Cannot modify header information - headers already sent by (output started at /path-shortened/wp-content/plugins/format-media-titles/format-media-titles.php:140) in /path-shortened/wp-includes/pluggable.php on line 1121
       ```
   
 * When I update your code to check for a value being set all of the errors disappear.
   Here is my updated code:
 *     ```
       if (isset( $input['textarea_one'] )) {
       		$input['textarea_one'] =  wp_filter_nohtml_kses($input['textarea_one']); // Sanitize textarea input (strip html tags, and escape characters)
       	}
       	if (isset($input['txt_one'] )) {
       		$input['txt_one'] =  wp_filter_nohtml_kses($input['txt_one']); // Sanitize textbox input (strip html tags, and escape characters)
       	}
       ```
   
 * Just wanted to give you a heads up.
 * [https://wordpress.org/plugins/format-media-titles/](https://wordpress.org/plugins/format-media-titles/)

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

 *  Plugin Author [David Gwyer](https://wordpress.org/support/users/dgwyer/)
 * (@dgwyer)
 * [11 years, 9 months ago](https://wordpress.org/support/topic/plugin-error-in-wp_debug-mode/#post-5159032)
 * Thanks for letting me know. The issue was caused by some redundant code which
   has now been removed.
 * Latest version is now 0.2.
 *  Thread Starter [Evan Scheingross](https://wordpress.org/support/users/evster/)
 * (@evster)
 * [11 years, 9 months ago](https://wordpress.org/support/topic/plugin-error-in-wp_debug-mode/#post-5159062)
 * No prob! Happy to help, and thanks for pushing out an update so quickly. I use
   this plugin on almost all of the sites I develop. Keep up the good work!
 *  Thread Starter [Evan Scheingross](https://wordpress.org/support/users/evster/)
 * (@evster)
 * [11 years, 9 months ago](https://wordpress.org/support/topic/plugin-error-in-wp_debug-mode/#post-5159076)
 * Hey just tried out the updated plugin and when I attempt to save the settings
   I’m redirected to /wp-admin/options.php and given a message that says “ERROR:
   options page not found.”
 * Haven’t tried yet to replicate the error across multiple installations, but just
   wanted to let you know.
 * Error is happening in an installation running WP 3.9.1 with wp_debug set to true.
 *  Plugin Author [David Gwyer](https://wordpress.org/support/users/dgwyer/)
 * (@dgwyer)
 * [11 years, 9 months ago](https://wordpress.org/support/topic/plugin-error-in-wp_debug-mode/#post-5159137)
 * Thanks for the heads-up. I delete some code that shouldn’t have been deleted!
   All fixed now. But you may have to check plugin settings and re-save.
 *  Thread Starter [Evan Scheingross](https://wordpress.org/support/users/evster/)
 * (@evster)
 * [11 years, 9 months ago](https://wordpress.org/support/topic/plugin-error-in-wp_debug-mode/#post-5159160)
 * Awesome! Thus far all appears to be well. If I notice any problems I will report
   back. Thanks!
 *  Plugin Author [David Gwyer](https://wordpress.org/support/users/dgwyer/)
 * (@dgwyer)
 * [11 years, 9 months ago](https://wordpress.org/support/topic/plugin-error-in-wp_debug-mode/#post-5159169)
 * Thanks again.

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

The topic ‘Plugin error in wp_debug mode’ is closed to new replies.

 * ![](https://ps.w.org/format-media-titles/assets/icon.svg?rev=1413690)
 * [Format Media Titles](https://wordpress.org/plugins/format-media-titles/)
 * [Support Threads](https://wordpress.org/support/plugin/format-media-titles/)
 * [Active Topics](https://wordpress.org/support/plugin/format-media-titles/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/format-media-titles/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/format-media-titles/reviews/)

## Tags

 * [wp_debug](https://wordpress.org/support/topic-tag/wp_debug/)

 * 6 replies
 * 2 participants
 * Last reply from: [David Gwyer](https://wordpress.org/support/users/dgwyer/)
 * Last activity: [11 years, 9 months ago](https://wordpress.org/support/topic/plugin-error-in-wp_debug-mode/#post-5159169)
 * Status: resolved