think-orm读mongo数据webman/log报错

oliusha

问题描述

think-orm 读取 mongo 数据时,webman/log报错

报错信息

#18 {main}Error: Call to undefined method think\db\connector\Mongo::getPdo() in /www/vendor/webman/log/src/Middleware.php:275
Stack trace:
#0 /www/vendor/webman/log/src/Middleware.php(101): Webman\Log\Middleware->checkTpUncommittedTransaction()
#1 /www/vendor/workerman/webman-framework/src/App.php(311): Webman\Log\Middleware->process()
#2 /www/app/middleware/AccessControl.php(27): Webman\App::Webman\{closure}()
#3 /www/vendor/workerman/webman-framework/src/App.php(311): app\middleware\AccessControl->process()
#4 /www/vendor/workerman/webman-framework/src/App.php(535): Webman\App::Webman\{closure}()
#5 /www/vendor/workerman/webman-framework/src/App.php(129): Webman\App::findRoute()
#6 /www/vendor/workerman/workerman/Connection/TcpConnection.php(646): Webman\App->onMessage()
#7 [internal function]: Workerman\Connection\TcpConnection->baseRead()
#8 /www/vendor/workerman/workerman/Events/Event.php(193): EventBase->loop()
#9 /www/vendor/workerman/workerman/Worker.php(2467): Workerman\Events\Event->loop()
#10 /www/vendor/workerman/workerman/Worker.php(1578): Workerman\Worker->run()
#11 /www/vendor/workerman/workerman/Worker.php(1420): Workerman\Worker::forkOneWorkerForLinux()
#12 /www/vendor/workerman/workerman/Worker.php(1394): Workerman\Worker::forkWorkersForLinux()
#13 /www/vendor/workerman/workerman/Worker.php(1724): Workerman\Worker::forkWorkers()
#14 /www/vendor/workerman/workerman/Worker.php(1664): Workerman\Worker::monitorWorkersForLinux()
#15 /www/vendor/workerman/workerman/Worker.php(562): Workerman\Worker::monitorWorkers()
#16 /www/vendor/workerman/webman-framework/src/support/App.php(124): Workerman\Worker::runAll()
#17 /www/start.php(4): support\App::run()
#18 {main}
981 1 0
1个回答

walkor 打赏

升级webman/log
composer require webman/log ^v1.1.5

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