On Tue, Jan 4, 2011 at 7:42 PM, roundrightfarm <[email protected]> wrote:
> I was working with a script that had given me memory issues in the
> past, which I had fixed by ini_set('memory_limit', 128M) and then a
> few weeks later, when mempry became an issue again I bumped it up to
> 256M.
>
> Now, several months later I wanted to tweak the script a little and wa
> running into more memory issues, so in order to "not have to deal with
> the issue", I set it at 1024M.  This caused the script to time out.  I
> set it back to 256M, rebooted the computer.  Now every single page
> from my app will not load, not even a static pages/ page.  Now I get.
>
> Fatal error: Allowed memory size of 134217728 bytes exhausted (tried
> to allocate 35 bytes) in /Applications/XAMPP/xamppfiles/htdocs/cake/
> libs/cache/file.php on line 176.
>
> phpmyadmin loads fine, so the problem seems to be with my app and not
> the localhost in general.  When I was having the inital memory issues,
> before I bumped it to 1024M, I was getting this same error, except
> that the memory it tried to allocate was a much higher number. How can
> I get my app back?

You've probably got one or more associations which are causing Cake to
fetch far to much data. Carefully go through your models and check all
of the associations. Then look at your finds. Could you set recursive
to a lower value in some cases?

This can be difficult thing to pin down, though.

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

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