Skip Navigation

[Resolved] The form you submitted has expired. Please refresh the page and try again.

This support ticket is created 5 years, 9 months ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
- - 14:00 – 20:00 14:00 – 20:00 14:00 – 20:00 14:00 – 20:00 14:00 – 20:00
- - - - - - -

Supporter timezone: Asia/Ho_Chi_Minh (GMT+07:00)

Tagged: 

This topic contains 4 replies, has 2 voices.

Last updated by Beda 5 years, 9 months ago.

Assisted by: Beda.

Author
Posts
#1204633

Hi,

I've created a form with CRED plugin, and I have a custom field (IMAGE type). When I select image, appears the loading bar and once it is finished, appears this popup error: The form you submitted has expired. Please refresh the page and try again.

The form is in a page, and the site is hosting in WP Engine. I was thinking it can be a security issue, but WPEngine support, told to ask you.

Can you help me?

Thanks,
Michael

#1204945

This is not happening on my local or online test install, however, I recall this problem from several years ago - it was due to customized upload paths', which Toolset generally does not support or has issues with.
Note that most of those issues were fixed in past already:
https://toolset.com/errata/upload-fails-wordpress-installed-directory/

I think this one is either a compatibility issue or a very specific setting of which I am not yet aware of.

Can you:
- try to see if this issue happens as well without any other Plugin but Toolset and with a WordPress native Theme?
- try to replicate this on a minimal (quick) test site on the same server?
- try to replicate it on a minimal test site but not on the same server?

This will most precisely indicate where the issue is buried in.

Later, if the issue persists in all cases, you can, for example, attach a duplicate of the minimal site to the thread here, https://toolset.com/faq/provide-supporters-copy-site/) so I can analyse what and why it happens
Please do not forget that this might be due to customizations to the upload path.

Thanks!

#1205375

Using this workaround https://toolset.com/errata/upload-fails-wordpress-installed-directory/, now it works!

Thank you!

#1205539

A few minutes ago, the problem returned.
I noticed that if I'm logged in, the error popup appears. If I clear browser cache, and I try to upload when I'm logged out, everything works fine. If I login and try again, the error popup returns.

Do you have any idea about how I can fix the upload?

Thanks

#1206218

You are saying, that applying the PATCH of the erratum here solved the issue?
https://toolset.com/errata/upload-fails-wordpress-installed-directory/

This is not possible, because that patch was crafted many years ago and is not applicable to the Toolset Forms.
It would break your site, likely.
I shared that post to show that the issue was solved in past, but not to apply that patch, I am sorry if I was not clear.

Now, I see that later anyway the issue came back and it was due to cache?
Then, this issue is not related to Toolset at all, most likely, but rather to some cache or sever issue.

You can find out by disabling non-Toolset Plugins, using a native WordPress Theme like Twenty Nineteen, and try again.

Further, do you, in fact, have a customized upload path of WordPress?
If so, can you please elaborate the precise steps I need to take, in order to replicate this issue as it is on your site?
==> Does revert to the previous Forms Version solve the problem?
You can test this on a staging site of yours, or after a good backup on the live site if you have no staging site.
To revert, you can simply rename the current Forms Plugin and then, download the version you think it works with, from here:
https://toolset.com/account/downloads/

I am almost 100% sure this is related to the WP Engine caching mechanisms
The easiest to check that is setting up a minimal (5-minute install) WordPress install on the same server and test there again.
If then it happens, likely it is a server/cache issue, and if not, it's an exception/corruption on the current site.

We can assist in solving issues within Toolset, however, it will take the collaboration of the 3rd party if it is a compatibility problem with other software or the server.