Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

I upgraded to the latest version of WordPress and now for some reason when I go to the menus page and it only seems to happen there, I get an error saying

Notice: Undefined index: eventmeta_noncename in /home3/themes/savior/functions.php on line 1399

Here is the code. Line 1399 would be line 4 in the code

http://pastebin.com/rNR7sMGP

I can't figure out why it's an undefined index.

share|improve this question

closed as too localized by toscho Dec 14 '12 at 10:01

This question is unlikely to help any future visitors; it is only relevant to a small geographic area, a specific moment in time, or an extraordinarily narrow situation that is not generally applicable to the worldwide audience of the internet. For help making this question more broadly applicable, visit the help center.If this question can be reworded to fit the rules in the help center, please edit the question.

1  
It would be line 20 in that code, not 4. It means that you are comparing the value of a (special) variable, but you are not checking if that variable is set first. –  onetrickpony Dec 14 '12 at 2:41
    
maybe I am missing something. I thought it was created and then set with the input fields above that line. What is missing? –  Jamie Dec 14 '12 at 2:52

1 Answer 1

up vote 0 down vote accepted

This seems to have solved the issue.. Checking to see that it is set.

 if ( !isset( $_POST['eventmeta_noncename'] ) || !wp_verify_nonce( $_POST['eventmeta_noncename'], plugin_basename(__FILE__) )) {
return $post->ID;
 }
share|improve this answer

Not the answer you're looking for? Browse other questions tagged or ask your own question.