google-code-export / digitalus-cms

Automatically exported from code.google.com/p/digitalus-cms
1 stars 1 forks source link

admin panel uses the public 404 page #144

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Run in production mode
2. throw exception from the module
3.

What is the expected output? What do you see instead?
error message, using the admin templates
it uses however the public template

What version of the product are you using? On what operating system?
svn, r703

Please provide any additional information below.

Original issue reported on code.google.com by Darha...@gmail.com on 7 Mar 2010 at 5:21

GoogleCodeExporter commented 9 years ago
Where do You throw an exception?
PublicController or elsewhere?

Original comment by lowtower1974@gmail.com on 8 Mar 2010 at 7:34

GoogleCodeExporter commented 9 years ago
Open Admin_NavigationController and in the init throw an exception
class Admin_NavigationController extends Zend_Controller_Action
{
    public function init()
    {
        throw new Exception('404');    

In production mode it leads to a 404 page, but using the public layout, and in 
development mode it leads to 
Fatal error: Uncaught exception 'Exception' with message '404

Original comment by Darha...@gmail.com on 8 Mar 2010 at 9:33

GoogleCodeExporter commented 9 years ago
Hello Darhazer,

in 'development' mode, this is the desired behaviour!
In the application.ini, we decide to throw exceptions in 'development' mode, 
but not
in 'production' mode.

For the latter, I confirm this is a bug.

Thanks for bringing this to our attention!

Cheers,
LT

Original comment by lowtower1974@gmail.com on 28 Apr 2010 at 2:31

GoogleCodeExporter commented 9 years ago

Original comment by lowtower1974@gmail.com on 28 Apr 2010 at 4:07