讨论 技术讨论 点击模块管理显示请求出现错误,无法安装新的模块

点击模块管理显示请求出现错误,无法安装新的模块

jxncdy 发表于    阅读:681    回复:5

问题描述:

点击模块管理显示请求出现错误,无法安装新的模块,原来一直使用正常,突然出现的问题。

53252_e2o1_7005.jpg

环境信息:

PHP7.09nts版本、文档模块

日志报错是这样的:

[2023-02-01 21:50:52] product.ERROR: UnexpectedValueException: The Response content must be a string or object implementing __toString(), "boolean" given. in D:\phpstudy_pro\WWW\www.aaa.com\vendor\symfony\http-foundation\Response.php:397

Stack trace:

#0 D:\phpstudy_pro\WWW\www.aaa.com\vendor\laravel\framework\src\Illuminate\Http\Response.php(54): Symfony\Component\HttpFoundation\Response->setContent(false)

#1 D:\phpstudy_pro\WWW\www.aaa.com\vendor\symfony\http-foundation\Response.php(202): Illuminate\Http\Response->setContent(false)

#2 D:\phpstudy_pro\WWW\www.aaa.com\vendor\laravel\framework\src\Illuminate\Routing\Router.php(1229): Symfony\Component\HttpFoundation\Response->__construct(Array)

#3 D:\phpstudy_pro\WWW\www.aaa.com\vendor\laravel\framework\src\Illuminate\Routing\ControllerDispatcher.php(112): Illuminate\Routing\Router->prepareResponse(Object(Illuminate\Http\Request), Array)

#4 [internal function]: Illuminate\Routing\ControllerDispatcher->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))

#5 D:\phpstudy_pro\WWW\www.aaa.com\vendor\laravel\framework\src\Illuminate\Pipeline\Pipeline.php(139): call_user_func(Object(Closure), Object(Illuminate\Http\Request))

#6 [internal function]: Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))

#7 D:\phpstudy_pro\WWW\www.aaa.com\vendor\laravel\framework\src\Illuminate\Pipeline\Pipeline.php(102): call_user_func(Object(Closure), Object(Illuminate\Http\Request))

#8 D:\phpstudy_pro\WWW\www.aaa.com\vendor\laravel\framework\src\Illuminate\Routing\ControllerDispatcher.php(114): Illuminate\Pipeline\Pipeline->then(Object(Closure))

#9 D:\phpstudy_pro\WWW\www.aaa.com\vendor\laravel\framework\src\Illuminate\Routing\ControllerDispatcher.php(67): Illuminate\Routing\ControllerDispatcher->callWithinStack(Object(Module\ModuleStore\Admin\Controller\ModuleStoreController), Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request), 'all')

#10 D:\phpstudy_pro\WWW\www.aaa.com\vendor\laravel\framework\src\Illuminate\Routing\Route.php(203): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request), '\\Module\\ModuleS...', 'all')

#11 D:\phpstudy_pro\WWW\www.aaa.com\vendor\laravel\framework\src\Illuminate\Routing\Route.php(134): Illuminate\Routing\Route->runWithCustomDispatcher(Object(Illuminate\Http\Request))

#12 D:\phpstudy_pro\WWW\www.aaa.com\vendor\laravel\framework\src\Illuminate\Routing\Router.php(708): Illuminate\Routing\Route->run(Object(Illuminate\Http\Request))

#13 [internal function]: Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))

#14 D:\phpstudy_pro\WWW\www.aaa.com\vendor\laravel\framework\src\Illuminate\Pipeline\Pipeline.php(139): call_user_func(Object(Closure), Object(Illuminate\Http\Request))

#15 D:\phpstudy_pro\WWW\www.aaa.com\vendor\modstart\modstart\src\Admin\Middleware\AuthMiddleware.php(238): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))

#16 [internal function]: ModStart\Admin\Middleware\AuthMiddleware->handle(Object(Illuminate\Http\Request), Object(Closure))

#17 D:\phpstudy_pro\WWW\www.aaa.com\vendor\laravel\framework\src\Illuminate\Pipeline\Pipeline.php(124): call_user_func_array(Array, Array)

#18 D:\phpstudy_pro\WWW\www.aaa.com\vendor\modstart\modstart\src\Admin\Middleware\BootstrapMiddleware.php(18): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))

#19 [internal function]: ModStart\Admin\Middleware\BootstrapMiddleware->handle(Object(Illuminate\Http\Request), Object(Closure))

