• Resolved kimmorse

    (@kimmorse)


    Many who fill out my form and try to opt into my list get this message:

    Error: Sorry, the nonce security check didn’t pass. Please reload the page and try again. You may want to try clearing your browser cache as a last attempt.

    It is hard for me to fix since it works fine when I test it.

    What can I do?

Viewing 15 replies - 1 through 15 (of 18 total)
  • Plugin Contributor yikesitskevin

    (@yikesitskevin)

    Hi @kimmorse,

    Unfortunately there is no solution for this at the moment. However, a lot of different people have seen this issue since the nonce was added. It has gotten to the point that we’re going to add a toggle to turn off the nonce check. Hopefully within a week we will have a solution (the first step will most likely involve a simple filter, and then we can add a nice UI toggle’able feature in the future).

    Hope that’s alright.

    All the best,
    Kevin.

    Thread Starter kimmorse

    (@kimmorse)

    Thank you Kevin. I had an interview with a huge push for a free gift this week that included them opting in with this. Unfortunately, I am sure that I missed out on quite a few opt-ins. There were a few that contacted me and I opted them in myself, but I am sure that I missed out on many. Very disappointing and frustrating.

    I use your plug in for all of my opt-ins.

    I do not understand what a nonce is, so I will have to trust that it can be solved.

    Please get this fixed right away.

    Plugin Contributor yikesitskevin

    (@yikesitskevin)

    Hi @kimmorse,

    I’ve just pushed an update (v6.3.13) that should help you out: you can now turn off nonce verification.

    This is done through a filter, and it’s only one line: add_filter( 'yikes-mailchimp-use-nonce-verification', '__return_false' );.

    Are you familiar with adding filter functions to your functions.php file? If not, I can help you out just let me know.

    Cheers,
    Kevin.

    Thread Starter kimmorse

    (@kimmorse)

    That would be wonderful if you have the fix. It has been a real nightmare for me.

    I do not know how to adding filter functions to the functions.php file.

    If you could help me with that, I would really appreciate that.

    Plugin Contributor yikesitskevin

    (@yikesitskevin)

    Do you have access to your server’s files? You’ll need to find the functions.php file which lives in your theme’s directory (for example {my_website}/wp-content/themes/{my_theme}/functions.php), and edit it.

    1. Open your functions.php file
    2. Scroll to the bottom and locate the ?> at the very bottom of the file
    3. Add the line add_filter( 'yikes-mailchimp-use-nonce-verification', '__return_false' ); above the ?>. It should look like:

    add_filter( 'yikes-mailchimp-use-nonce-verification', '__return_false' );
    ?>

    4. Save the file

    Let me know if those instructions suffice.

    Plugin Contributor Tracy Levesque

    (@liljimmi)

    🏳️‍🌈 YIKES, Inc. Co-Owner

    Also if are not comfortable editing the functions.php file of your active theme, you can use this plugin https://ww.wp.xz.cn/plugins/my-custom-functions/

    Let us know if you need further help.

    Thank you!
    -Tracy

    Plugin Contributor yikesitskevin

    (@yikesitskevin)

    Hey @kimmorse,

    How’d it go?

    Thread Starter kimmorse

    (@kimmorse)

    I replied to your emails but you must not be getting them. I went to my functions.php file and could not find the ?&gt in there at all. Looked at the bottom first.

    I tried downloading the plugin that you suggested and plugged the line in there and got an error message.

    This is the line I put in: add_filter( ‘yikes-mailchimp-use-nonce-verification’, ‘__return_false’ );.

    This is the error message it gave me:
    Sorry, but your code causes a “Fatal error”, so it is not applied!
    Please, check the code and try again.

    I am not a programmer so I am doing the best that I can. I appreciate your help but I don’t want to have to pay an IT person to fix this problem. I will switch to a different contact form and integrate mail chimp if I can’t get this to work.

    Thread Starter kimmorse

    (@kimmorse)

    I just noticed that what you had in the forum here is different then the email that I got. You told me to look for ?> but in the email it showed up as ?&gt.

    I still did not find the ?> The top starts off with <?php but there is nothing at the bottom that resembles this ?>

    I would really love some more guidance here.

    Thread Starter kimmorse

    (@kimmorse)

    This is my entire file:

    <?php
    //* Start the engine
    include_once( get_template_directory() . ‘/lib/init.php’ );

    //* Set Localization (do not remove)
    load_child_theme_textdomain( ‘streamline’, apply_filters( ‘child_theme_textdomain’, get_stylesheet_directory() . ‘/languages’, ‘streamline’ ) );

    //* Child theme (do not remove)
    define( ‘CHILD_THEME_NAME’, __( ‘Streamline Pro Theme’, ‘streamline’ ) );
    define( ‘CHILD_THEME_URL’, ‘http://my.studiopress.com/streamline/&#8217; );
    define( ‘CHILD_THEME_VERSION’, ‘2.0.0’ );

    // Puts link in excerpts more tag
    function new_excerpt_more($more) {
    global $post;
    return ‘   ID) . ‘”>[read more]‘;
    }
    add_filter(‘excerpt_more’, ‘new_excerpt_more’);

    //* Add HTML5 markup structure
    add_theme_support( ‘html5’ );

    //* Add viewport meta tag for mobile browsers
    add_theme_support( ‘genesis-responsive-viewport’ );

    //* Enqueue PT Sans Google font
    add_action( ‘wp_enqueue_scripts’, ‘streamline_google_fonts’ );
    function streamline_google_fonts() {

    wp_enqueue_style( ‘google-fonts’, ‘//fonts.googleapis.com/css?family=PT+Sans’, array(), CHILD_THEME_VERSION );

    }

    //* Enqueue Responsive Menu Script
    add_action( ‘wp_enqueue_scripts’, ‘streamline_enqueue_responsive_script’ );
    function streamline_enqueue_responsive_script() {

    wp_enqueue_script( ‘streamline-responsive-menu’, get_bloginfo( ‘stylesheet_directory’ ) . ‘/js/responsive-menu.js’, array( ‘jquery’ ), ‘1.0.0’ );

    }

    //* Add support for additional color style options
    add_theme_support( ‘genesis-style-selector’, array(
    ‘streamline-pro-blue’ => __( ‘Streamline Pro Blue’, ‘streamline’ ),
    ‘streamline-pro-green’ => __( ‘Streamline Pro Green’, ‘streamline’ ),
    ) );

    //* Add new image sizes
    add_image_size( ‘post-image’, 760, 360, TRUE );
    add_image_size( ‘widget-image’, 295, 100, TRUE );

    //* Unregister layout settings
    genesis_unregister_layout( ‘content-sidebar-sidebar’ );
    genesis_unregister_layout( ‘sidebar-content-sidebar’ );
    genesis_unregister_layout( ‘sidebar-sidebar-content’ );

    //* Unregister secondary sidebar
    unregister_sidebar( ‘sidebar-alt’ );

    //* Add support for custom background
    add_theme_support( ‘custom-background’ );

    //* Add support for custom header
    add_theme_support( ‘custom-header’, array(
    ‘header_image’ => ”,
    ‘header-selector’ => ‘.site-title a’,
    ‘header-text’ => false,
    ‘height’ => 150,
    ‘width’ => 1140,
    ) );

    //* Add support for 3-column footer widgets
    add_theme_support( ‘genesis-footer-widgets’, 3 );

    //* Reposition the breadcrumbs
    remove_action( ‘genesis_before_loop’, ‘genesis_do_breadcrumbs’ );
    add_action( ‘genesis_before_content_sidebar_wrap’, ‘genesis_do_breadcrumbs’ );

    //* Customize breadcrumbs display
    add_filter( ‘genesis_breadcrumb_args’, ‘streamline_breadcrumb_args’ );
    function streamline_breadcrumb_args( $args ) {
    $args[‘home’] = __( ‘Home’, ‘streamline’ );
    $args[‘sep’] = ‘ ‘;
    $args[‘list_sep’] = ‘, ‘; // Genesis 1.5 and later
    $args[‘prefix’] = ‘<div class=”breadcrumb”>’;
    $args[‘suffix’] = ‘</div>’;
    $args[‘labels’][‘prefix’] = ‘<span class=”icon-home”>’;
    $args[‘labels’][‘suffix’] = ‘</div>’;
    return $args;
    }

    //* Remove default post image
    remove_action( ‘genesis_entry_content’, ‘genesis_do_post_image’, 8 );

    //* Reposition the post info function
    remove_action( ‘genesis_entry_header’, ‘genesis_post_info’, 12 );
    add_action( ‘genesis_entry_header’, ‘genesis_post_info’, 2 );

    //* Customize the post info function
    add_filter( ‘genesis_post_info’, ‘post_info_filter’ );
    function post_info_filter( $post_info ) {

    if ( !is_page() ) {
    $post_info = ‘[post_author_posts_link] [post_date] [post_comments] [post_edit]’;
    return $post_info;
    }

    }

    //* Add the after entry section
    add_action( ‘genesis_entry_footer’, ‘streamline_after_entry’, 10 );
    function streamline_after_entry() {

    if ( ! is_singular( ‘post’ ) ) return;

    genesis_widget_area( ‘after-entry’, array(
    ‘before’ => ‘<div class=”after-entry widget-area”>’,
    ‘after’ => ‘</div>’,
    ) );

    }

    //* Modify the size of the Gravatar in the author box
    add_filter( ‘genesis_author_box_gravatar_size’, ‘streamline_author_box_gravatar_size’ );
    function streamline_author_box_gravatar_size( $size ) {

    return ’80’;

    }

    //* Remove comment form allowed tags
    add_filter( ‘comment_form_defaults’, ‘streamline_remove_comment_form_allowed_tags’ );
    function streamline_remove_comment_form_allowed_tags( $defaults ) {

    $defaults[‘comment_notes_after’] = ”;
    return $defaults;

    }

    // Register widget areas
    genesis_register_sidebar( array(
    ‘id’ => ‘home-featured-1’,
    ‘name’ => __( ‘Home – Featured 1’, ‘streamline’ ),
    ‘description’ => __( ‘This is the first featured column on the homepage.’, ‘streamline’ ),
    ) );
    genesis_register_sidebar( array(
    ‘id’ => ‘home-featured-2’,
    ‘name’ => __( ‘Home – Featured 2’, ‘streamline’ ),
    ‘description’ => __( ‘This is the second featured column on the homepage.’, ‘streamline’ ),
    ) );
    genesis_register_sidebar( array(
    ‘id’ => ‘home-featured-3’,
    ‘name’ => __( ‘Home – Featured 3’, ‘streamline’ ),
    ‘description’ => __( ‘This is the third featured column on the homepage.’, ‘streamline’ ),
    ) );
    genesis_register_sidebar( array(
    ‘id’ => ‘after-entry’,
    ‘name’ => __( ‘After Entry’, ‘streamline’ ),
    ‘description’ => __( ‘This is the after entry section.’, ‘streamline’ ),
    ) );

    Plugin Contributor yikesitskevin

    (@yikesitskevin)

    Add the following line to the bottom of the file:

    add_filter( ‘yikes-mailchimp-use-nonce-verification’, ‘__return_false’ );

    Edit: I’m noticing that when copying and pasting the above line, the single quotes are being converted into ‘fancy’ single quotes. If you’re experiencing issues then type the line out in the bottom of the file.

    Plugin Contributor yikesitskevin

    (@yikesitskevin)

    Alternatively, you can email me the functions.php file at [email protected] and I will add the line for you and send the file back.

    Thread Starter kimmorse

    (@kimmorse)

    We fixed my site. I will not be putting the line in again. I will just have to use another plugin and integrate with mail chimp.

    I am sure I am not the only one having an issue and I don’t personally believe it is a good idea to have a fix that requires someone to change something on their website files.

    I hope you find a different fix for this that will not require your customers to do anything. My website was down for almost 24 hours because of this mess!!

    Plugin Contributor yikesitskevin

    (@yikesitskevin)

    Hi Kim,

    I’m truly sorry about what happened. In the future I will be more precautionary about having people do these kinds of edits. I will also do my best to warn users about the risks before asking them to change their website files.

    I’m going to add this feature as an option that can be turned on and off so that this doesn’t occur again.

    Again, I apologize for what happened. I’ve learned something. And I hope whichever plugin you use works for you.

    Sincerely,
    Kevin.

    Thread Starter kimmorse

    (@kimmorse)

    I appreciate your apology. When we were able to get into the directory, all we did was remove that line and everything worked fine again. I don’t write html so I don’t know what could have possibly been the issue with the line.

    I would prefer to keep using your plugin as I have at least 6 contact forms that I use on my website and I will have to go in and change them all.

    If you have a fix that does not require me adding language to my website, please let me know.

Viewing 15 replies - 1 through 15 (of 18 total)

The topic ‘Error message for subscribers’ is closed to new replies.