添加了阿里大鱼的代码后,启动http服务就一直报错

来源:7-9 基于阿里短信服务发送第一个短信验证码demo

风行天下1

2018-11-20

PHP Fatal error: Uncaught Error: Class ‘Think\Container’ not found in /www/my/tp5/server/http_server.php:66
Stack trace:
#0 {main}
thrown in /www/my/tp5/server/http_server.php on line 66
PHP Fatal error: Uncaught think\exception\ErrorException: Undefined index: argv in /www/my/tp5/thinkphp/library/think/Loader.php:61
Stack trace:
#0 /www/my/tp5/thinkphp/library/think/Loader.php(61): think\Error::appError(8, ‘Undefined index…’, ‘/www/my/tp5/thi…’, 61, Array)
#1 /www/my/tp5/thinkphp/library/think/App.php(873): think\Loader::getRootPath()
#2 /www/my/tp5/thinkphp/library/think/App.php(153): think\App->getAppPath()
#3 /www/my/tp5/thinkphp/library/think/App.php(130): think\App->path(’’)
#4 [internal function]: think\App->__construct(’’)
#5 /www/my/tp5/thinkphp/library/think/Container.php(439): ReflectionClass->newInstanceArgs(Array)
#6 /www/my/tp5/thinkphp/library/think/Container.php(284): think\Container->invokeClass(‘think\App’, Array)
#7 /www/my/tp5/thinkphp/library/think/Container.php(281): think\Container->make(‘think\App’, Array, false)
#8 /www/my/tp5/thinkphp/library/think/Container.php(132): think\Container->make(‘app’, Array, false)
#9 /www/my/tp5/thinkphp/library/think/exception/Handle.php(42): thin in /www/my/tp5/thinkphp/library/think/Loader.php on line 61

Fatal error: Uncaught Error: Class ‘Think\Container’ not found in /www/my/tp5/server/http_server.php:66
Stack trace:
#0 {main}
thrown in /www/my/tp5/server/http_server.php on line 66

Fatal error: Uncaught think\exception\ErrorException: Undefined index: argv in /www/my/tp5/thinkphp/library/think/Loader.php:61
Stack trace:
#0 /www/my/tp5/thinkphp/library/think/Loader.php(61): think\Error::appError(8, ‘Undefined index…’, ‘/www/my/tp5/thi…’, 61, Array)
#1 /www/my/tp5/thinkphp/library/think/App.php(873): think\Loader::getRootPath()
#2 /www/my/tp5/thinkphp/library/think/App.php(153): think\App->getAppPath()
#3 /www/my/tp5/thinkphp/library/think/App.php(130): think\App->path(’’)
#4 [internal function]: think\App->__construct(’’)
#5 /www/my/tp5/thinkphp/library/think/Container.php(439): ReflectionClass->newInstanceArgs(Array)
#6 /www/my/tp5/thinkphp/library/think/Container.php(284): think\Container->invokeClass(‘think\App’, Array)
#7 /www/my/tp5/thinkphp/library/think/Container.php(281): think\Container->make(‘think\App’, Array, false)
#8 /www/my/tp5/thinkphp/library/think/Container.php(132): think\Container->make(‘app’, Array, false)
#9 /www/my/tp5/thinkphp/library/think/exception/Handle.php(42): thin in /www/my/tp5/thinkphp/library/think/Loader.php on line 61
[2018-11-20 16:01:35 *5366.1] ERROR zm_deactivate_swoole (ERROR 503): Fatal error: Uncaught think\exception\ErrorException: Undefined index: argv in /www/my/tp5/thinkphp/library/think/Loader.php:61
Stack trace:
#0 /www/my/tp5/thinkphp/library/think/Loader.php(61): think\Error::appError(8, ‘Undefined index…’, ‘/www/my/tp5/thi…’, 61, Array)
#1 /www/my/tp5/thinkphp/library/think/App.php(873): think\Loader::getRootPath()
#2 /www/my/tp5/thinkphp/library/think/App.php(153): think\App->getAppPath()
#3 /www/my/tp5/thinkphp/library/think/App.php(130): think\App->path(’’)
#4 [internal function]: think\App->__construct(’’)

写回答

1回答

singwa

2018-11-21

您好。请贴上您的代码。

0
2
singwa
回复
风行天下1
这奇葩了。哈哈
2018-11-21
共2条回复

Swoole入门到实战打造高性能赛事直播平台

swoole创始人推荐,借助Swoole打造高性能直播平台

2228 学习 · 1062 问题

查看课程