问题:Magento页面一片空白 没显示什么东西,无法判断是否程序错误,所以要把错误显示打开使之能调试 解决: 1. 在网站根目录的.htaccess文件里加上 php_flag display_errors onphp_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的错误报告 就打开啦!