一:一般這種錯誤多數是程序問題,請點擊瀏覽器菜單欄的工具-》internet選項-》高級-》把滾動條拉到最下面 有個"顯示友好HTTP錯誤信息",去掉前面的勾,點確定,然后刷新你的網頁就能給出具體錯誤提示了,根據錯誤提示對文件修改了。
二:如果是報以下錯的話:Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request
Please contact the server administrator, [no address given] and inform them of the time the error occurred, and anything you might have done that may have caused the error.
More information about this error may be available in the server error log.
Additionally, a 500 Internal Server Error error was encountered while trying to use an ErrorDocument to handle the request.
。這個情況一般是為偽靜態規則寫的不規范造成的,檢查空間下是否有.htaccess規則,檢查是否正確。不正確修改為正確的,或刪除或更改這個文件名即可解決。
三:論壇出現500報錯,Discuz! 7.2及以前版本按如下辦法試下
1:打開報錯提示,進入論壇include下編輯common.inc.php文件,找到error_reporting(0);這個(就在這個文件的開頭)改為error_reporting(7);保存更新緩存刷新頁面一般就有具體的哪個文件有錯,然后對癥下藥了---一般這種情況就是用默認的文件覆蓋就ok了。
2:一般論壇的報錯誤如果是程序問題方法一可以找到具體的哪個文件出錯,還有中可能是其實文件都沒錯,那么這個時候就更新下緩存即可。進入論壇目錄下forumdata/下,刪除cache/*,templates/*,threadcaches/* 的文件。注意是里面的文件不是這些文件夾的哦。
Discuz! X 打開報錯調試的方法
進入./source/class/class_core.php
編輯 error_reporting(0); 為error_reporting(7);
保存退出即可
此文由 網站目錄_網站網址收錄與提交入口 編輯,未經允許不得轉載!: