1
我設置了Zend的應用程序,我得到500錯誤與消息Zend框架2其他錯誤信息在本地設置缺少
An error occurred
An error occurred during execution; please try again later.
缺少附加信息部分
我需要設置開發環境變量或東西?
我不能找出問題
我設置了Zend的應用程序,我得到500錯誤與消息Zend框架2其他錯誤信息在本地設置缺少
An error occurred
An error occurred during execution; please try again later.
缺少附加信息部分
我需要設置開發環境變量或東西?
我不能找出問題
您可以通過設置PHP錯誤在你php.ini
文件顯示,直接真實的,或在您的index.php
文件顯示有關該錯誤的詳細信息。
在index.php
文件,你能做到這一點,如下所示:
<?php
error_reporting(E_ALL);
ini_set('display_errors', true);
編輯:
同時一定要設置display_exceptions
到true
在module.config.php
文件:
<?php
return array(
//...
'view_manager' => array(
'display_not_found_reason' => true,
'display_exceptions' => true, //set this parameter to true
//...
希望這有助於。
啓用了錯誤報告,我可以看到所有正常的php錯誤,但是如果我輸入錯誤的數據庫密碼,它不會返回其他信息,這可能是zend錯誤處理程序的一些事情嗎? – 2014-12-05 16:49:13
因此,請確保此行在'module.config.php'文件中將'display_exceptions'設置爲** true **。 – blackbishop 2014-12-05 23:22:44
它與顯示異常,謝謝 ,但有沒有什麼辦法只能在本地安裝文件中設置,所以它不會去實時服務器代碼? – 2014-12-06 13:28:41