安装webman/admin第二部报错

xtn

问题详细描述

安装webman/admin第二部报错

报错信息

{
code: 500,
message: "Call to a member function connection() on null",
traces: "Error: Call to a member function connection() on null in D:\\webman_workspace\\webman\\vendor\\illuminate\\database\\Eloquent\\Model.php:1734\nStack trace:\n#0 D:\\webman_workspace\\webman\\vendor\\illuminate\\database\\Eloquent\\Model.php(1700): Illuminate\\Database\\Eloquent\\Model::resolveConnection()\n#1 D:\\webman_workspace\\webman\\vendor\\illuminate\\database\\Eloquent\\Model.php(1492): Illuminate\\Database\\Eloquent\\Model->getConnection()\n#2 D:\\webman_workspace\\webman\\vendor\\illuminate\\database\\Eloquent\\Model.php(1409): Illuminate\\Database\\Eloquent\\Model->newBaseQueryBuilder()\n#3 D:\\webman_workspace\\webman\\vendor\\illuminate\\database\\Eloquent\\Model.php(1445): Illuminate\\Database\\Eloquent\\Model->newModelQuery()\n#4 D:\\webman_workspace\\webman\\vendor\\illuminate\\database\\Eloquent\\Model.php(1398): Illuminate\\Database\\Eloquent\\Model->newQueryWithoutScopes()\n#5 D:\\webman_workspace\\webman\\vendor\\illuminate\\database\\Eloquent\\Model.php(2230): Illuminate\\Database\\Eloquent\\Model->newQuery()\n#6 D:\\webman_workspace\\webman\\vendor\\illuminate\\database\\Eloquent\\Model.php(2242): Illuminate\\Database\\Eloquent\\Model->__call()\n#7 D:\\webman_workspace\\webman\\plugin\\admin\\app\\controller\\common\\InstallController.php(158): Illuminate\\Database\\Eloquent\\Model::__callStatic()\n#8 D:\\webman_workspace\\webman\\vendor\\workerman\\webman-framework\\src\\App.php(304): plugin\\admin\\app\\controller\\common\\InstallController->step2()\n#9 D:\\webman_workspace\\webman\\plugin\\admin\\app\\middleware\\AccessControl.php(21): Webman\\App::Webman\\{closure}()\n#10 D:\\webman_workspace\\webman\\vendor\\workerman\\webman-framework\\src\\App.php(299): plugin\\admin\\app\\middleware\\AccessControl->process()\n#11 D:\\webman_workspace\\webman\\vendor\\workerman\\webman-framework\\src\\App.php(122): Webman\\App::Webman\\{closure}()\n#12 D:\\webman_workspace\\webman\\vendor\\workerman\\workerman\\Connection\\TcpConnection.php(638): Webman\\App->onMessage()\n#13 D:\\webman_workspace\\webman\\vendor\\workerman\\workerman\\Events\\Select.php(311): Workerman\\Connection\\TcpConnection->baseRead()\n#14 D:\\webman_workspace\\webman\\vendor\\workerman\\workerman\\Worker.php(2457): Workerman\\Events\\Select->loop()\n#15 D:\\webman_workspace\\webman\\vendor\\workerman\\workerman\\Worker.php(1443): Workerman\\Worker->run()\n#16 D:\\webman_workspace\\webman\\vendor\\workerman\\workerman\\Worker.php(1386): Workerman\\Worker::forkWorkersForWindows()\n#17 D:\\webman_workspace\\webman\\vendor\\workerman\\workerman\\Worker.php(559): Workerman\\Worker::forkWorkers()\n#18 D:\\webman_workspace\\webman\\vendor\\workerman\\webman-framework\\src\\support\\App.php(124): Workerman\\Worker::runAll()\n#19 D:\\webman_workspace\\webman\\start.php(4): support\\App::run()\n#20 {main}",
type: "failed"
}

触发报错的步骤

第二步

操作系统及workerman/webman等框架组件版本

win11,
"workerman/webman-framework": "^1.4.3",
"webman/admin": "^0.3.3"

1380 1 0
1个回答

smart

安装后重启一下

  • xtn 2022-10-07

    重启以后看了下admin表里面没任何用户

年代过于久远,无法发表回答
×
🔝