QQ扫一扫联系
点击模块管理显示请求出现错误,无法安装新的模块,原来一直使用正常,突然出现的问题。
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 接口
服务器上可以打开网站,里面页面也可以正常浏览。
麻烦再帮我看看,是哪里的问题。
https://modstart.com/doc/install/qa.html#%E6%9F%A5%E6%89%BE%E5%BA%94%E7%94%A8%E6%97%A5%E5%BF%97
https://modstart.com/doc/install/qa.html#q-%E6%A8%A1%E5%9D%97%E5%B8%82%E5%9C%BA%E5%87%BA%E7%8E%B0502%E8%AF%B7%E6%B1%82%E9%94%99%E8%AF%AF
有哪位大佬可以帮忙解决吗?出点费用都可以的。