问题描述:
文库批量上传 后台会出现下面这样的报错
parse error: {"readyState":4,"responseText":"\n \n500 Internal Server Error\n\nInternal Server Error\nThe server encountered an internal error or\nmisconfiguration and was unable to complete\nyour request. \nPlease contact the server administrator at \n webmaster@example.com to inform them of the time this error occurred,\n and the actions you performed just before this error. \nMore information about this error may be available\nin the server error log. \n\n","status":500,"statusText":"error"} 以下是回复内容:
系统为500错误,请参照解决。
查找应用日志
“500错误”或“请求出现错误”通常是程序处理发生错误。
需要查看 storage/logs/ 目录下的日志文件,找到当天最新的日志文件(如 laravel-2021-01-01.log ),查看报错原因并解决。
错误日志需要定位到最新的错误日志,完整的一条错误日志通常如下格式所示,将该错误日志寻求其他开发者帮助(注意隐藏日志中的敏感信息)。
[2022-01-10 10:28:15] product.ERROR: xxx
Stack trace:
#0 xxx
#1 xxx
#2 xxx
#3 xxx
#4 xxx
#5 xxx
#x xxx
如果是发生在测试或开发环境,为了快速定位,可按照如下步骤排查
如没有在系统目录找到记录的日志,请检查网站的目录权限是否正常,需要保证 PHP 的运行用户可以写入 storage/logs/ 目录。
更多参考:https://modstart.com/doc/install/qa.html
采集网址: https://modstart.com/thread/890 |