欧美bbbwbbbw肥妇,免费乱码人妻系列日韩,一级黄片

初次安裝Magento商城 后臺(tái)報(bào)錯(cuò)的解決方法

  發(fā)布時(shí)間:2011-09-13 20:10:57   作者:佚名   我要評(píng)論
今天初次安裝Magento, 開(kāi)始裝的是英文版,后來(lái)又找到中文版,安裝后在后臺(tái)都有同一個(gè)錯(cuò)誤,就是登陸后臺(tái),隨便點(diǎn)擊一個(gè)鏈接,都有報(bào)錯(cuò)
There has been an error processing your request
Exception printing is disabled by default for security reasons.
Error log record number: xxxxxxxxxx(這是一串?dāng)?shù)字)
問(wèn)Google,找到解決方案
步驟1
重命名 errors/local.xml.sample 為 local.xml
這樣修改可以看到詳細(xì)的錯(cuò)誤信息:
Could not determine temp directory, please specify a cache_dir manually
Trace:
#0 F:\Work\makingware_ce-1.5.2\lib\Zend\Cache\Backend.php(197): Zend_Cache::throwException('Could not deter...')
#1 F:\Work\makingware_ce-1.5.2\lib\Zend\Cache\Backend\File.php(123): Zend_Cache_Backend->getTmpDir()
#2 F:\Work\makingware_ce-1.5.2\lib\Zend\Cache.php(153): Zend_Cache_Backend_File->__construct(Array)
#3 F:\Work\makingware_ce-1.5.2\lib\Zend\Cache.php(94): Zend_Cache::_makeBackend('File', Array, false, false)
#4 F:\Work\makingware_ce-1.5.2\lib\Zend\Locale\Data.php(314): Zend_Cache::factory('Core', 'File', Array, Array)
#5 F:\Work\makingware_ce-1.5.2\app\code\core\Mage\Core\Block\Html\Calendar.php(42): Zend_Locale_Data::getList('zh_CN', 'days')
....后面省略
此錯(cuò)誤說(shuō)明是緩存目錄需要手動(dòng)設(shè)置
步驟2
修改文件 lib\Zend\Cache\Backend\File.php 在第90行的位置

復(fù)制代碼
代碼如下:

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
);

看到以上代碼,設(shè)置 cache_dir

復(fù)制代碼
代碼如下:

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模式)下點(diǎn)擊不起作用!

相關(guān)文章

最新評(píng)論