Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Symfony cache:clear php.CRITICAL: Fatal error: Allowed memory size

Tags:

php

symfony

I am encoutering the following error with Symfony when trying to

php app/console cache:clear

or

php app/console cache:warmup

Fatal error: Allowed memory size of xxx bytes exhausted.

I already set memory limit to very large size 1024M, 2048M. I removed all twig templates from my project I unactivated vendors bundles leaving only FOSUSer and FOSRestBundle.

I am unable to track from where this error comes from.

Any idea?

Thanks

I get the following error

enter image description here

like image 276
Xavier13 Avatar asked Jan 09 '16 17:01

Xavier13


1 Answers

In the end, it was that little piece of code that was the problem:

# config.yml
...   
twig:     
    paths:
            "%kernel.root_dir%": app

Thanks guys for confirming me that it was Twig the problem.

like image 115
Xavier13 Avatar answered Oct 01 '22 11:10

Xavier13