Hey Alexeev,

If url is wrong, for example '/ert/ept/', than i am get web-server's 404
page instead of ErrorController's message.

Try checking your .htaccess file and ensure the following are in place:

RewriteEngine on
RewriteBase /

# If the request is a file, symbolic link or a directory, serve it as normal.
RewriteCond %{REQUEST_FILENAME} -f
RewriteCond %{REQUEST_FILENAME} -d
RewriteCond %{REQUEST_FILENAME} -l
RewriteRule .* -

RewriteCond %{REQUEST_FILENAME} !\.(js|ico|txt|gif|jpg|png|css)$ [NC]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule (.*) index.php?$1 [QSA]


Also i put 'die();' in the end of ErrorController or error/error.tpl. In
this case blank page appears.

Also i commented string '$this->getResponse()->setHttpResponseCode(404);' in
ErrorController. Than i get ErrorController message. It looks like OK. But i
think, that such solution is wrong.

I believe the solution can be found in the php configuration. Ensure that display_errors is on and error reporting is set to at least E_ALL if not `E_ALL | E_STRICT` to ensure all errors are displayed.

Hope this helps,
-Kizano
//-----
Information Security
eMail: [email protected]
http://www.markizano.net/

Reply via email to