初次安装Magento商城 后台报错的解决方法

初次安装Magento商城 后台报错的解决方法,第1张

初次安装Magento商城后台报错的解决方法

今天第一次安装Magento。一开始我装的是英文版,后来发现是中文版。安装后后台出现了同样的错误,就是登录后台,随意点击一个连接,都出现了错误。

Therehasbeenanerrorprocess="superseo">ssingyourrequest
Exceptionprintingisdisabledbydefaultforsecurityreasons.
Errorlogrecordnumber:xxxxxxxxxx(它是一串数据)
问Google,找到解决方法
流程1
重新命名errors/local.xml.sample为local.xml
那样改动能够见到详尽的错误报告:
Couldnotdeterminetempdirectory,pleasespecifyacache_dirmanually
Trace:
#0F:\Work\makingware_ce-1.5.2\lib\Zend\Cache\Backend.php(197):Zend_Cache::throwException('Couldnotdeter...')
#1F:\Work\makingware_ce-1.5.2\lib\Zend\Cache\Backend\File.php(123):Zend_Cache_Backend->getTmpDir()
#2F:\Work\makingware_ce-1.5.2\lib\Zend\Cache.php(153):Zend_Cache_Backend_File->__construct(Array)
#3F:\Work\makingware_ce-1.5.2\lib\Zend\Cache.php(94):Zend_Cache::_makeBackend('File',Array,false,false)
#4F:\Work\makingware_ce-1.5.2\lib\Zend\Locale\Data.php(314):Zend_Cache::factory('Core','File',Array,Array)
#5F:\Work\makingware_ce-1.5.2\app\code\core\Mage\Core\Block\Html\Calendar.php(42):Zend_Locale_Data::getList('zh_CN','days')
....后边省去
此不正确表明是缓存文件文件目录必须手动式设定
流程2
改动文档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
);

见到之上编码,设定cache_dir

复制代码编码以下:
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
);

改动进行!
BTW:在Mathon3的极速模式(chrome方式)下点一下失灵!

欢迎分享,转载请注明来源:内存溢出

原文地址: http://outofmemory.cn/zz/772012.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2022-05-03
下一篇 2022-05-03

发表评论

登录后才能评论

评论列表(0条)

保存