#20 D:\phpstudy_pro\WWW\www.aaa.com\vendor\laravel\framework\src\Illuminate\Pipeline\Pipeline.php(124): call_user_func_array(Array, Array)

#21 [internal function]: Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))

#22 D:\phpstudy_pro\WWW\www.aaa.com\vendor\laravel\framework\src\Illuminate\Pipeline\Pipeline.php(102): call_user_func(Object(Closure), Object(Illuminate\Http\Request))

#23 D:\phpstudy_pro\WWW\www.aaa.com\vendor\laravel\framework\src\Illuminate\Routing\Router.php(710): Illuminate\Pipeline\Pipeline->then(Object(Closure))

#24 D:\phpstudy_pro\WWW\www.aaa.com\vendor\laravel\framework\src\Illuminate\Routing\Router.php(673): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))

#25 D:\phpstudy_pro\WWW\www.aaa.com\vendor\laravel\framework\src\Illuminate\Routing\Router.php(635): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))

#26 D:\phpstudy_pro\WWW\www.aaa.com\vendor\laravel\framework\src\Illuminate\Foundation\Http\Kernel.php(236): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))

#27 [internal function]: Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))

#28 D:\phpstudy_pro\WWW\www.aaa.com\vendor\laravel\framework\src\Illuminate\Pipeline\Pipeline.php(139): call_user_func(Object(Closure), Object(Illuminate\Http\Request))

#29 D:\phpstudy_pro\WWW\www.aaa.com\vendor\laravel\framework\src\Illuminate\Session\Middleware\StartSession.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))

#30 [internal function]: Illuminate\Session\Middleware\StartSession->handle(Object(Illuminate\Http\Request), Object(Closure))

#31 D:\phpstudy_pro\WWW\www.aaa.com\vendor\laravel\framework\src\Illuminate\Pipeline\Pipeline.php(124): call_user_func_array(Array, Array)

#32 D:\phpstudy_pro\WWW\www.aaa.com\vendor\laravel\framework\src\Illuminate\Cookie\Middleware\AddQueuedCookiesToResponse.php(37): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))

#33 [internal function]: Illuminate\Cookie\Middleware\AddQueuedCookiesToResponse->handle(Object(Illuminate\Http\Request), Object(Closure))

#34 D:\phpstudy_pro\WWW\www.aaa.com\vendor\laravel\framework\src\Illuminate\Pipeline\Pipeline.php(124): call_user_func_array(Array, Array)

#35 D:\phpstudy_pro\WWW\www.aaa.com\vendor\laravel\framework\src\Illuminate\Cookie\Middleware\EncryptCookies.php(59): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))

#36 [internal function]: Illuminate\Cookie\Middleware\EncryptCookies->handle(Object(Illuminate\Http\Request), Object(Closure))

#37 D:\phpstudy_pro\WWW\www.aaa.com\vendor\laravel\framework\src\Illuminate\Pipeline\Pipeline.php(124): call_user_func_array(Array, Array)

#38 D:\phpstudy_pro\WWW\www.aaa.com\vendor\laravel\framework\src\Illuminate\Foundation\Http\Middleware\CheckForMaintenanceMode.php(44): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))

#39 [internal function]: Illuminate\Foundation\Http\Middleware\CheckForMaintenanceMode->handle(Object(Illuminate\Http\Request), Object(Closure))

#40 D:\phpstudy_pro\WWW\www.aaa.com\vendor\laravel\framework\src\Illuminate\Pipeline\Pipeline.php(124): call_user_func_array(Array, Array)

#41 [internal function]: Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))

#42 D:\phpstudy_pro\WWW\www.aaa.com\vendor\laravel\framework\src\Illuminate\Pipeline\Pipeline.php(102): call_user_func(Object(Closure), Object(Illuminate\Http\Request))

#43 D:\phpstudy_pro\WWW\www.aaa.com\vendor\laravel\framework\src\Illuminate\Foundation\Http\Kernel.php(122): Illuminate\Pipeline\Pipeline->then(Object(Closure))

#44 D:\phpstudy_pro\WWW\www.aaa.com\vendor\laravel\framework\src\Illuminate\Foundation\Http\Kernel.php(87): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))

#45 D:\phpstudy_pro\WWW\www.aaa.com\public\index.php(55): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))

#46 {main}  

