最新国产好看的视频,伊人天堂AV在线,国产Aaaaaa视频,蜜臀视频在线观看一区,人妻av色图,密臀久久久精品影片,青青视频免费观看毛片,久草在线观看视,国产三级精品色情在线

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

  發(fā)布時(shí)間:2011-09-13 20:10:57   作者:佚名   我要評論
今天初次安裝Magento, 開始裝的是英文版,后來又找到中文版,安裝后在后臺都有同一個(gè)錯(cuò)誤,就是登陸后臺,隨便點(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ù)字)
問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ò)誤說明是緩存目錄需要手動設(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)文章

最新評論

双江| 岳西县| 达孜县| 双城市| 崇阳县| 平泉县| 永春县| 万宁市| 进贤县| 淮滨县| 陆川县| 金坛市| 三河市| 海兴县| SHOW| 柏乡县| 阿巴嘎旗| 广东省| 南昌县| 舟山市| 锡林浩特市| 浦城县| 滨州市| 会昌县| 昌江| 秦皇岛市| 卢湾区| 上杭县| 安顺市| 吉木乃县| 长兴县| 安义县| 翼城县| 岢岚县| 西华县| 海兴县| 新宾| 汽车| 资溪县| 渭南市| 汝州市|