[轉]如何顯示Magento 錯誤信息!Magento install error – Exception printing is disabled


如何顯示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,搞定


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM