Tuesday, March 3, 2009

basics.php, Controller Dump, Fatal error: Allowed memory size

I am getting the following error when trying to access a couple of my
models:

Fatal error: Allowed memory size of .... \cake\basics.php on line
209.


It is interesting that it only occurs on a few of my models. It
occurs as part of the controller dump (when debugging is set to 3).
My quick fix is to simply turn debugging down a notch (2). And I no
longer had the problem.

My PHP memory limits are set to 128MB, so I guess for some reason this
very basic controller had some sort of recursive thing in it or
something. The controller, model, and view are all just freshly baked
with the only change to the controller being the addition of this in
the beforeFilter:
parent::beforeFilter();
$this->Auth->allowedActions = array('*');


Here are some other threads that appeared to have a similar problem.

http://groups.google.com/group/cake-php/browse_thread/thread/4272f53daa52ddf6/19fcac150e93b7e1?lnk=gst&q=fatal+error+allowed+memory+size+exhausted+controller+dump#19fcac150e93b7e1

http://groups.google.com/group/cake-php/browse_thread/thread/f5742ea843f84ec9/d93c1eb1bb815aae?lnk=gst&q=fatal+error+allowed+memory+size+exhausted+controller+dump#d93c1eb1bb815aae

--~--~---------~--~----~------------~-------~--~----~
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+unsubscribe@googlegroups.com
For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

No comments: