Ee 3 This Form Has Expired Please Refresh and Try Again Upload File

Developer
Supported

Subscriber

ExpressionEngine 2, ExpressionEngine 3, ExpressionEngine 4, ExpressionEngine 5, ExpressionEngine 6

Back to this add-on's main page
View Other Add-ons From Wes Baker

This form has expired. Please refresh and try again.

Support Request

eastwooddesign
eastwooddesign

I just added this add on to my EE 2.11.9 install and everytime I create and save a new form I get the error
This form has expired. Please refresh and try again.

I refresh and try again, same error

wesbaker
# 1

Developer

wesbaker

I'll have to take a look, it's been a while since I've booted up EE 2.

eastwooddesign
# 2
eastwooddesign

Thanks I can confirm this on 2 different installs of 2.11

eastwooddesign
# 3
eastwooddesign

any update on getting this fixed?

wesbaker
# 4

Developer

wesbaker

Hey there, I'm usually busy with family on the weekends and yesterday was my son's birthday party. I took a quick look at it today and couldn't reproduce the problem. I'm using PHP 5.6 and MySQL 5.0.11. Back when I worked at EllisLab, I remember this coming up a bit, but it's been a few years since I've diagnosed the problem, though here's where it was reported: https://expressionengine.com/support/bugs/20724/this-form-has-expired.-please-refresh-and-try-again-error-when-guest-users-

It makes me wonder if you properly updated EE, but I can't be sure. Since it works locally, I have to recommend talking with EllisLab to see if they know why your install isn't working.

eastwooddesign
# 5
eastwooddesign

funny thing is it doesn't work on 2 different sites using 2.11 and they are on 2 completely different servers.

eastwooddesign
# 6
eastwooddesign

and to confirm this error happens when I an editing the module settings.  I go to addons > subscribe > settings > add new form > submit.


This has nothing to do with guest form submissions as I an logged in to the backend as a super admin

wesbaker
# 7

Developer

wesbaker

Yeah, I'm not sure what's going on, that's where I'm testing it as well.

wesbaker
# 8

Developer

wesbaker

So, I can replicate the problem, but I have to open up my inspector and remove the csrf token from the form manually, which is not something that should be happening. Can you replicate the problem on a fresh install with just Subscriber installed? I'm wondering (guessing) if there's another add-on that might be interfering with the form submission.

eastwooddesign
# 9
eastwooddesign

I will have to test out a fresh install and find out.  Of the 2 sites I already tested both are using freeform.  And one of these sites the only 3rd party modules I am using is Freeform and Wygwam.

wesbaker
# 10

Developer

wesbaker

Have you modified your cookie or session settings? https://expressionengine.stackexchange.com/questions/20686/error-after-install/20733#20733

eastwooddesign
# 11
eastwooddesign

I tested with and without cpanel cookies and sessions as well as cookies only.  Neither worked.

eastwooddesign
# 12
eastwooddesign

I think this works!!  $config['disable_csrf_protection'] = "y";

eastwooddesign
# 13
eastwooddesign

I was able to submit the form and get a token!!  {exp:subscriber:form form_id="1"}  SUCCESS thanks

wesbaker
# 14

Developer

wesbaker

Ideally that would be on, something weird is still going on. Maybe post in the EE forums to see if anyone has any other ideas.

 

espinozahinglew.blogspot.com

Source: https://devot-ee.com/add-ons/support/subscriber/viewthread/16763

0 Response to "Ee 3 This Form Has Expired Please Refresh and Try Again Upload File"

Enregistrer un commentaire

Iklan Atas Artikel

Iklan Tengah Artikel 1

Iklan Tengah Artikel 2

Iklan Bawah Artikel