[2023-02-01 21:50:52] product.ERROR: UnexpectedValueException: The Response content must be a string or object implementing __toString(), "boolean" given. in D:\phpstudy_pro\WWW\www.aaa.com\vendor\symfony\http-foundation\Response.php:397

Stack trace:

#0 D:\phpstudy_pro\WWW\www.aaa.com\vendor\laravel\framework\src\Illuminate\Http\Response.php(54): Symfony\Component\HttpFoundation\Response->setContent(false)

#1 D:\phpstudy_pro\WWW\www.aaa.com\vendor\symfony\http-foundation\Response.php(202): Illuminate\Http\Response->setContent(false)

#2 D:\phpstudy_pro\WWW\www.aaa.com\vendor\laravel\framework\src\Illuminate\Routing\Router.php(1229): Symfony\Component\HttpFoundation\Response->__construct(Array)

#3 D:\phpstudy_pro\WWW\www.aaa.com\vendor\laravel\framework\src\Illuminate\Routing\ControllerDispatcher.php(112): Illuminate\Routing\Router->prepareResponse(Object(Illuminate\Http\Request), Array)

#4 [internal function]: Illuminate\Routing\ControllerDispatcher->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))

#5 D:\phpstudy_pro\WWW\www.aaa.com\vendor\laravel\framework\src\Illuminate\Pipeline\Pipeline.php(139): call_user_func(Object(Closure), Object(Illuminate\Http\Request))

#6 [internal function]: Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))

#7 D:\phpstudy_pro\WWW\www.aaa.com\vendor\laravel\framework\src\Illuminate\Pipeline\Pipeline.php(102): call_user_func(Object(Closure), Object(Illuminate\Http\Request))

#8 D:\phpstudy_pro\WWW\www.aaa.com\vendor\laravel\framework\src\Illuminate\Routing\ControllerDispatcher.php(114): Illuminate\Pipeline\Pipeline->then(Object(Closure))

#9 D:\phpstudy_pro\WWW\www.aaa.com\vendor\laravel\framework\src\Illuminate\Routing\ControllerDispatcher.php(67): Illuminate\Routing\ControllerDispatcher->callWithinStack(Object(Module\ModuleStore\Admin\Controller\ModuleStoreController), Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request), 'all')

#10 D:\phpstudy_pro\WWW\www.aaa.com\vendor\laravel\framework\src\Illuminate\Routing\Route.php(203): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request), '\\Module\\ModuleS...', 'all')

#11 D:\phpstudy_pro\WWW\www.aaa.com\vendor\laravel\framework\src\Illuminate\Routing\Route.php(134): Illuminate\Routing\Route->runWithCustomDispatcher(Object(Illuminate\Http\Request))

#12 D:\phpstudy_pro\WWW\www.aaa.com\vendor\laravel\framework\src\Illuminate\Routing\Router.php(708): Illuminate\Routing\Route->run(Object(Illuminate\Http\Request))

#13 [internal function]: Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))

#14 D:\phpstudy_pro\WWW\www.aaa.com\vendor\laravel\framework\src\Illuminate\Pipeline\Pipeline.php(139): call_user_func(Object(Closure), Object(Illuminate\Http\Request))

#15 D:\phpstudy_pro\WWW\www.aaa.com\vendor\modstart\modstart\src\Admin\Middleware\AuthMiddleware.php(238): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))

#16 [internal function]: ModStart\Admin\Middleware\AuthMiddleware->handle(Object(Illuminate\Http\Request), Object(Closure))

#17 D:\phpstudy_pro\WWW\www.aaa.com\vendor\laravel\framework\src\Illuminate\Pipeline\Pipeline.php(124): call_user_func_array(Array, Array)

#18 D:\phpstudy_pro\WWW\www.aaa.com\vendor\modstart\modstart\src\Admin\Middleware\BootstrapMiddleware.php(18): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))

#19 [internal function]: ModStart\Admin\Middleware\BootstrapMiddleware->handle(Object(Illuminate\Http\Request), Object(Closure))

#20 D:\phpstudy_pro\WWW\www.aaa.com\vendor\laravel\framework\src\Illuminate\Pipeline\Pipeline.php(124): call_user_func_array(Array, Array)

#21 [internal function]: Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))

#22 D:\phpstudy_pro\WWW\www.aaa.com\vendor\laravel\framework\src\Illuminate\Pipeline\Pipeline.php(102): call_user_func(Object(Closure), Object(Illuminate\Http\Request))

