开发者

Magento hiding all errors page

开发者 https://www.devze.com 2023-01-03 11:45 出处:网络
Magento Production version 开发者_Go百科1.2.1 store running on linux centos. I want to hide all error messages generating from Magento, or if error occurred then I want user to send to custom error p

Magento Production version 开发者_Go百科1.2.1 store running on linux centos.

I want to hide all error messages generating from Magento, or if error occurred then I want user to send to custom error page. I tried some solutions like putting

Mage::setIsDeveloperMode(true); in index.php but it is not working properly,

I even tried to set ini_set('display_errors', 0); but it is still not working. Magento still giving errors like "undefined index"


I got the proper answer for this question and here are the steps I followed

Setting the reporter up to use this feature is simple. 1. Find the config.xml file in the /report directory. 2. Change from print to email. 3. Set to the email address that you would like the report to go to. 4. Done.

This setting will not show error messages and will send all errors to mail id mention on step 3.

:) happy to solved the error.


In this version report/config.xml has been replaced by errors/local.xml

0

精彩评论

暂无评论...
验证码 换一张
取 消