[英]ERROR, Call to a member function send() on null
The font-end of my october CMS instance suddenly started giving me out the following error code: 我的10月CMS实例的font-end突然开始向我给出以下错误代码:
Call to a member function send() on null
$kernel = $app->make('Illuminate\Contracts\Http\Kernel');
$response = $kernel->handle(
$request = Illuminate\Http\Request::capture()
);
$response->send();
$kernel->terminate($request, $response);
Any Idea what could be causing it? 任何想法可能是什么原因造成的? I probably was adding a translation for another language while this happened. 发生这种情况时,我可能正在添加另一种语言的翻译。
I tried to find other posts about similar problems, but there seem to be so many cause for this error and I'm not a programmer. 我试图找到有关类似问题的其他帖子,但似乎有太多原因导致了此错误,而且我不是程序员。 Thank you! 谢谢!
screenshot of error code, visiting the front-end 错误代码的屏幕截图,请访问前端
最可能的原因是,您使用的自定义middleware
在某种情况下不会返回$next($request)
或任何东西,这些东西将返回null
而不是响应。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.