Exceptions
Exception
Symfony\Component\HttpKernel\Exception\ ControllerDoesNotReturnResponseException
in
vendor/symfony/http-kernel/HttpKernel.php
(line 180)
// the user may have forgotten to return somethingif (null === $response) {$msg .= ' Did you forget to add a return statement somewhere in your controller?';}throw new ControllerDoesNotReturnResponseException($msg, $controller, __FILE__, __LINE__ - 17);}}return $this->filterResponse($response, $request, $type);}
in
vendor/symfony/http-kernel/HttpKernel.php
->
handleRaw
(line 75)
{$request->headers->set('X-Php-Ob-Level', (string) ob_get_level());$this->requestStack->push($request);try {return $this->handleRaw($request, $type);} catch (\Exception $e) {if ($e instanceof RequestExceptionInterface) {$e = new BadRequestHttpException($e->getMessage(), $e);}if (false === $catch) {
in
vendor/symfony/http-kernel/Kernel.php
->
handle
(line 202)
$this->boot();++$this->requestStackSize;$this->resetServices = true;try {return $this->getHttpKernel()->handle($request, $type, $catch);} finally {--$this->requestStackSize;}}
// When using the HttpCache, you need to call the method in your front controller instead of relying on the configuration parameter//Request::enableHttpMethodParameterOverride();$request = Request::createFromGlobals();$response = $kernel->handle($request);$response->send();$kernel->terminate($request, $response);
Logs
| Level | Channel | Message |
|---|---|---|
| INFO 11:12:53 | request |
Matched route "_profiler". {
"route": "_profiler",
"route_parameters": {
"_route": "_profiler",
"_controller": "web_profiler.controller.profiler::panelAction",
"token": "ea6add"
},
"request_uri": "https://csweb2.arestat.org/_profiler/ea6add?panel=exception",
"method": "GET"
}
|
| DEBUG 11:12:53 | app | Event Subscriber: OnKernelController |
| DEBUG 11:12:53 | app | route is https://csweb2.arestat.org/_profiler/ea6add?panel=exception |
| DEBUG 11:12:53 | app | Event Subscriber: OnKernelController |
| DEBUG 11:12:53 | app | route is https://csweb2.arestat.org/_fragment?_path=_format%3Dhtml%26_locale%3Den%26_controller%3Dweb_profiler.controller.exception_panel%253A%253Astylesheet |
| DEBUG 11:12:53 | app | Event Subscriber: OnKernelController |
| DEBUG 11:12:53 | app | route is https://csweb2.arestat.org/_fragment?_path=_format%3Dhtml%26_locale%3Den%26_controller%3Dweb_profiler.controller.profiler%253A%253AsearchBarAction&panel=exception |
| DEBUG 11:12:53 | app | Event Subscriber: OnKernelController |
| DEBUG 11:12:53 | app | route is https://csweb2.arestat.org/_fragment?_path=_format%3Dhtml%26_locale%3Den%26_controller%3Dweb_profiler.controller.exception_panel%253A%253Abody |
Stack Trace
|
ControllerDoesNotReturnResponseException
|
|---|
Symfony\Component\HttpKernel\Exception\ControllerDoesNotReturnResponseException:
The controller must return a "Symfony\Component\HttpFoundation\Response" object but it returned a string ("@@END@@").
at vendor/symfony/http-kernel/HttpKernel.php:180
at Symfony\Component\HttpKernel\HttpKernel->handleRaw()
(vendor/symfony/http-kernel/HttpKernel.php:75)
at Symfony\Component\HttpKernel\HttpKernel->handle()
(vendor/symfony/http-kernel/Kernel.php:202)
at Symfony\Component\HttpKernel\Kernel->handle()
(app.php/:27)
|