2
A
回答
0
組的error_reporting =上在php.ini文件
或error_reporing(E_ALL);在你的頁面
http://in1.php.net/manual/en/errorfunc.configuration.php#ini.error-reporting
0
可以使用method_exists()
方法來獲取函數存在或不存在。
method_exists('Directory','read');
^^^ ^^^
class_name method_name
,並使用下面的代碼
ini_set('error_reporting', E_ALL);
在你的PHP代碼的頂部得到的所有錯誤。
+0
我也試過了,但沒有任何反應。php.ini被配置爲開發模式,日誌錯誤報告等都在 – abenevaut
+0
@ user2090870你也可以檢查通過設置display_errors就像這樣:'ini_set('display_errors',「on」);'也試試這個。 –
相關問題
- 1. 致命錯誤:調用未定義的方法stdClass的:: stream_publish()
- 2. 致命錯誤:調用未定義的方法stdClass :: save()
- 3. 調用未定義的方法stdClass錯誤
- 4. 致命錯誤:調用未定義的方法stdClass :: My()
- 5. CakePHP的致命錯誤:調用未定義的方法stdClass的:: findById()
- 6. 調用未定義的方法錯誤
- 7. Rails的服務器錯誤:未定義的方法'active_record'
- 8. PHP致命錯誤:調用未定義的方法stdClass的::保存() - Yii框架
- 9. 王菲服務器錯誤 - 未定義的方法 - 進入
- 10. 致命錯誤:調用未定義的方法stdClass :: _ setSession()第58行
- 11. 平衡支付php:致命錯誤:調用未定義的方法stdClass :: createCard()
- 12. PHP致命錯誤:調用未定義的方法stdClass :: num_rows()在(...)行36
- 13. 致命錯誤:未捕獲的錯誤:調用未定義的方法stdClass的::計數()
- 14. 幫助未定義的stdclass錯誤
- 15. 調用未定義的方法stdClass的:: checkSubcategory()
- 16. 調用未定義的方法stdClass :: onDisplay()error
- 17. 調用未定義的方法stdClass :: Laravel 5.3
- 18. Laravel - Dev版本導致調用未定義的方法stdClass
- 19. 如何解決調用未定義的方法stdClass :: save()
- 20. laravel-5.2分頁不工作 - 未定義方法stdClass :: links()錯誤
- 21. 未定義的方法stdClass :: user()使用CakePHP時出錯Auth
- 22. IIS服務器顯示錯誤而不是自定義錯誤
- 23. WSS 3.0:將錯誤的服務器顯示爲配置數據庫服務器
- 24. 致命錯誤:調用未定義的方法 - 錯誤
- 25. 致命錯誤:調用未定義的方法PDO :: close()方法
- 26. 調用私有方法輸出未定義的方法錯誤
- 27. 現場服務器上顯示錯誤的Wordpress配置
- 28. PHP PDO - 未捕獲的錯誤:調用未定義的方法
- 29. 未捕獲的錯誤:調用未定義的方法rexUrlRewriter :: rexUrlRewriter()
- 30. 獲取未定義的方法錯誤,如果從服務
是的,我試過了,但沒有任何反應。我無法從我的虛擬主機中得到同樣的錯誤:(這太糟糕了! – abenevaut