Or just set $this->YourModelName->recursive = [-1|0];

I'd say it's very likely to be your associations that are the problem
and that Cake is attempting to basically slurp up your entire database
n times.

On Thu, May 22, 2008 at 10:14 AM, fr3nch13 <[EMAIL PROTECTED]> wrote:
>
> Check your model associations. I've ran into this when my associations
> were returning a huge array.
> If it's a page where you are listing items and your not using their
> associations, temporarily remove those associations for that instance
> of grabbing the list.
> I think the function is something like unbind
>
> http://www.google.com/search?q=cakephp+unbind
>
> On May 22, 9:42 am, BioResearch <[EMAIL PROTECTED]> wrote:
>> We are trying to update a working application from cake1.1 to
>> cake_1.2.0.6311-beta.  After fixing all of the bugs we ran into a
>> memory error which can not be fixed via increasing the memory size in
>> PHP.ini:
>>
>> Fatal error: Allowed memory size of 167772160 bytes exhausted (tried
>> to allocate 136 bytes) in /var/www/html/laboratree2/cake/libs/model/
>> datasources/datasource.php on line 360
>>
>> Normally this means that there is an infinite loop somewhere but I'm
>> not sure how to track it down since our code isn't being linked to in
>> the Fatal Error page.  Any advice?
>>
>> Thanks in advance,
>>
>> Jon
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to [email protected]
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to