Closed dmf-code closed 4 years ago
感谢反馈,可能是app没有boot的原因,请更新下composer包后再测试下,谢谢
感谢反馈,可能是app没有boot的原因,请更新下composer包后再测试下,谢谢
PHP Fatal error: Uncaught TypeError: Argument 2 passed to Illuminate\Routing\UrlGenerator::__construct() must be an instance of Illuminate\Http\Request, null given, called in /data/tars/tarsnode-data/Activity.groupBuy/bin/src/vendor/laravel/framework/src/Illuminate/Routing/RoutingServiceProvider.php on line 67 and defined in /data/tars/tarsnode-data/Activity.groupBuy/bin/src/vendor/laravel/framework/src/Illuminate/Routing/UrlGenerator.php:102
--
| Stack trace:
| #0 /data/tars/tarsnode-data/Activity.groupBuy/bin/src/vendor/laravel/framework/src/Illuminate/Routing/RoutingServiceProvider.php(67): Illuminate\Routing\UrlGenerator->__construct(Object(Illuminate\Routing\RouteCollection), NULL)
| #1 /data/tars/tarsnode-data/Activity.groupBuy/bin/src/vendor/laravel/framework/src/Illuminate/Container/Container.php(749): Illuminate\Routing\RoutingServiceProvider->Illuminate\Routing\{closure}(Object(Illuminate\Foundation\Application), Array)
| #2 /data/tars/tarsnode-data/Activity.groupBuy/bin/src/vendor/laravel/framework/src/Illuminate/Container/Co in /data/tars/tarsnode-data/Activity.groupBuy/bin/src/vendor/laravel/framework/src/Illuminate/Routing/UrlGenerator.php on line 102
|
| In UrlGenerator.php line 102:
|
| Uncaught TypeError: Argument 2 passed to Illuminate\Routing\UrlGenerator::_
| _construct() must be an instance of Illuminate\Http\Request, null given, ca
| lled in /data/tars/tarsnode-data/Activity.groupBuy/bin/src/vendor/laravel/f
| ramework/src/Illuminate/Routing/RoutingServiceProvider.php on line 67 and d
| efined in /data/tars/tarsnode-data/Activity.groupBuy/bin/src/vendor/laravel
| /framework/src/Illuminate/Routing/UrlGenerator.php:102
| Stack trace:
| #0 /data/tars/tarsnode-data/Activity.groupBuy/bin/src/vendor/laravel/framew
| ork/src/Illuminate/Routing/RoutingServiceProvider.php(67): Illuminate\Routi
| ng\UrlGenerator->__construct(Object(Illuminate\Routing\RouteCollection), NU
| LL)
| #1 /data/tars/tarsnode-data/Activity.groupBuy/bin/src/vendor/laravel/framew
| ork/src/Illuminate/Container/Container.php(749): Illuminate\Routing\Routing
| ServiceProvider->Illuminate\Routing\{closure}(Object(Illuminate\Foundation\
| Application), Array)
| #2 /data/tars/tarsnode-data/Activity.groupBuy/bin/src/vendor/laravel/framew
| ork/src/Illuminate/Container/Co
|
|
|
| In UrlGenerator.php line 102:
|
| Uncaught TypeError: Argument 2 passed to Illuminate\Routing\UrlGenerator::_
| _construct() must be an instance of Illuminate\Http\Request, null given, ca
| lled in /data/tars/tarsnode-data/Activity.groupBuy/bin/src/vendor/laravel/f
| ramework/src/Illuminate/Routing/RoutingServiceProvider.php on line 67 and d
| efined in /data/tars/tarsnode-data/Activity.groupBuy/bin/src/vendor/laravel
| /framework/src/Illuminate/Routing/UrlGenerator.php:102
| Stack trace:
| #0 /data/tars/tarsnode-data/Activity.groupBuy/bin/src/vendor/laravel/framew
| ork/src/Illuminate/Routing/RoutingServiceProvider.php(67): Illuminate\Routi
| ng\UrlGenerator->__construct(Object(Illuminate\Routing\RouteCollection), NU
| LL)
| #1 /data/tars/tarsnode-data/Activity.groupBuy/bin/src/vendor/laravel/framew
| ork/src/Illuminate/Container/Container.php(749): Illuminate\Routing\Routing
| ServiceProvider->Illuminate\Routing\{closure}(Object(Illuminate\Foundation\
| Application), Array)
| #2 /data/tars/tarsnode-data/Activity.groupBuy/bin/src/vendor/laravel/framew
| ork/src/Illuminate/Container/Co
|
|
| [2020-08-22 17:55:32 *4866.2] ERROR php_swoole_server_rshutdown (ERRNO 503): Fatal error: Uncaught TypeError: Argument 2 passed to Illuminate\Routing\UrlGenerator::__construct() must be an instance of Illuminate\Http\Request, null given, called in /data/tars/tarsnode-data/Activity.groupBuy/bin/src/vendor/laravel/framework/src/Illuminate/Routing/RoutingServiceProvider.php on line 67 and defined in /data/tars/tarsnode-data/Activity.groupBuy/bin/src/vendor/laravel/framework/src/Illuminate/Routing/UrlGenerator.php:102
| Stack trace:
| #0 /data/tars/tarsnode-data/Activity.groupBuy/bin/src/vendor/laravel/framework/src/Illuminate/Routing/RoutingServiceProvider.php(67): Illuminate\Routing\UrlGenerator->__construct(Object(Illuminate\Routing\RouteCollection), NULL)
| #1 /data/tars/tarsnode-data/Activity.groupBuy/bin/src/vendor/laravel/framework/src/Illuminate/Container/Container.php(749): Illuminate\Routing\RoutingServiceProvider->Illuminate\Routing\{closure}(Object(Illuminate\Foundation\Application), Array)
| #2 /data/tars/tarsnode-data/Activity.groupBuy/bin/src/vendor/laravel/framework/src/Illuminate/Container/Co in /data/tars/tarsnode-data/Activity.groupBuy/bin/src/vendor/laravel/framework/src/Illuminate/Routing/UrlGenerator.php on line 102
更新后 又有新问题了
稍等,我再看看
@dmf-code 请更新下composer包后再测试下,谢谢
可以使用了,感谢
config
报错了刷新第二次页面就出现这个问题了,上面的错误就没有了
框架搭建是使用
laravel-tars-demo
这个的,然后composer install
后就变成这样子了config
无法实例化错误问题这里的
这样子就不报错了,应该是别名使用上出问题了
$concrete='config'
然后无法实例化,因为这个config
不是命名空间,导致无法实例化。