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 :

  • Increasing the memory of PHP to 512Mo
  • Downloading the entire /lib/ folder and to build forms and filters on local : it went right, i got no error.

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.)



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.

Need Your Help

How to stop “warnings” when using vim omni-completion with python?

python vim

I am trying vim's python omni-completion script, it works, but I got problem.

How can i call a table class in selenium and phpunit

class table selenium phpunit

How can i use click() function on a class of a table in selenium and phpunit. (See the bold code)

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.