It seems to be what it says: memory usage beyond PHP limits. In some test I ran , cakephp 1.2 uses around 4MB of memory with one controller instantiated. [but i'm not a benchmark freak, should something like this be on docs ?] So, it's certainly the data or associated data you are fetching from database. a simple <?php debug($this->data) ?> in your view or controllers should tell you. To find out, try using in your controller something like this: $this->ModelName->recursive = -1;
If it is effectivelly the problem, try the bindable behaviour: http://bakery.cakephp.org/articles/view/bindable-behavior-control-your-model-bindings spark On Thu, Mar 6, 2008 at 8:42 PM, Aaron Shafovaloff <[EMAIL PROTECTED]> wrote: > > I lately am getting this: > > Fatal error: Allowed memory size of 16777216 bytes exhausted (tried to > allocate 2873212 bytes) in C:\Users\Aaron\workspace\cake\libs\cache > \file.php on line 138 > > Is this a bug in Cake? > > I haven't been getting this before. Any ideas on how to prevent it? I > would hope that I wouldn't have to keep upping the memory? > > > -- [livesets] http://djspark.com.br/ [web] http://sydi.net [filmes] http://melhoresfilmes.com.br --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~----------~----~----~----~------~----~------~--~---