如何讓magento顯示錯誤提示


如何顯示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.

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章