No statical call to debug.
This lines was the problem:
<i><? //echo "readers: ".$number->format($top_author['readers'],
array('before' => '', 'places' => 0, 'thousands' => '.'))."<br />"; ?
></i>
As you can see, i've just commented the lines and everything works.
Just a simple number format. Why this stop everything in debug=0 but
it's ok in debug=1 or debug=2???
On 6 Nov, 20:13, cricket <[email protected]> wrote:
> On Sat, Nov 6, 2010 at 2:08 PM, Mariano C. <[email protected]> wrote:
> > I've always developed my application with debug set to 2, now I've
> > turned it to 0 and start to try it on the same machine but now all
> > actions of a specific controller are rendered in a wrong way. Only one
> > controller seems to gave me this error.
>
> > I've tried to restart server, open/close browser, same problem.
>
> > For bad render I mean, in this case, that from the entire HTML code I
> > just get the 1% of total content. No html tag, no body, no head shown,
> > nothin.... just 4 lines of code immediatly after the original <body>.
>
> > If I set debug to 1 or 2 pages are rendered perfectly without error
> > and warning.
>
> What do you mean by "4 lines of code"? Also, make sure you don't have
> any calls to Debugger class (in controller, model, or view). If debug
> is set to 0 one can't call it statically, ie. Debugger::log().
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