admin 发表于 2023-3-12 15:09:29

文库批量上传 后台会出现这样的报错

<h2>问题描述:</h2>

<p>文库批量上传 后台会出现下面这样的报错<br></p>

<p><br></p>

<p> parse error: {"readyState":4,"responseText":"<!DOCTYPE HTML PUBLIC \"-//IETF//DTD HTML 2.0//EN\">\n<html><head>\n<title>500 Internal Server Error</title>\n</head><body>\n<h1>Internal Server Error</h1>\n<p>The server encountered an internal error or\nmisconfiguration and was unable to complete\nyour request.</p>\n<p>Please 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.</p>\n<p>More information about this error may be available\nin the server error log.</p>\n</body></html>\n","status":500,"statusText":"error"}</p><hr>以下是回复内容:<br><div class="ub-html content">
                                                    <p>系统为500错误,请参照解决。</p>

<h3>查找应用日志</h3>

<p>“500错误”或“请求出现错误”通常是程序处理发生错误。</p>

<p>需要查看 <code>storage/logs/</code> 目录下的日志文件,找到当天最新的日志文件(如 <code>laravel-2021-01-01.log</code>),查看报错原因并解决。</p>

<p>错误日志需要定位到最新的错误日志,完整的一条错误日志通常如下格式所示,将该错误日志寻求其他开发者帮助(注意隐藏日志中的敏感信息)。</p>

<pre> product.ERROR: xxx
Stack trace:
#0 xxx
#1 xxx
#2 xxx
#3 xxx
#4 xxx
#5 xxx
#x xxx</pre>

<p>如果是发生在测试或开发环境,为了快速定位,可按照如下步骤排查</p>

<ul><li><p>第1步,打开调试日志(设置 .env 文件中 APP_DEBUG=true)</p></li><li><p>第2步,直接访问页面查看错误信息,进行排查</p></li></ul>

<p>如没有在系统目录找到记录的日志,请检查网站的目录权限是否正常,需要保证 PHP 的运行用户可以写入 <code>storage/logs/</code> 目录。</p>

<p>更多参考:<ahref="https://modstart.com/doc/install/qa.html">https://modstart.com/doc/install/qa.html</a></p>
                                                </div><hr><br>采集网址:<br>https://modstart.com/thread/890
页: [1]
查看完整版本: 文库批量上传 后台会出现这样的报错