错误处理,500内部服务器错误
This is the response page that i get frmo my ajax request.
Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator, admin@example.com 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.
Do anyone have any idead why theres no error page? I do have the error controller and view to handle it, but it's no use, it don't work :/
这是我从ajax请求中获取的响应页面。 p>
内部服务器错误 p>
服务器遇到内部错误或配置错误,无法完成您的请求。 p>
请联系服务器管理员admin @ example .com并告知它们错误发生的时间,以及可能导致错误的任何操作。 p>
服务器错误日志中可能提供了有关此错误的更多信息。 p>
此外,尝试使用ErrorDocument处理请求时遇到500内部服务器错误错误。 p>
有没有人有任何idead为什么theres 没有错误页面? 我确实有错误控制器和视图来处理它,但它没用,它不起作用:/ p> div>
Have a look for ErrorDocument 500
in your Apache httpd.conf
file. In there you'll see if your setup has an override for the default 500 error code - e.g. ErrorDocument 500 /http_codes/http_code_500.html
It's server's error page. It's generated by misconfiguration (like a typo in .htaccess), much earlier than ZF's index.php
is requested. You can't fix this using ZF - you need to fix your server.