Page 1 of 1

How do I customize Error Console (smarty exception page)?

Posted: Wed Sep 18, 2013 10:58 am
by radoado
When an error occurs in Smarty will be displayed page and listing error. This is a potential security problem.

https://www.google.com/?q="cms+made+sim ... console%22

The ideal would be:
- display an error page in the design of the site
- logging errors with a short unique code
- show this unique code on the page with an explanation of how to proceed

How does such magento: http://magebase.com/magento-tutorials/c ... ance-page/

Re: How do I customize Error Console (smarty exception page)

Posted: Wed Sep 18, 2013 1:32 pm
by Rolf
Huhh good catch!! I don't know about a potential security problem though, but it isn't good advertising... I added meta noindex to the template in the SVN.

Most errors are due to the new Smarty3 (even one of my own sites was listed) i.e. typos like missing quotes in Smarty tags.

You can change the template yourself at lib/smarty/error-console.tpl. Note it will be overwritten during upgrades.

Grtz. Rolf

Re: How do I customize Error Console (smarty exception page)

Posted: Wed Sep 18, 2013 3:06 pm
by radoado
Details of the error should not be displayed, but only save to log.
http://www.cmsmadesimple.org/NMS/94/message/28/
http://www.cmsmadesimple.org/NMS/94/message/16/

Re: How do I customize Error Console (smarty exception page)

Posted: Wed Sep 18, 2013 6:12 pm
by Rolf
I will investigate this some more.
Thanks for reporting.

Re: How do I customize Error Console (smarty exception page)

Posted: Thu Sep 19, 2013 3:13 pm
by Rolf
I changed it in the SVN:
The error console page only shows the technical information to the logged in administrator.
A truncated error message will be added to the cmsms adminlog.

Changes will be shipped in next 1.11.8.1 release.

Re: How do I customize Error Console (smarty exception page)

Posted: Thu Sep 19, 2013 3:51 pm
by radoado
Perfect.

In the future, could schedule a user template for this error page. ;-)