Wordpress Critical Error Message
It can feel daunting when the generic message "There has been a critical error on this website" is shown instead of your generated PDF. Not to worry though! This page will help you uncover the underlying PHP error that's causing the problem, and what the common fixes are.
Uncovering the Error
Create a backup of your website before attempting any changes. Should something else go wrong you can easily restore your backup.
The WP Debugging plugin by Andy Fragen is an easy way to enable debug mode in WordPress. All you need to do is install and activate the plugin. Once activated, replicate the steps you originally took to produce the generic WordPress error. You should now see detailed error message(s) on-screen that'll help you diagnose the issue.
If no errors appear when debug mode is activated, it could be masked by another plugin. You can check by installing the Health Check & Troubleshooting plugin and enable troubleshooting mode with both Gravity Forms and Gravity PDF activated. Gravity Forms has an excellent guide on how to troubleshoot using this plugin.
Fixing the Error
If you aren't sure how to fix the error message(s) displayed get in touch with our friendly support team.
Memory Size Exhausted
PHP Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 20480 bytes)
Try increasing your WordPress Memory Limit to 256MB or higher. That will usually resolve this fatal error.
File, Class, Interface, Function Not Found
PHP Fatal error: Uncaught Error: Interface "GFPDF_Vendor\\Psr\\Log\\LoggerAwareInterface" not found
If a Gravity PDF-specific file, class, interface, or function is not found this suggests the installation or upgrade of the plugin was not completed successfully. Deactivating and deleting the plugin from your website and then reinstalling will usually fix the problem.