Can I disable the standard symphony error page?
This is an open discussion with 6 replies, filed under General.
Search
Have you created a Page with type 404
or 403
? Symphony will show those pages if they exist.
Sorry, my explanation was too short.
I don't want on the live system the "Symphony Warning" page with backtrace or the database query log. This would be an 500 error. The same for the XSLT error page.
I don't think Symphony lets you do this without a little customisation. Two things to try:
- Modify the two error
.tpl
files in/symphony/template
, or - Try using the
ErrorDocument
directive in .htaccess (documentation)
I think this would a nice improvement for the error handler class.
Throw exceptions only if a flag is TRUE otherwise, use the page with the type 500 or the page type for a XSLT error.
An apache environment variable is also a solution:
// Define application environment defined('APPLICATION_ENV') || define('APPLICATION_ENV', (getenv('APPLICATION_ENV') ? getenv('APPLICATION_ENV') : 'production'));
I don't want on the live system the "Symphony Warning" page with backtrace or the database query log.
As far as I know this is only shown to logged-in users.
As far as I know this is only shown to logged-in users.
Okay a blank page but not very elegant or usefull for the site visitor.
Create an account or sign in to comment.
On the production/live system I want to disable the standard symphony error page. I would like to use my own error page. Similar to 404 errors.