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

For discussion and questions related to CMS Specific templates and stylesheets (CSS), and themes. or layout issues. This is not a place for generic "I don't know CSS issues"
Post Reply
radoado
Forum Members
Forum Members
Posts: 31
Joined: Fri Sep 09, 2005 12:33 pm
Location: Ostrava, Czech republic

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

Post 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/
User avatar
Rolf
Power Poster
Power Poster
Posts: 7825
Joined: Wed Apr 23, 2008 7:53 am
Location: The Netherlands
Contact:

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

Post 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
- + - + - + - + - + - + -
LATEST TUTORIAL AT CMS CAN BE SIMPLE:
Migrating Company Directory module to LISE
- + - + - + - + - + - + -
Image
radoado
Forum Members
Forum Members
Posts: 31
Joined: Fri Sep 09, 2005 12:33 pm
Location: Ostrava, Czech republic

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

Post 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/
User avatar
Rolf
Power Poster
Power Poster
Posts: 7825
Joined: Wed Apr 23, 2008 7:53 am
Location: The Netherlands
Contact:

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

Post by Rolf »

I will investigate this some more.
Thanks for reporting.
- + - + - + - + - + - + -
LATEST TUTORIAL AT CMS CAN BE SIMPLE:
Migrating Company Directory module to LISE
- + - + - + - + - + - + -
Image
User avatar
Rolf
Power Poster
Power Poster
Posts: 7825
Joined: Wed Apr 23, 2008 7:53 am
Location: The Netherlands
Contact:

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

Post 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.
- + - + - + - + - + - + -
LATEST TUTORIAL AT CMS CAN BE SIMPLE:
Migrating Company Directory module to LISE
- + - + - + - + - + - + -
Image
radoado
Forum Members
Forum Members
Posts: 31
Joined: Fri Sep 09, 2005 12:33 pm
Location: Ostrava, Czech republic

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

Post by radoado »

Perfect.

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

Return to “Layout and Design (CSS & HTML)”