• 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/

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author David Gwyer

    (@dgwyer)

    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

    (@evster)

    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

    (@evster)

    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

    (@dgwyer)

    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

    (@evster)

    Awesome! Thus far all appears to be well. If I notice any problems I will report back. Thanks!

    Plugin Author David Gwyer

    (@dgwyer)

    Thanks again.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Plugin error in wp_debug mode’ is closed to new replies.