it was set to 2 but AjaxHandler component was setting it back to 0 -
disabled it and found out that the problem was coming from a missing file in
the live server - rookie error :o)

thanks a lot for that



On Thu, Oct 29, 2009 at 4:04 AM, Dr. Loboto <drlob...@gmail.com> wrote:

>
> Set debug to at least 1 (and no matter that it is ajax) to see error.
>
> On Oct 28, 10:34 pm, Thanos Atskakanis
> <thanos.atskaka...@googlemail.com> wrote:
> > Hi all,
> >
> > I am currently building a CMS and my system does some ajax requests which
> > return some html: simple and nice.
> > When I run it locally it all works fine but when I put it live instead of
> > the expected html I get "null". Not "Not found" or any other error, just
> the
> > word "null".
> >
> > All I use is the RequestHandler component and the following line of code:
> > $this->render('/path/to/element');
> > I also use milesjohnson's AjaxHandler component somewhere else in my
> > controller, but it doesn't seem to be the problem because I tested
> without
> > it and everything was fine...
> >
> > Here are the response headers I get in both servers:
> >
> > Live ("null" response):
> >
> > DateWed, 28 Oct 2009 16:08:26
> GMTServerApacheX-Powered-ByPHP/5.2.11P3PCP="NOI
> > ADM DEV PSAi COM NAV OUR OTRo STP IND DEM"Set-CookieCAKEPHP=deleted;
> > expires=Tue, 28-Oct-2008 16:08:26 GMT; path=/
> > CAKEPHP=0svbs500eu74f9613mjd02sn71;
> > path=/Content-Length4ConnectioncloseContent-Typetext/html; charset=UTF-8
> >
> > Locally (normal html response):
> >
> > DateWed, 28 Oct 2009 16:08:35 GMTServerApache/2.2.12 (Ubuntu)X-Powered-By
> > PHP/5.2.10-2ubuntu4P3PCP="NOI ADM DEV PSAi COM NAV OUR OTRo STP IND DEM"
> > Set-CookieCAKEPHP=deleted; expires=Tue, 28-Oct-2008 16:08:35 GMT;
> > path=/johnross CAKEPHP=c37700dbbbf3d009cfa920695637118a; path=/mypathVary
> > Accept-EncodingContent-EncodinggzipContent-Length50Keep-Alivetimeout=15,
> > max=87ConnectionKeep-AliveContent-Typetext/html; charset=UTF-8
> >
> > Anyone who came across a similar situation?
> >
> > Thanks,
> > Thanos
> >
>

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

Reply via email to