Páginas

5 de abril de 2011

Hint to avoid memory exhausted error (symfony + doctrine1.2)

Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 71 bytes) in /blablabla/lib/vendor/symfony/lib/log/sfVarLogger.class.php on line 170


The problem is that the doctrine profiler is enabled for sfBaseTask, as sf_debug is set to true.

To disable the profiler, you have to create a new environment in config/databases.yml:
task:
  symfony:
      param:
        profiler: false

all:
  symfony:
    class: sfDoctrineDatabase
      param:
        dsn:   ....
        username:   ...
        password:   ...


From: http://www.nacho-martin.com/hint-to-avoid-memory-exhausted-error-symfony-doctrine1-2

Nenhum comentário:

Postar um comentário