初次安裝Magento商城 后臺報錯的解決方法
發(fā)布時間:2011-09-13 20:10:57 作者:佚名
我要評論
今天初次安裝Magento, 開始裝的是英文版,后來又找到中文版,安裝后在后臺都有同一個錯誤,就是登陸后臺,隨便點擊一個鏈接,都有報錯
There has been an error processing your request
Exception printing is disabled by default for security reasons.
Error log record number: xxxxxxxxxx(這是一串數(shù)字)
問Google,找到解決方案
步驟1
重命名 errors/local.xml.sample 為 local.xml
這樣修改可以看到詳細的錯誤信息:
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')
....后面省略
此錯誤說明是緩存目錄需要手動設置
步驟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模式)下點擊不起作用!
Exception printing is disabled by default for security reasons.
Error log record number: xxxxxxxxxx(這是一串數(shù)字)
問Google,找到解決方案
步驟1
重命名 errors/local.xml.sample 為 local.xml
這樣修改可以看到詳細的錯誤信息:
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')
....后面省略
此錯誤說明是緩存目錄需要手動設置
步驟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模式)下點擊不起作用!
相關文章
- 這篇文章主要介紹了Fastadmin的安裝與使用方法,需要的朋友可以參考下2020-08-06

安裝FastAdmin時報1146 Table 'fastadmin.fa_admin' doesn't exist錯誤
有部分小伙伴在安裝FastAdmin時報以下錯誤,SQLSTATE[42S02]: Base table or view not found: 1146 Table 'fastadmin.fa_admin' doesn't exist2020-08-05
BOM信息是文件開頭的一串隱藏的字符,用于讓某些編輯器識別這是個UTF-8編碼的文件,也編輯器自動加上的這個會導致頁面頭部會出現(xiàn)一個空白行;如果是織夢的程序也會引起驗證2020-02-17- 在本篇文章里小編給大家整理的是關于蘋果cms采集插件安裝的步驟和方法,有需要的朋友們可以學習下。2019-12-05
- 在本篇文章里小編給大家整理的是關于蘋果cms添加播放器的方法步驟,對此有需要的朋友們可以學習下。2019-12-05
- 在本篇文章里小編給大家分享的是關于蘋果cms更換logo的方法和步驟,有需要的朋友們可以學習參考下。2019-12-05
- 在本篇文章里小編給大家整理的是關于海洋cms電影源碼安裝步驟方法以及相關知識點,有興趣的朋友們學習下。2019-12-05
- 在本篇文章里小編給大家整理的是關于蘋果CMS自適應手模板設置方法,有需要的朋友們參考學習下。2019-12-05
- 在本篇文章里小編給大家整理的是關于蘋果海洋CMS自定義采集助手設置方法,有需要的朋友們學習下。2019-12-05
- 這篇文章主要為大家介紹了蘋果cms添加幻燈片的操作方法,步驟很簡單,有需要的朋友們跟著操作下。2019-12-02



