Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/php/268.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/ssl/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Php Magento隐藏所有错误页面_Php_Error Handling_Magento - Fatal编程技术网

Php Magento隐藏所有错误页面

Php Magento隐藏所有错误页面,php,error-handling,magento,Php,Error Handling,Magento,Magento生产版本1.2.1 在linux centos上运行的存储 我想隐藏从Magento生成的所有错误消息,或者如果发生错误,我想让用户发送到自定义错误页面。我尝试了一些解决办法,比如 Mage::setIsDeveloperMode(true); 在index.php中,但它工作不正常 我甚至尝试设置ini_集(“显示错误”,0);但它仍然不起作用。Magento仍然给出“未定义索引”之类的错误我得到了这个问题的正确答案,下面是我遵循的步骤 将reporter设置为使用此功能很简单。

Magento生产版本1.2.1 在linux centos上运行的存储

我想隐藏从Magento生成的所有错误消息,或者如果发生错误,我想让用户发送到自定义错误页面。我尝试了一些解决办法,比如

Mage::setIsDeveloperMode(true); 在index.php中,但它工作不正常


我甚至尝试设置ini_集(“显示错误”,0);但它仍然不起作用。Magento仍然给出“未定义索引”之类的错误

我得到了这个问题的正确答案,下面是我遵循的步骤

将reporter设置为使用此功能很简单。 1.在/report目录中找到config.xml文件。 2.从打印更改为电子邮件。 3.设置为您希望报告转到的电子邮件地址。 4.完成了

此设置将不显示错误消息,并将所有错误发送到步骤3上的邮件id


:)很高兴解决了错误。

在此版本中,report/config.xml已被errors/local.xml替换为errors/local.xml

请详细说明“打印到电子邮件”的内容好吗?改变什么?谢谢