Being the douche that I am, I have worked out what triggered the
error. To trigger the error I misspelt the second parameter in a $this-
>Session->setFlash() call.
eg:
$this->Session->setFlash('Invalid URL.', 'admni', array('class' =>
'bad'));
The only way to continue on the site after this was by calling the
logout action.
I'm not sure if this should be reported as a bug or what? Kinda new to
this.
On Apr 10, 8:01 pm, Matthew Dunham wrote:
> Hi,
>
> I was working on my admin area the other day when all of a sudden my
> site white screened for every page on me. I took a look at the error
> long and this was the message:
>
> Allowed memory size of 33554432 bytes exhausted (tried to allocate
> 40961 bytes) in /usr/share/cakephp/cake/libs/view/view.php on line 663
>
> For reference, aforementioned line is quite simply "ob_start();".
>
> In an attempt to debug I noticed that anything I echoed in the
> controller would come out just before the error.
>
> I was trying various pages on my site, none of them worked but as soon
> as I tried the logout page the whole site was fine again. I've
> subsquently logged in and things are fine at the moment.
>
> Have I found a memory leak in Auth? Or have I made some sort of common
> mistake? I onyl ound one result online for the same error and it was
> never answered.
>
> I'll happily post parts of my implementation if you think that will
> help.
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 cake-php@googlegroups.com
To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at
http://groups.google.com/group/cake-php?hl=en
To unsubscribe, reply using "remove me" as the subject.