Exception printing is disabled by default for security reasons. Error log record number: xxxxxx

时间:2019-05-19 01:26:02  来源:igfitidea点击:

在安装magento时,如果我们遇到以下问题

错误:

Exception printing is disabled by default for security reasons. Error log record number: xxxxxx

出于安全原因,默认情况下禁用异常打印。
错误日志记录号:xxxxxx

解决方案:

  1. 转到文件根目录中的/errors/文件夹。
  2. 从local.xml.sample 复制一份,改名为 local.xml
  3. 编辑magento/lib/Zend/Cache/Backend/file.php文件,查找并更改cache_dir设置。

protected $_options = array(
'cache_dir' => 'null',

改为

protected $_options = array(
'cache_dir' => 'tmp/',

  1. 最后在magento根目录中创建tmp文件夹
# mkdir tmp/