#23 D:\phpstudy_pro\WWW\www.aaa.com\vendor\laravel\framework\src\Illuminate\Routing\Router.php(710): Illuminate\Pipeline\Pipeline->then(Object(Closure))

#24 D:\phpstudy_pro\WWW\www.aaa.com\vendor\laravel\framework\src\Illuminate\Routing\Router.php(673): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))

#25 D:\phpstudy_pro\WWW\www.aaa.com\vendor\laravel\framework\src\Illuminate\Routing\Router.php(635): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))

#26 D:\phpstudy_pro\WWW\www.aaa.com\vendor\laravel\framework\src\Illuminate\Foundation\Http\Kernel.php(236): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))

#27 [internal function]: Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))

#28 D:\phpstudy_pro\WWW\www.aaa.com\vendor\laravel\framework\src\Illuminate\Pipeline\Pipeline.php(139): call_user_func(Object(Closure), Object(Illuminate\Http\Request))

#29 D:\phpstudy_pro\WWW\www.aaa.com\vendor\laravel\framework\src\Illuminate\Session\Middleware\StartSession.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))

#30 [internal function]: Illuminate\Session\Middleware\StartSession->handle(Object(Illuminate\Http\Request), Object(Closure))

#31 D:\phpstudy_pro\WWW\www.aaa.com\vendor\laravel\framework\src\Illuminate\Pipeline\Pipeline.php(124): call_user_func_array(Array, Array)

#32 D:\phpstudy_pro\WWW\www.aaa.com\vendor\laravel\framework\src\Illuminate\Cookie\Middleware\AddQueuedCookiesToResponse.php(37): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))

#33 [internal function]: Illuminate\Cookie\Middleware\AddQueuedCookiesToResponse->handle(Object(Illuminate\Http\Request), Object(Closure))

#34 D:\phpstudy_pro\WWW\www.aaa.com\vendor\laravel\framework\src\Illuminate\Pipeline\Pipeline.php(124): call_user_func_array(Array, Array)

#35 D:\phpstudy_pro\WWW\www.aaa.com\vendor\laravel\framework\src\Illuminate\Cookie\Middleware\EncryptCookies.php(59): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))

#36 [internal function]: Illuminate\Cookie\Middleware\EncryptCookies->handle(Object(Illuminate\Http\Request), Object(Closure))

#37 D:\phpstudy_pro\WWW\www.aaa.com\vendor\laravel\framework\src\Illuminate\Pipeline\Pipeline.php(124): call_user_func_array(Array, Array)

#38 D:\phpstudy_pro\WWW\www.aaa.com\vendor\laravel\framework\src\Illuminate\Foundation\Http\Middleware\CheckForMaintenanceMode.php(44): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))

#39 [internal function]: Illuminate\Foundation\Http\Middleware\CheckForMaintenanceMode->handle(Object(Illuminate\Http\Request), Object(Closure))

#40 D:\phpstudy_pro\WWW\www.aaa.com\vendor\laravel\framework\src\Illuminate\Pipeline\Pipeline.php(124): call_user_func_array(Array, Array)

#41 [internal function]: Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))

#42 D:\phpstudy_pro\WWW\www.aaa.com\vendor\laravel\framework\src\Illuminate\Pipeline\Pipeline.php(102): call_user_func(Object(Closure), Object(Illuminate\Http\Request))

#43 D:\phpstudy_pro\WWW\www.aaa.com\vendor\laravel\framework\src\Illuminate\Foundation\Http\Kernel.php(122): Illuminate\Pipeline\Pipeline->then(Object(Closure))

#44 D:\phpstudy_pro\WWW\www.aaa.com\vendor\laravel\framework\src\Illuminate\Foundation\Http\Kernel.php(87): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))

#45 D:\phpstudy_pro\WWW\www.aaa.com\public\index.php(55): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))

#46 {main}  


麻烦帮忙看下是啥问题。感谢

评论

看日志是服务器请求 modstart.com 相关接口失败了。

请检查服务器是否能连接外网,保证可以正常访问到 modstart.com 接口

 

服务器上可以打开网站,里面页面也可以正常浏览。

3127_g49v_3932.jpg

麻烦再帮我看看,是哪里的问题。

 

有哪位大佬可以帮忙解决吗?出点费用都可以的。

 
1
我来评论
QQ
微信
客服