Skip to content

Submission Errors

Submission Fails When Cache is Enabled

The form displays an Internal Server Error when page caching is enabled. When the cache is cleared, it works, but soon after, it stops working.

This is expected. Due to the nature of how submissions are validated, pages containing a form cannot be cached. Find a way to make a caching exception for those pages.

Submission Fails With Vague Error

The form displays a Submission Failed error without any further details, it is most likely a suppressed PHP error. To get more insights about it you can:

  • Check the server PHP's recent error logs.
  • Open the Customizer and submit the form again making sure Error Reporting is enabled.

Enable Error Reporting

Error reporting can be enabled in Joomla Global Configuration or in WordPress wp-config.php file.

Submission Fails With No Error

The form does not display any visual feedback regarding the error, it could be the .htaccess redirecting the post request.

The best way to debug this is to check if:

  • In the browser console. check if a request redirect is happening when the form is submitted.
  • In the .htaccess file, check if there is any rule that is affecting the URL, eg removing/adding a trailing slash.

If this is the case, you can either remove such a rule or make it more specific, for example by restricting the redirect to only affect GET requests, like so:

Before

sh
# Remove Trailing Slash
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)/$ /$1 [R=301,NC,L]

After

sh
# Remove Trailing Slash
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_METHOD} GET
RewriteRule ^(.*)/$ /$1 [R=301,NC,L]