1. 在网站根目录的.htaccess文件里加上

php_flag display_errors on
php_value error_reporting 2039

2. 然后找到errors/local.xml.sample这个文件,改成/errors/local.xml

3. 接着找到lib/Zend/Cache/Backend/File.php

查找 protected $_options = array( ’cache_dir’ => ‘null’,

替换成 protected $_options = array( ’cache_dir’ => ‘tmp/’,

4. 最后在/index.php文件里把error_reporting(E_ALL | E_STRICT) ;和ini_set('display_errors', 1) ;注释取消。
可以再加上Mage::setIsDeveloperMode(true) ;这句配合第二点把magento的开发模式打开

这几步下来Magento的错误报告 就打开啦!

 

Logo

Agent 垂直技术社区,欢迎活跃、内容共建。

更多推荐