Support » Plugins and Hacks » Getting Rid of PHP Notice

Getting Rid of PHP Notice

  • When in debugging mode, I’m getting this error/notice:

    Notice: Undefined index: wp_simplify_nonce in /var/www/wp-content/plugins/wp-simplify/wp-simplify.php on line 81

    I’ve fixed this in my local version of the plugin, but could this be updated in the next release:

    starting at line 81:

    if (isset($_REQUEST['wp_simplify_nonce'])) {
    		 	if(wp_verify_nonce($_REQUEST['wp_simplify_nonce'], "wp_simplify_update")) {
    				update_option('wp_simplify', $_REQUEST[wp_simplify]);

    Just wrap the wp_verify_nonce in an isset if statement. Does the trick!


  • The topic ‘Getting Rid of PHP Notice’ is closed to new replies.