Sunday, November 7, 2010

Re: Mistaken render when debug is set to 0 (all ok if I re.set on 2)

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 <zijn.digi...@gmail.com> wrote:
> On Sat, Nov 6, 2010 at 2:08 PM, Mariano C. <mariano.calan...@gmail.com> 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 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

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate