Hello,
I implemented WP Forms to my EVENT-On Card. However, if I want to send an E-Mail, the error “Action failed. Please reshresh the page and retry.” apprears in the browser. Do you have any idea to fix this issue?
Thank you for an answer!
Kind regards,
Franziska
Hello,
Could you try disabling nonce verification by making this change:
https://helpdeskx.s3.amazonaws.com/wp-content/uploads/2024/09/06132707/Screenshot-2024-09-06-at-1.26.42%E2%80%AFPM.png
You can find the file by going to EventON folder > includes folder.
Hello Artem,
thank you for your quick response. I found the file and compared it to the screenshot. However, for me it looks quite the same. Here is the code on my site:
// verify nonce
if(empty( $_POST[‘nn’] ) || !wp_verify_nonce( wp_unslash( $_POST[‘nn’] ), ‘eventon_nonce’)) {
wp_die( esc_html__( ‘Action failed. Please refresh the page and retry.’,’eventon’) );
}
Should I change anything here?
P.S. I also tried comment it out using /* */ for this code snippet… didn’t work.
Can you please send us a direct link to where the actual issue is happening?
Hi Artem,
this link appears when I try to send a form:
https://www.wingtsun-selbstverteidigung.de/?evo-ajax=eventon_get_events
This is the site, where the EventOn Card is located:
https://www.wingtsun-selbstverteidigung.de/seminare/
> in every EventOnCard, there is a WP Form, which doesn’t work…
I have tried a few things from creating a new field just for the form and changing a few things but nothing has worked (I did change it back )
perhaps try a snippets program- paste the shortcode into the snippets and then paste the snippets shortcode into the event
https://en-au.wordpress.org/plugins/code-snippets/
so you create a new snippet- make it universal and then paste the form shortcode into that snippet- which will generate a shortcode- then paste that snippet shortcode into the event
Thank you for that idea. Unfortunately, it didn’t work either. Any other ideas? I’m sorry – but I have to fix it and I have no clue how…
Hey there,
I found an alternative solution. So so need to worry about it any longer 😉
Thank you so much for your help.
Cheers,
Franziska
Perfect! If you have any further questions or concerns please create a new ticket.