如何顯示Magento 錯誤信息!Magento install error – Exception printing is disabled
Here is a known error which can occur when installing Magento:
當安裝Magento時,這里有一個眾所周知的錯誤提示
There has been an error processing your request
Exception printing is disabled by default for security reasons.
Error log record number: XXXXXXXXXXXXXXX
Here is the solution:
解決辦法是:
1. Navigate to the /errors/ folder.(進去magento的error文件夾)
2. Change local.xml.sample to local.xml(把local.xml.sample改名為local.xml)
3. You should now see a new list of crazy errors all over the Magento page – this is okay.(刷新之前的錯誤頁面,你應該能看到錯誤Magento頁面上的錯誤信息)
4. Open magento/lib/Zend/Cache/Backend/File.php and look for:
protected $_options = array(
‘cache_dir’ => ‘null’,
5. Change it to:
protected $_options = array(
‘cache_dir’ => ‘tmp/’,
6. Save it.
7. Now the final step is to go create a tmp folder in the root Magento folder.
8. That’s it.
本人實踐經驗:到網站根目下的error目錄下把 local.xml.sample改名為local.xml. 刷新報錯頁,ok,搞定