安装Magento后 后台报错的解决办法

今天初次安装Magento, 开始装的是英文版,后来又找到中文版安装后在后台都有同一个错误,就是登陆后台,随便点击一个链接,都有报错

There has been an error processing your request
Exception printing is disabled by default for security reasons.

Error log record number: xxxxxxxxxx(这是一串数字)


在var/report下能找到一上面数组明明的文件。

打开即可看到错误信息:

a:5:{i:0;s:71:"Could not determine temp directory, please specify a cache_dir manually";i:1;s:4558:"#0 /lib/Zend/Cache/Backend.php(197): Zend_Cache::throwException('Could not deter...')

此错误说明是没有找到缓存文件目录,缓存目录需要手动设置

这里我们需要修改文件 lib\Zend\Cache\Backend\File.php  在第90行的位置

protected $_options = array(
        'cache_dir' => null,
        'file_locking' => true,
        'read_control' => true,
        'read_control_type' => 'crc32',
        'hashed_directory_level' => 0,
        'hashed_directory_umask' => 0700,
        'file_name_prefix' => 'zend_cache',
        'cache_file_umask' => 0600,
        'metadatas_array_max_size' => 100
    );

protected $_options = array(
        'cache_dir' => 'var/cache',
        'file_locking' => true,
        'read_control' => true,
        'read_control_type' => 'crc32',
        'hashed_directory_level' => 0,
        'hashed_directory_umask' => 0700,
        'file_name_prefix' => 'zend_cache',
        'cache_file_umask' => 0600,
        'metadatas_array_max_size' => 100
    );


  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 1
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值