I have had some similar problems with a fresh vanilla 1.2, the url's
aren't rewritten properly when I use the BASE_URL approach.
What I just noticed is that env("SCRIPT_NAME") DOES NOT equal
$_SERVER['SCRIPT_NAME'] for some reason.
I altered the define to use $_SERVER['SCRIPT_NAME'] and now it works.

This must be a bug?! Please let me know.

On 3 Juli, 00:39, Geoff Ford <[EMAIL PROTECTED]> wrote:
> Whitspace at the end of the index.php is the likely culprit.
>
> Geoff
> --http://lemoncake.wordpress.com
>
> On Jul 3, 12:36 am, "chanh.ong" <[EMAIL PROTECTED]> wrote:
>
> > I now clean up all of cake1.2to be the default and able to setup my
> > sourceforge site with a symlink from app/tmp to the folder that it has
> > write permission no more tweak in the path and anything so as far I
> > can tell it is a plain cake install.
>
> > I only add one line in .htaccess to have a rewritebase /caketest but
> > still get this error in the error.log so I think it is something in
> >1.2alpha that has change the way it handle the session and here is the
> > content of my error.log.  As soon as I hit the caketest site the error
> > log go from empty to have these 3 records.
>
> > 2007-07-02 07:28:45 Warning: Warning (2): session_start() [<a
> > href='http://php.net/function.session-start'>function.session-start</
> > a>]: Cannot send session cookie - headers already sent by (output
> > started at /home/groups/c/co/coaddons/htdocs/caketest/app/webroot/
> > index.php:78) in [CORE/cake/libs/session.php, line 154]
> > 2007-07-02 07:28:45 Warning: Warning (2): session_start() [<a
> > href='http://php.net/function.session-start'>function.session-start</
> > a>]: Cannot send session cache limiter - headers already sent (output
> > started at /home/groups/c/co/coaddons/htdocs/caketest/app/webroot/
> > index.php:78) in [CORE/cake/libs/session.php, line 154]
> > 2007-07-02 07:28:45 Warning: Warning (2): Cannot modify header
> > information - headers already sent by (output started at /home/groups/
> > c/co/coaddons/htdocs/caketest/app/webroot/index.php:78) in [CORE/cake/
> > libs/session.php, line 155]
>
> > Any one have any idea why this session errors occur in Cake1.2alpha.
>
> > Thanks
>
> > On Jul 1, 9:30 am, "chanh.ong" <[EMAIL PROTECTED]> wrote:
>
> > > With AD7six suggestion I found out some extra space on bootstrap that
> > > cause the error log and now it goes back to the original problem of
> > > just having a blank page.
>
> > > I really love to be able to get to the bottom of this puzzle.
>
> > > Thanks
>
> > > On Jun 29, 10:15 pm, "chanh.ong" <[EMAIL PROTECTED]> wrote:
>
> > > > Thanks for trying but it makes no diff!
>
> > > > 2.URLpath: /home/groups/c/co/coaddons/htdocs/caketest/app/webroot/
> > > > 3. Error notes: File does not exist: /home/groups/c/co/coaddons/htdocs/
> > > > home/groups/c/co/coaddons/htdocs/caketest/app/webroot/
>
> > > > On Jun 29, 7:10 pm,GeoffFord<[EMAIL PROTECTED]> wrote:
>
> > > > > In .htaccess put the FULL PATH to your caketest directory as
> > > > > rewritebase
>
> > > > > Putting /caketest will make it look in the system root dir for the
> > > > > caketest folder
>
> > > > > On Jun 30, 6:16 am, "chanh.ong" <[EMAIL PROTECTED]> wrote:
>
> > > > > > I found something in the error.log but not sure what it meas.
>
> > > > > > Please take a look at this bin and let me know if you can spot
> > > > > > something.http://bin.cakephp.org/view/663507278
>
> > > > > > Thanks
>
> > > > > > On Jun 29, 1:00 pm, "chanh.ong" <[EMAIL PROTECTED]> wrote:
>
> > > > > > > On the good news, with this rewritebase set to my cake folder then
> > > > > > > Cake 1.1 work fine for mod_rewrite on or off at my sourceforge.net
> > > > > > > site.
>
> > > > > > > So there is something different on Cake1.2alpha to Cake 1.1
>
> > > > > > > I would love to be able to figure out the different.  Who knows!
>
> > > > > > > On Jun 29, 12:28 pm, "chanh.ong" <[EMAIL PROTECTED]> wrote:
>
> > > > > > > > That is interesting suggestion!
>
> > > > > > > > I put rewritebase /caketest on all .htaccess and I got a blank 
> > > > > > > > page
> > > > > > > > just like I got start.
>
> > > > > > > > But I do get something in the process if I put a e(BASE_URL) in 
> > > > > > > > the
> > > > > > > > dispatcher.php and I got something more than just a blank page.
>
> > > > > > > > Please take a look at this bin to see if you get spot something.
>
> > > > > > > >http://bin.cakephp.org/view/663507278
>
> > > > > > > > With: rewritebase /caketest
> > > > > > > > /home/groups/c/co/coaddons/htdocs/app/webroot/pages/hello
>
> > > > > > > > With no: rewritebase /caketest
> > > > > > > > /home/groups/c/co/coaddons/htdocs/home/groups/c/co/coaddons/htdocs/
> > > > > > > > caketest/app/webroot/pages/hello
>
> > > > > > > > It is getting closer!
>
> > > > > > > > Thanks
>
> > > > > > > > On Jun 29, 11:06 am, francky06l <[EMAIL PROTECTED]> wrote:
>
> > > > > > > > > So.. back to the beginning then  --> mod_rewrite
>
> > > > > > > > > Just to share a problem I had with one of my hosting 
> > > > > > > > > provider, to make
> > > > > > > > > mod_rewrite works I had to add "rewriteBase /" into .htaccess.
>
> > > > > > > > > On Jun 29, 5:10 pm, "chanh.ong" <[EMAIL PROTECTED]> wrote:
>
> > > > > > > > > > Yes, it is part of the disable and enable mod_rewrite.  I 
> > > > > > > > > > have a
> > > > > > > > > > script to rename all .htaccess and edit core.php to 
> > > > > > > > > > uncomment or
> > > > > > > > > > comment that line.
>
> > > > > > > > > > One other thing I note is on sourceforge it use mmcache 
> > > > > > > > > > where there is
> > > > > > > > > > nothing in Cake configuration to set for it.
>
> > > > > > > > > > Now that I figure out the docroot and put everything back 
> > > > > > > > > > to the
> > > > > > > > > > original setting and now I got the blank page just like I 
> > > > > > > > > > started a
> > > > > > > > > > few weeks ago with Cake1.2alpha when turn off mod_rewrite 
> > > > > > > > > > and when
> > > > > > > > > > turn mod_rewirte on then I got that error that I posted.
>
> > > > > > > > > > So, to sum it up!
> > > > > > > > > > In Cake1.2alpha:
> > > > > > > > > > . Mod_rewirte off: I will get a blank page
> > > > > > > > > > . Mod_rewrite on:  I will get this:
> > > > > > > > > > /home/groups/c/co/coaddons/htdocs/home/groups/c/co/coaddons/htdocs/
> > > > > > > > > > caketest/app/webroot/pages/hello
>
> > > > > > > > > > In Cake 1.1
> > > > > > > > > > . Mod_rewrite off:  It works!
> > > > > > > > > > . Mod_rewirte on: I will get this:
> > > > > > > > > > /home/groups/c/co/coaddons/htdocs/home/groups/c/co/coaddons/htdocs/
> > > > > > > > > > cake/app/webroot/pages/hello
>
> > > > > > > > > > PS: I think may be the mmcache is causing me lot of 
> > > > > > > > > > headache here!
>
> > > > > > > > > > Thanks
>
> > > > > > > > > > On Jun 29, 7:40 am, "chanh.ong" <[EMAIL PROTECTED]> wrote:
>
> > > > > > > > > > > I found something very interesting!
>
> > > > > > > > > > > In Cake 1.1 if I turn off mod_rewrite Cake 1.1 works but 
> > > > > > > > > > > I will get
> > > > > > > > > > > the same problem like Cake1.2alpha when I turn on 
> > > > > > > > > > > mod_rewrite.
>
> > > > > > > > > > > So, the real problem here is when the mod_rewrite in turn 
> > > > > > > > > > > on the path
> > > > > > > > > > > got double up in both version of Cake 1.1 and1.2like this:
> > > > > > > > > > >  
> > > > > > > > > > > /home/groups/c/co/coaddons/htdocs/home/groups/c/co/coaddons/htdocs/
> > > > > > > > > > > cake/app/webroot/pages/hello
>
> > > > > > > > > > > Here is 
> > > > > > > > > > > theurl:http://coaddons.sourceforge.net/cake/pages/hello
>
> > > > > > > > > > > An error has been encountered in accessing this page.
>
> > > > > > > > > > > 1. Server: coaddons.sourceforge.net
> > > > > > > > > > > 2.URLpath: 
> > > > > > > > > > > /home/groups/c/co/coaddons/htdocs/cake/app/webroot/pages/
> > > > > > > > > > > hello
> > > > > > > > > > > 3. Error notes: File does not exist: 
> > > > > > > > > > > /home/groups/c/co/coaddons/htdocs/
> > > > > > > > > > > home/groups/c/co/coaddons/htdocs/cake/app/webroot/pages/hello
> > > > > > > > > > > 4. Error type: 404
> > > > > > > > > > > 5. Request method: GET
> > > > > > > > > > > 6. Request query string:
> > > > > > > > > > > 7. Time: 2007-06-29 07:36:23 PDT (1183127783)
>
> > > > > > > > > > > On Jun 29, 7:29 am, "chanh.ong" <[EMAIL PROTECTED]> wrote:
>
> > > > > > > > > > > > Look like I found the different between why cake1.2work 
> > > > > > > > > > > > on one site
> > > > > > > > > > > > but does not work on sourceforge.net is the
> > > > > > > > > > > > DOCUMENT_ROOT   /var/www
> > > > > > > > > > > > where my docroot is: /home/groups/c/co/coaddons/htdocs/
>
> > > > > > > > > > > > On my other host that Cake1.2work fine where 
> > > > > > > > > > > > DOCUMENT_ROOT match my
> > > > > > > > > > > > docroot.
>
> > > > > > > > > > > > On interesting thing to note is Cake 1.1 work fine on 
> > > > > > > > > > > > sourceforge.net
> > > > > > > > > > > > but not Cake1.2alpha so there might be a change on how 
> > > > > > > > > > > > the
> > > > > > > > > > > > "DOCUMENT_ROOT" are parse in Cake1.2alpha???
>
> > > > > > > > > > > > On Jun 29, 7:17 am, "chanh.ong" <[EMAIL PROTECTED]> 
> > > > > > > > > > > > wrote:
>
> > > > > > > > > > > > > Well, you know I did start out really simple by stick 
> > > > > > > > > > > > > with just the
> > > > > > > > > > > > > stock install but all I got was a blank page and put 
> > > > > > > > > > > > > a thread here and
> > > > > > > > > > > > > irc if any could help but nada.  After wait for a few 
> > > > > > > > > > > > > days or perhaps
> > > > > > > > > > > > > a weeks then that is when I starting to look around 
> > > > > > > > > > > > > and digging.
>
> > > > > > > > > > > > > I test it on several machine and server with cake 
> > > > > > > > > > > > > with different
> > > > > > > > > > > > > version and I do one thing at a time.  What you see 
> > > > > > > > > > > > > are just the
> > > > > > > > > > > > > result of all the times that I already spend digging, 
> > > > > > > > > > > > > researching,
> > > > > > > > > > > > > etc.
>
> > > > > > > > > > > > > I provide support to people and most people just put 
> > > > > > > > > > > > > a little line say
> > > > > > > > > > > > > they have problem and not detail and that is very 
> > > > > > > > > > > > > tough to help them
> > > > > > > > > > > > > so that is why I tend to provide as much detail as 
> > > > > > > > > > > > > possible so that
> > > > > > > > > > > > > people will see what I see.  If the information is 
> > > > > > > > > > > > > not what you are
> > > > > > > > > > > > > looking for you can easily scroll through them with 
> > > > > > > > > > > > > the wheel mouse
> > > > > > > > > > > > > now a day!
>
> > > > > > > > > > > > > It is better to provide as much information as 
> > > > > > > > > > > > > possible so that people
> > > > > > > > > > > > > don't have to post several email just to dig for more 
> > > > > > > > > > > > > information.
>
> > > > > > > > > > > > > I already spend enormous amount of time trying to 
> > > > > > > > > > > > > solve it myself but
> > > > > > > > > > > > > in the end I post here in hoping someone will offer 
> > > > > > > > > > > > > some help!
>
> > > > > > > > > > > > > Do you have a specific suggestion on how to solve the 
> > > > > > > > > > > > > problem?
>
> > > > > > > > > > > > > Thanks
>
> > > > > > > > > > > > > On Jun 29, 7:03 am, "Chris Hartjes" <[EMAIL 
> > > > > > > > > > > > > PROTECTED]> wrote:
>
> > > > > > > > > > > > > > On 6/29/07, chanh.ong
>
> ...
>
> läs mer >>


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" 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
-~----------~----~----~----~------~----~------~--~---

Reply via email to