Viewing 14 replies - 1 through 14 (of 14 total)
  • Plugin Author storeapps

    (@storeapps)

    Hi,

    Can you please tell us how to replicate the same error on our end?

    Thread Starter Azizul Karim

    (@azizul-karim-aec)

    Sorry, i don’t know how to do that.

    Plugin Author storeapps

    (@storeapps)

    Hi,

    Then how you found out that error is generated by Email Subscribers Advanced Form plugin?
    Without replicating the same, we would not be able to help you resolve the issue.

    Hi,
    I have the same issue with the shortcode

    do_shortcode("[email-subscribers-advanced-form id=\"1\"]");

    and here is the html which is generated

    <div class="inscription"><input type="hidden" value="bd0c5d0698" name="_wpnonce" id="_wpnonce"><input type="hidden" value="/maquettes_cyber/ploubazlanec/" name="_wp_http_referer"><form action="/maquettes_cyber/ploubazlanec/#inscription" id="inscription" method="post"><p>Restez informé des dernières actualités : si une actualité est publiée sur le site vous recevrez un email !</p><p><label for="es_af_txt_em">Votre email<sup>*</sup> :</label><input type="text" maxlength="225" value="" id="es_af_txt_em" name="es_af_txt_em" class="es_af_tb_css form-control"></p><p><input type="submit" value="S'inscrire" id="es_af_btn" name="es_af_btn" class="es_af_bt_css btn btn-block btn-primary"></p><input type="hidden" value="bd0c5d0698" name="_wpnonce" id="_wpnonce"><input type="hidden" value="/maquettes_cyber/ploubazlanec/" name="_wp_http_referer"></form></div>

    Please help

    Plugin Author storeapps

    (@storeapps)

    @fredleput,

    Can you please tell me if you have written this on a WordPress editor?

    do_shortcode("[email-subscribers-advanced-form id=\"1\"]");

    hi and thx for help, here’s the code i use in my sidebar.php file :

    <div id="inscription-wrapper" class="widget">
    			<h2 class="widget-title"><i class="fa fa-pencil"></i>&nbsp;S'inscrire !</h2>
    			<div class="mail-subscriber">
    			<?php echo do_shortcode("[email-subscribers-advanced-form id=\"1\"]"); ?>
    			</div>
    		</div>
    Plugin Author storeapps

    (@storeapps)

    @fredleput,

    Can you please try this code instead of yours & have a check :

    <div id="inscription-wrapper" class="widget">
    	<h2 class="widget-title"><i class="fa fa-pencil"></i>inscrire</h2>
    	<div class="mail-subscriber">
    		<?php echo do_shortcode("[email-subscribers-advanced-form id='1']"); ?>
    	</div>
    </div>

    error found and fixed. It’s the code which is at line 751 of file es-af-register.php

    $es_af = $es_af . wp_nonce_field('es_af_form_subscribers');
    should be
    $es_af = $es_af . wp_nonce_field('es_af_form_subscribers', '_wpnonce', true, false);
    see here

    wp_nonce_field( $action, $name, $referer, $echo )

    last parameter is for echo the field and is true by default so it’s written twice

    problem solved and fixed. It’s the code at line 751 of es-af-register.php

    original code is :
    $es_af = $es_af . wp_nonce_field('es_af_form_subscribers');
    and it should be
    $es_af = $es_af . wp_nonce_field('es_af_form_subscribers', '_wpnonce', true, false);

    see documentation of wp_noncefield for details

    Plugin Author storeapps

    (@storeapps)

    @fredleput,

    Thank you for providing us changes. Is it working correctly after making changes?

    Yes it works great ! but i think the problem is the same in other files as far you use wp_nonce_field…

    Plugin Author storeapps

    (@storeapps)

    @fredleput,

    Okay! Thanks for the update! We’ll have a check with this.

    Cool let me know when you’ll have the plugin updated. And thx

    Plugin Author Icegram

    (@icegram)

    @azizul-karim-aec, @fredleput,

    Kindly update to v1.3.3 as the same is fixed in it.
    Let me know if it works correctly after updating.

Viewing 14 replies - 1 through 14 (of 14 total)
  • The topic ‘Duplicate ID _wpnonce detected’ is closed to new replies.