Skip Navigation

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

This support ticket is created 6 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
8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 - -
13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 - -

Supporter timezone: America/New_York (GMT-04:00)

This topic contains 2 replies, has 2 voices.

Last updated by Leonardo 6 years, 9 months ago.

Assisted by: Christian Cox.

Author
Posts
#624704

I am trying to: Upload an image via CRED.
It works if I am logged into WordPress, but not for guests. The error happens when I select an image to send, even if I have not submitted the form.
I am not using the Access plugin.

Link to a page where the issue can be seen: hidden link

I expected to see: The file being uploaded

Instead, I got: Error message stating "The form you submitted has expired. Please refresh the page and try again."

#624766

Hi, can you try the following troubleshooting steps?
- Temporarily activate a default theme like Twenty Seventeen and test the form again. Let me know the results.
- Create a Generate Press child theme and insert this code in the functions.php file, then test the form again and let me know the results:

add_filter("cred_file_upload_disable_progress_bar", "disable_progress_bar");
function disable_progress_bar($val) {
return true;
}

- Turn on server logs to learn more about the error if it's available. If you're not familiar with server logs, I can show you how to activate them. Go in your wp-config.php file and look for define(‘WP_DEBUG’, false);. Change it to:

define('WP_DEBUG', true);

Then add these lines, just before it says 'stop editing here':

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

Try to upload another image and reproduce the error. If any server-side errors are logged, this will create an error_log.txt file in your site's root directory. Please send me its contents. Once that is done, you can revert the changes you made to wp-config.php.

#624789

Using Twenty Seventeen eliminated the problem.
So I created a child theme for GP and the problem did not show up. Even without the modifications you suggested.
I reverted back to the original GP theme, and everything is working again. I'm not sure why it was not working before.

Thanks for the assistance. If it happens again, I'll look into the server logs or try to create the child theme again.

Leo