4

According to symfony2 documentation NotFoundHttpException should be caught by the framework and ultimately trigger a 404 response, but I'm just getting fatal error (Uncaught exception) with status 200 on prod environment. On the dev environment I got 404. I'm using this:

    throw $this->createNotFoundException();

I just want to display my customized 404 page. I've cleared cache but it hasn't helped. Am I doing something wrong?

Rob
  • 409
  • 4
  • 20
radke
  • 41
  • 3
  • 1
    What is the message of the thrown exception? Is there anything in prod logs? – Gabriel Gcia Fdez Sep 16 '13 at 07:27
  • 1
    Thanks! I forgot to check prod logs. I've found something interesting: "ERROR: Exception thrown when handling an exception (Twig_Error_Runtime: The merge filter only works with arrays or hashes in "TwigBundle:Exception:error404.html.twig".)" – radke Sep 16 '13 at 08:49

0 Answers0