webman/adminv0.6.12版本安装后在登录后台时报错

larry

问题描述

截图
这里写描述

无法登录,centos系统使用的宝塔面板,将站点设置为纯静态,添加了反向代理 http://0.0.0.0:8787

php 8.1
遇到错误无法排查

返回的json数据

code: 500,msg: "Call to a member function connection() on null",
traces: 
"Error: Call to a member function connection() on null in /thinkbotApp/vendor/illuminate/database/Eloquent/Model.php:1820\nStack trace:\n#0 /thinkbotApp/vendor/illuminate/database/Eloquent/Model.php(1786): Illuminate\\Database\\Eloquent\\Model::resolveConnection()\n#1 /thinkbotApp/vendor/illuminate/database/Eloquent/Model.php(1578): Illuminate\\Database\\Eloquent\\Model->getConnection()\n#2 /thinkbotApp/vendor/illuminate/database/Eloquent/Model.php(1497): Illuminate\\Database\\Eloquent\\Model->newBaseQueryBuilder()\n#3 /thinkbotApp/vendor/illuminate/database/Eloquent/Model.php(1533): Illuminate\\Database\\Eloquent\\Model->newModelQuery()\n#4 /thinkbotApp/vendor/illuminate/database/Eloquent/Model.php(1486): Illuminate\\Database\\Eloquent\\Model->newQueryWithoutScopes()\n#5 /thinkbotApp/vendor/illuminate/database/Eloquent/Model.php(2335): Illuminate\\Database\\Eloquent\\Model->newQuery()\n#6 /thinkbotApp/vendor/illuminate/database/Eloquent/Model.php(2347): Illuminate\\Database\\Eloquent\\Model->__call()\n#7 /thinkbotApp/plugin/admin/app/controller/AccountController.php(72): Illuminate\\Database\\Eloquent\\Model::__callStatic()\n#8 /thinkbotApp/vendor/workerman/webman-framework/src/App.php(319): plugin\\admin\\app\\controller\\AccountController->login()\n#9 /thinkbotApp/vendor/workerman/webman-framework/src/App.php(349): Webman\\App::Webman\\{closure}()\n#10 /thinkbotApp/plugin/admin/app/middleware/AccessControl.php(47): Webman\\App::Webman\\{closure}()\n#11 /thinkbotApp/vendor/workerman/webman-framework/src/App.php(341): plugin\\admin\\app\\middleware\\AccessControl->process()\n#12 /thinkbotApp/vendor/workerman/webman-framework/src/App.php(141): Webman\\App::Webman\\{closure}()\n#13 /thinkbotApp/vendor/workerman/workerman/Connection/TcpConnection.php(646): Webman\\App->onMessage()\n#14 [internal function]: Workerman\\Connection\\TcpConnection->baseRead()\n#15 /thinkbotApp/vendor/workerman/workerman/Events/Event.php(193): EventBase->loop()\n#16 /thinkbotApp/vendor/workerman/workerman/Worker.php(1629): Workerman\\Events\\Event->loop()\n#17 /thinkbotApp/vendor/workerman/workerman/Worker.php(1423): Workerman\\Worker::forkOneWorkerForLinux()\n#18 /thinkbotApp/vendor/workerman/workerman/Worker.php(1397): Workerman\\Worker::forkWorkersForLinux()\n#19 /thinkbotApp/vendor/workerman/workerman/Worker.php(560): Workerman\\Worker::forkWorkers()\n#20 /thinkbotApp/vendor/workerman/webman-framework/src/support/App.php(131): Workerman\\Worker::runAll()\n#21 /thinkbotApp/start.php(4): support\\App::run()\n#22 {main}"
,type: "failed"
604 1 0
1个回答

xiuwang

安装完有提示,要重启的

  • 暂无评论
年代过于久远,无法发表回答
×
🔝