This article explains how to disable detailed ColdFusion Markup Language (CFML) error messages on a production website. This procedure is intended for developers using ColdFusion or Lucee to ensure that internal system details and stack traces are not exposed to the public.
Important: You should only disable detailed errors once you have confirmed that your application is stable and you have established a reliable method for viewing internal logs.
Before you begin
You will need:
Developer access to the ColdFusion or Lucee Administrator interface.
Administrative permissions to modify the ColdFusion or Lucee configuration.
Disabling Detailed Error Information
To prevent the system from displaying detailed technical information to end users, you must modify the application's error handling settings.
Log in to the ColdFusion Administrator or Lucee Administrator.
Navigate to Server Settings > Application Settings.
Locate the Error Handling section.
Find the setting for Enable Robust Exception Information and Enable Debugging(or Show Detailed Errors in Lucee).
Uncheck the checkbox or set the value to False (or Off).
Select Save or Apply.
Warning: Disabling detailed errors will hide the specific technical reasons for a failure from the end user. Ensure you have a logging system in place to capture these errors for internal review.
Confirm the result
To verify that the change has taken effect:
Navigate to a known broken page or trigger a deliberate script error on your production site.
The site should now display a generic error page or a standard "500 Internal Server Error" instead of a detailed CFML stack trace.
The specific line numbers, file paths, and internal variables should no longer be visible in the browser.
How to Enable Detailed CFML Error Information Temporarily
If you need to troubleshoot a specific issue on a production site, you can temporarily re-enable detailed errors.
Log in to the ColdFusion Administrator or Lucee Administrator.
Navigate to Server Settings > Application Settings.
Check the boxes for Enable Robust Exception Information or Enable Debugging, or set Display Error Details to True (or On).
Select Save or Apply.
Perform your troubleshooting.
Important: Once troubleshooting is complete, return to this article and follow the steps above to set the value back to False.
Limitations
This procedure affects the global display of errors for the ColdFusion or Lucee instance. If your application uses specific <cfset> or <cfdump> commands, those may still output data unless specifically configured otherwise in the code. This change does not affect the logging of errors to the server's internal log files.
