sf_tristanb
sf_tristanb

Reputation: 8855

Symfony : Generating filter+form classes = Fatal error (Allowed memory size exhausted)

I've got this weird error when i try to generate either the filters or the form on my production server.

    Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to 
allocate 20 bytes) in /var/www/project/lib/vendor/symfony/ 
lib/plugins/sfDoctrinePlugin/lib/vendor/doctrine/Doctrine/Core.php on 
line 669 

I don't know how to get rid of this error,

i tryed :

So which files, the generation of filters or forms are dependent ( apart the /lib/ otherwise i would have got this error on my local computer too but it's not the case.)

Thanks

Upvotes: 0

Views: 653

Answers (2)

sf_tristanb
sf_tristanb

Reputation: 8855

I increased the memory of the CLI and it fixed the problem.

Upvotes: 0

Raise
Raise

Reputation: 2034

You shouldn't be generating your forms and filters, or fiddling with much else, on your production server. Build the site locally, and then upload it to the production server. You should only really be clearing the cache and fixing permissions on the production server, depending on your sfPlugin choices.

The generators are quite a large part of symfony given the complexity of the form modelling it does, so it's quite a large group to identify. You really shouldn't need to worry about it unless you have some heavily locked-down production hosting restrictions.

Upvotes: 2

Related Questions