初次安裝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行的位置
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
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)擊不起作用!
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)文章
- 這篇文章主要介紹了Fastadmin的安裝與使用方法,需要的朋友可以參考下2020-08-06
安裝FastAdmin時(shí)報(bào)1146 Table 'fastadmin.fa_admin' doesn't exist錯(cuò)誤
有部分小伙伴在安裝FastAdmin時(shí)報(bào)以下錯(cuò)誤,SQLSTATE[42S02]: Base table or view not found: 1146 Table 'fastadmin.fa_admin' doesn't exist2020-08-05UTF-8文件BOM信息自動(dòng)檢測(cè)和自動(dòng)清除源碼
BOM信息是文件開(kāi)頭的一串隱藏的字符,用于讓某些編輯器識(shí)別這是個(gè)UTF-8編碼的文件,也編輯器自動(dòng)加上的這個(gè)會(huì)導(dǎo)致頁(yè)面頭部會(huì)出現(xiàn)一個(gè)空白行;如果是織夢(mèng)的程序也會(huì)引起驗(yàn)證2020-02-17- 在本篇文章里小編給大家整理的是關(guān)于蘋(píng)果cms采集插件安裝的步驟和方法,有需要的朋友們可以學(xué)習(xí)下。2019-12-05
- 在本篇文章里小編給大家整理的是關(guān)于蘋(píng)果cms添加播放器的方法步驟,對(duì)此有需要的朋友們可以學(xué)習(xí)下。2019-12-05
- 在本篇文章里小編給大家分享的是關(guān)于蘋(píng)果cms更換logo的方法和步驟,有需要的朋友們可以學(xué)習(xí)參考下。2019-12-05
- 在本篇文章里小編給大家整理的是關(guān)于海洋cms電影源碼安裝步驟方法以及相關(guān)知識(shí)點(diǎn),有興趣的朋友們學(xué)習(xí)下。2019-12-05
蘋(píng)果CMS自適應(yīng)手模板設(shè)置方法
在本篇文章里小編給大家整理的是關(guān)于蘋(píng)果CMS自適應(yīng)手模板設(shè)置方法,有需要的朋友們參考學(xué)習(xí)下。2019-12-05- 在本篇文章里小編給大家整理的是關(guān)于蘋(píng)果海洋CMS自定義采集助手設(shè)置方法,有需要的朋友們學(xué)習(xí)下。2019-12-05
- 這篇文章主要為大家介紹了蘋(píng)果cms添加幻燈片的操作方法,步驟很簡(jiǎn)單,有需要的朋友們跟著操作下。2019-12-02