symfony1symfony-1.4

Symfony : PHP Fatal error: Allowed memory size


I try to run this command to build model in my symfony project(1.4) :

php symfony propel:build-model( or all ) 

I have this error :

PHP Fatal error:  Allowed memory size of 33554432 bytes exhausted (tried to allocate 20 bytes) in /home/sfprojects/jobeet/lib/vendor/symfony/lib/util/sfClassManipulator.class.php on line 176

I searched before asking people here so I changed memory_limit = 64M in my php.ini to 128M , 510M , 1024M ... but I have the same error that really get me crazy!

I'm using Ubuntu with apache2,php5...


Solution

  • You should avoid putting dump in loops in your

    Controllers

    or in your twig templates with

    {% for row in rows %}
       {{ dump(row) }}
    {% endfor %}