Skip Navigation

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

Ce fil est résolu. Voici une description du problème et la solution proposée.

Problem:
When trying to upload images using the CRED form client gets this error:

"The form you submitted has expired. Please refresh the page and try again."

Solution:
The site was switching between http and https which seemed to mess with the CRED form.

"We've now forced it to always be https and it seems to be working now."

This support ticket is created Il y a 6 années et 8 mois. 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
- 7:00 – 14:00 7:00 – 14:00 7:00 – 14:00 7:00 – 14:00 7:00 – 14:00 -
- 15:00 – 16:00 15:00 – 16:00 15:00 – 16:00 15:00 – 16:00 15:00 – 16:00 -

Supporter timezone: Europe/London (GMT+00:00)

Ce sujet contient 3 réponses, a 2 voix.

Dernière mise à jour par glennN Il y a 6 années et 8 mois.

Assisté par: Nigel.

Auteur
Publications
#625146
Screen Shot 2018-03-15 at 1.17.35 pm.png

Hi,

When we try to upload images using the CRED form we get this error:

"The form you submitted has expired. Please refresh the page and try again."

Could you please log in and have a look?

Login Details:
[edit]

Page with issue:
lien caché

Thanks,
Mike

#625326

Nigel
Supporter

Les langues: Anglais (English ) Espagnol (Español )

Fuseau horaire: Europe/London (GMT+00:00)

Hi Mike

I checked your site and could see the issue, and did some basic debugging steps which didn't reveal anything.

I don't have FTP access to check your debug logs which may have useful info, but as that might mean I would need to take a copy of your site for testing I am taking one anyway, and I'll install locally and check what the logs show.

I'm doing that now and will tidy up when done and then get back to you with what I find.

#625373

Nigel
Supporter

Les langues: Anglais (English ) Espagnol (Español )

Fuseau horaire: Europe/London (GMT+00:00)

Hi Mike

I installed your site locally and tested the form and it worked fine, so it appears to be a server-related problem (or an issue arising from the must-use plugins which I disabled to use your site locally but which you cannot on WP Engine).

So can you please check your PHP logs?

If you haven't already, turn on the debugging by editing your wp-config.php file and change the line with WP_DEBUG like so:

define('WP_DEBUG', true);
ini_set('log_errors',TRUE);
ini_set('error_reporting', E_ALL);
ini_set('error_log', dirname(__FILE__) . '/error_log.txt');

That will create a debug log called error_log.txt in your root directory (the same location as wp-config.php) which you can examine in any text editor. Try uploading an image to the form again and then inspect the log.

Let me know what you find.

#625537

Hi Nigel, thanks for the investigating. We've had a long talk with WP Engine and they could not find any errors.
So after some more hunting, we found the site was switching between http and https which seemed to mess with the CRED form.

We've now forced it to always be https and it seems to be working now.

Thanks,
Mike.