Search

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.

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:

  1. Modify the two error .tpl files in /symphony/template, or
  2. 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.

Symphony • Open Source XSLT CMS

Server Requirements

  • PHP 5.3-5.6 or 7.0-7.3
  • PHP's LibXML module, with the XSLT extension enabled (--with-xsl)
  • MySQL 5.5 or above
  • An Apache or Litespeed webserver
  • Apache's mod_rewrite module or equivalent

Compatible Hosts

Sign in

Login details