Support » Plugin: Simple SEO » Notice: Undefined index: sseo_nonce

  • Resolved d2.roth

    (@d2roth)


    Hey Guys,
    When saving the default Contact Form 7 form I get an undefined index error:
    Notice: Undefined index: sseo_nonce in /wp-content/plugins/cds-simple-seo/cds-simple-seo.php on line 500. I am not able to run into this issue with pages or other Custom Post Types but I tested on two different environments and got the same results.

    I checked that line out and it just needs to be changed so it checks for the sseo_nonce key before the nonce check. Here would be the final code:

    
    	if (!isset($_POST['sseo_nonce']) || !wp_verify_nonce($_POST['sseo_nonce'], basename(__FILE__))) {
    

    Pertinant versions:
    WordPress – Version 4.9.9 and 5.0.3
    Contact Form 7 – Version 5.1.1
    Simple SEO – Version 1.3.4

    I hope that helps you out.

    • This topic was modified 11 months, 4 weeks ago by d2.roth.
    • This topic was modified 11 months, 4 weeks ago by d2.roth.
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Notice: Undefined index: sseo_nonce’ is closed to new replies.