When an error occurs in Magento the user is sent to the
/report/?id=... page. This is rarely what we want. As a developer we don’t want to be shuttled off to another page to read the error message. As a customer we don’t want the gory details about what happened.
Here’s how to get the error report via email and present the customer with a feedback form when the error happens. Explained.
When we are developing we can switch this redirection to the reporting screen off and let PHP tell us the problem there and then on the page by setting our development environment up correctly, more specifically by throwing the following in our
When we are live we don’t need the customer to try and figure out what went wrong, we just need to inform them that there was an error and make sure that we get the error reports.
Fortunately the guys at Varien have built some alternative functionality into the reporting feature, emailing us the entire report and providing the user with a contact form asking them to kindly explain what they were doing to produce this error.
Setting the reporter up to use this feature is simple.