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


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

closed as too localized by fuxia 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

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;

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