Wednesday, August 24, 2011

Re: debug level on ajax request

Fixing warnings and notices is not the answer to his question--With debug mode off, he should not be getting such messages displayed. At worse, he should be seeing formatted Cake errors or simply a blank page if something is wrong.

Perhaps the warnings/notices/errors are being thrown before you call Configure::write('debug', 0); ? If so, try calling it earlier in your code.

Or perhaps something else is changing the value of debug back to 1 or greater?

You could echo something from inside that if() block to make sure it is actually hitting the code which sets the debug value to 0.

Beyond that, I don't know what else to have you try :)

Ben

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

No comments: