Re: Memory exhaustion issue with a single controller/model

2011-02-16 Thread MissYeh
Not sure how your relationships work .. but could that uncommented 
relationship perhaps create an infinite loop?

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


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


Memory exhaustion issue with a single controller/model

2011-02-16 Thread Xoubaman
I'm getting a exhausted memory fatal error when accessing a
controller, no matter how many memory is set in php.ini (well, just
set it to 500+ MB and get also exhausted, but I think it will consume
all the memory in the universe).

Following what AD7six said in

http://groups.google.com/group/cake-php/browse_thread/thread/75b72a3808e2a7ca/d8d937a966751732?hl=en&lnk=gst&q=allocated+memory#d8d937a966751732

I put a debug(Debugger::trace()) near the crash line, and get the
following:

require - CORE\cake\libs\debugger.php, line 36
Configure::write() - CORE\cake\libs\configure.php, line 115
include - APP\config\core.php, line 36
Configure::__loadBootstrap() - CORE\cake\libs\configure.php, line 392
Configure::getInstance() - CORE\cake\libs\configure.php, line 52
include - CORE\cake\bootstrap.php, line 38
[main] - APP\webroot\index.php, line 76

Sadly, I don't get the point with this output. It doesn't look to
involve model at all, does it?

If I remove all the relations from the associated model, it works.
It's not a heavy related model, just five belongsTo and one HABTM. But
leaving uncommented just one relation gives back the memory problem.

The action it's also empty, no query takes place, and every other
controller works fine.

Any idea?

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


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