Magento News

 

There has been an error processing request

Are you sick and tired of scrolling you browser when you get Magento error, trying to read and trace it?

Here is a post of my colleague Ivan Weiler which describes how to enable error information in latest Magento.

This is a screenshot of my browser when I get Magento error:

I don’t need to search for report file and open it in a text editor.
It’s clear and readable.

All you need to do is to little modify error reporting file which is in your:
“/report/skin/default/index.phtml” file.
And you can style it as you wish.

Here is how my “/report/skin/default/index.phtml” file looks like:


01.< !DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
03.<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
04.<head>
05.<title>Error Submission Form</title>
06.<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
07.</head>
08.
09.<body class=" customer-account-create">
10.<div class="middle-container">
11.<div class="middle col-1-layout">
12.<div id="main" class="col-main">
13.<div class="page-head">
14.<h3>There has been an error processing your request.</h3>
15.</div>
16.< ?php if ($action == 'print'): ?>
17.<div style="padding:10px; border:1px solid #666; background:#EFEFEF;">
18.<div style="width:100%; overflow:auto;">
19.<pre>
20.< ?php echo $reportData[0] ?>
21.
22.<b>Trace:</b>
23.< ?php echo $reportData[1] ?>
24.</pre>
25.</div>
26.</div>
27.< ?php endif; ?>
28.</div>
29.</div>
30.</div>
31.</body>
32.</html>

That’s it.
Enjoy tracing and handling Magento errors

- from inchoo.net -

Possibly Related Posts:


 

Leave a Reply