symfony/symfony — Issue #2788: Twig cache classname mismatch
Author: mcz
Created: 2011-12-05 23:16:13+00:00
State: open

Hi guys,

Everything works fine in dev mode, but when I run my app in prod, I get a strange error in my error.log:

```
PHP Fatal error: Class '__TwigTemplate_bce7639b7e159478f47aa114f1d5a674' not found in /usr/home/norbi/www/carbon/app/cache/prod/classes.php on line 5944
```

When I take a look at where this class is I found a file called _639b7e159478f47aa114f1d5a674.php_ in my _app/cache/prod/twig/bc/e7_ directory. This would be okay, but the content doesn't represent it's name because inside:

```php