Exceptions

The controller must return a "Symfony\Component\HttpFoundation\Response" object but it returned a string ("@@END@@").

Exception

Symfony\Component\HttpKernel\Exception\ ControllerDoesNotReturnResponseException

  1.                 // the user may have forgotten to return something
  2.                 if (null === $response) {
  3.                     $msg .= ' Did you forget to add a return statement somewhere in your controller?';
  4.                 }
  5.                 throw new ControllerDoesNotReturnResponseException($msg, $controller, __FILE__, __LINE__ - 17);
  6.             }
  7.         }
  8.         return $this->filterResponse($response, $request, $type);
  9.     }
  1.     {
  2.         $request->headers->set('X-Php-Ob-Level', (string) ob_get_level());
  3.         $this->requestStack->push($request);
  4.         try {
  5.             return $this->handleRaw($request, $type);
  6.         } catch (\Exception $e) {
  7.             if ($e instanceof RequestExceptionInterface) {
  8.                 $e = new BadRequestHttpException($e->getMessage(), $e);
  9.             }
  10.             if (false === $catch) {
  1.         $this->boot();
  2.         ++$this->requestStackSize;
  3.         $this->resetServices = true;
  4.         try {
  5.             return $this->getHttpKernel()->handle($request, $type, $catch);
  6.         } finally {
  7.             --$this->requestStackSize;
  8.         }
  9.     }
Kernel->handle() in app.php/ (line 27)
  1. // When using the HttpCache, you need to call the method in your front controller instead of relying on the configuration parameter
  2. //Request::enableHttpMethodParameterOverride();
  3. $request = Request::createFromGlobals();
  4. $response = $kernel->handle($request);
  5. $response->send();
  6. $kernel->terminate($request, $response);

Logs

Level Channel Message
INFO 11:53:01 request Matched route "_profiler".
{
    "route": "_profiler",
    "route_parameters": {
        "_route": "_profiler",
        "_controller": "web_profiler.controller.profiler::panelAction",
        "token": "latest"
    },
    "request_uri": "https://csweb2.arestat.org/_profiler/latest?ip=20.46.228.216",
    "method": "GET"
}
DEBUG 11:53:01 app Event Subscriber: OnKernelController
DEBUG 11:53:01 app route is https://csweb2.arestat.org/_profiler/latest?ip=20.46.228.216
DEBUG 11:53:01 app Event Subscriber: OnKernelController
DEBUG 11:53:01 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:53:01 app Event Subscriber: OnKernelController
DEBUG 11:53:01 app route is https://csweb2.arestat.org/_fragment?_path=_format%3Dhtml%26_locale%3Den%26_controller%3Dweb_profiler.controller.profiler%253A%253AsearchBarAction&ip=20.46.228.216
DEBUG 11:53:01 app Event Subscriber: OnKernelController
DEBUG 11:53:01 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)