I rename .htaccess and index.php in cake, app and webroot and add some echo code in bootstrap.php to see what is the value of those constant. As I walk down the path and here is what I got echo back. Any idea how to get this to work! I use the latest 1.2 code that I can down from cake site. Thanks
ROOT=/home/groups/c/co/coaddons/htdocs/caketest APP_DIR=app WEBROOT_DIR=webroot WWW_ROOT=/home/groups/c/co/coaddons/htdocs/caketest/app/webroot/ CAKE_CORE_INCLUDE_PATH=/home/groups/c/co/coaddons/htdocs/caketest CORE_PATH= APP_PATH= BASE_URL=BASE_URL ROOT=/home/groups/c/co/coaddons/htdocs/caketest APP_DIR=app WEBROOT_DIR=webroot WWW_ROOT=/home/groups/c/co/coaddons/htdocs/caketest/app/webroot/ CAKE_CORE_INCLUDE_PATH=/home/groups/c/co/coaddons/htdocs/caketest CORE_PATH= APP_PATH= Notice (8): Use of undefined constant BASE_URL - assumed 'BASE_URL' [CORE/cake/bootstrap.php, line 152] Context | Code $SHELL = "/bin/bash" $SSH_CLIENT = "10.5.1.30 37356 22" $USER = "root" $PATH = "/sbin:/usr/sbin:/bin:/usr/bin:/usr/X11R6/bin" $MAIL = "/var/mail/root" $PWD = "/var/local/mastertree/service-prweb/babysitter/httpd-overload" $LANG = "en_US.UTF-8" $HOME = "/root" $SHLVL = "4" $PYTHONPATH = "/var/local/mastertree/all/babysitter" $LOGNAME = "root" $SSH_CONNECTION = "10.5.1.30 37356 10.5.1.114 22" $_ = "/sbin/initlog" $username = "puiHWbN0SE4=" $__utma = "191645736.63192200.1180416069.1183001025.1183003493.18" $__utmz = "191645736.1182832175.15.5.utmccn=(referral)| utmcsr=interactole.org|utmcct=/spaces/space.php|utmcmd=referral" $DOCUMENT_ROOT = "/var/www" $HTTP_ACCEPT = "text/xml,application/xml,application/xhtml+xml,text/ html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5" $HTTP_ACCEPT_CHARSET = "ISO-8859-1,utf-8;q=0.7,*;q=0.7" $HTTP_ACCEPT_ENCODING = "gzip,deflate" $HTTP_ACCEPT_LANGUAGE = "en-us,en;q=0.5" $HTTP_CONNECTION = "keep-alive" $HTTP_COOKIE = "username=puiHWbN0SE4%3D; __utma=191645736.63192200.1180416069.1183001025.1183003493.18; __utmz=191645736.1182832175.15.5.utmccn=(referral)| utmcsr=interactole.org|utmcct=/spaces/space.php|utmcmd=referral" $HTTP_HOST = "coaddons.sourceforge.net" $HTTP_KEEP_ALIVE = "300" $HTTP_USER_AGENT = "Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv: 1.8.1.4) Gecko/20070515 Firefox/2.0.0.4" $REDIRECT_SCRIPT_URI = "http://coaddons.sourceforge.net/caketest/app/" $REDIRECT_SCRIPT_URL = "/caketest/app/" $REDIRECT_STATUS = "200" $REDIRECT_UNIQUE_ID = "RoSKQgoDAXIAAHFnd6w" $REDIRECT_URL = "/caketest/app/" $REMOTE_ADDR = "75.92.157.30" $REMOTE_PORT = "61955" $SCRIPT_FILENAME = "/home/groups/c/co/coaddons/htdocs/caketest/app/ index.php" $SCRIPT_URI = "http://coaddons.sourceforge.net/caketest/app/" $SCRIPT_URL = "/caketest/app/" $SERVER_ADDR = "10.4.1.114" $SERVER_ADMIN = "[EMAIL PROTECTED]" $SERVER_NAME = "coaddons.sourceforge.net" $SERVER_PORT = "80" $SERVER_SIGNATURE = " Apache/1.3.33 Server at coaddons.sourceforge.net Port 80 " $SERVER_SOFTWARE = "Apache/1.3.33 (Unix) PHP/4.3.10" $UNIQUE_ID = "RoSKQgoDAXIAAHFnd6w" $GATEWAY_INTERFACE = "CGI/1.1" $SERVER_PROTOCOL = "HTTP/1.1" $REQUEST_METHOD = "GET" $QUERY_STRING = "" $REQUEST_URI = "/caketest/app/" $SCRIPT_NAME = "/caketest/app/index.php" $PATH_TRANSLATED = "/home/groups/c/co/coaddons/htdocs/caketest/app/ index.php" $PHP_SELF = "/caketest/app/index.php" $argv = array() $argc = 0 $HTTP_POST_VARS = array() $_POST = array() $HTTP_GET_VARS = array() $_GET = array() $HTTP_COOKIE_VARS = array("username" => "puiHWbN0SE4=", "__utma" => "191645736.63192200.1180416069.1183001025.1183003493.18", "__utmz" => "191645736.1182832175.15.5.utmccn=(referral)|utmcsr=interactole.org| utmcct=/spaces/space.php|utmcmd=referral") $_COOKIE = array("username" => "puiHWbN0SE4=", "__utma" => "191645736.63192200.1180416069.1183001025.1183003493.18", "__utmz" => "191645736.1182832175.15.5.utmccn=(referral)|utmcsr=interactole.org| utmcct=/spaces/space.php|utmcmd=referral") $HTTP_SERVER_VARS = array("DOCUMENT_ROOT" => "/var/www", "HTTP_ACCEPT" => "text/xml,application/xml,application/xhtml+xml,text/ html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5", "HTTP_ACCEPT_CHARSET" => "ISO-8859-1,utf-8;q=0.7,*;q=0.7", "HTTP_ACCEPT_ENCODING" => "gzip,deflate", "HTTP_ACCEPT_LANGUAGE" => "en-us,en;q=0.5", "HTTP_CONNECTION" => "keep-alive", "HTTP_COOKIE" => "username=puiHWbN0SE4%3D; __utma=191645736.63192200.1180416069.1183001025.1183003493.18; __utmz=191645736.1182832175.15.5.utmccn=(referral)| utmcsr=interactole.org|utmcct=/spaces/space.php|utmcmd=referral", "HTTP_HOST" => "coaddons.sourceforge.net", "HTTP_KEEP_ALIVE" => "300", "HTTP_USER_AGENT" => "Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.8.1.4) Gecko/20070515 Firefox/2.0.0.4", "PATH" => "/sbin:/usr/ sbin:/bin:/usr/bin:/usr/X11R6/bin", "REDIRECT_SCRIPT_URI" => "http:// coaddons.sourceforge.net/caketest/app/", "REDIRECT_SCRIPT_URL" => "/ caketest/app/", "REDIRECT_STATUS" => "200", "REDIRECT_UNIQUE_ID" => "RoSKQgoDAXIAAHFnd6w", "REDIRECT_URL" => "/caketest/app/", "REMOTE_ADDR" => "75.92.157.30", "REMOTE_PORT" => "61955", "SCRIPT_FILENAME" => "/home/groups/c/co/coaddons/htdocs/caketest/app/ index.php", "SCRIPT_URI" => "http://coaddons.sourceforge.net/caketest/ app/", "SCRIPT_URL" => "/caketest/app/", "SERVER_ADDR" => "10.4.1.114", "SERVER_ADMIN" => "[EMAIL PROTECTED]", "SERVER_NAME" => "coaddons.sourceforge.net", "SERVER_PORT" => "80", "SERVER_SIGNATURE" => " Apache/1.3.33 Server at coaddons.sourceforge.net Port 80 ", "SERVER_SOFTWARE" => "Apache/1.3.33 (Unix) PHP/4.3.10", "UNIQUE_ID" => "RoSKQgoDAXIAAHFnd6w", "GATEWAY_INTERFACE" => "CGI/1.1", "SERVER_PROTOCOL" => "HTTP/1.1", "REQUEST_METHOD" => "GET", "QUERY_STRING" => "", "REQUEST_URI" => "/caketest/app/", "SCRIPT_NAME" => "/caketest/app/index.php", "PATH_TRANSLATED" => "/home/groups/c/co/ coaddons/htdocs/caketest/app/index.php", "PHP_SELF" => "/caketest/app/ index.php", "argv" => array, "argc" => 0) $_SERVER = array("DOCUMENT_ROOT" => "/var/www", "HTTP_ACCEPT" => "text/ xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/ plain;q=0.8,image/png,*/*;q=0.5", "HTTP_ACCEPT_CHARSET" => "ISO-8859-1,utf-8;q=0.7,*;q=0.7", "HTTP_ACCEPT_ENCODING" => "gzip,deflate", "HTTP_ACCEPT_LANGUAGE" => "en-us,en;q=0.5", "HTTP_CONNECTION" => "keep-alive", "HTTP_COOKIE" => "username=puiHWbN0SE4%3D; __utma=191645736.63192200.1180416069.1183001025.1183003493.18; __utmz=191645736.1182832175.15.5.utmccn=(referral)| utmcsr=interactole.org|utmcct=/spaces/space.php|utmcmd=referral", "HTTP_HOST" => "coaddons.sourceforge.net", "HTTP_KEEP_ALIVE" => "300", "HTTP_USER_AGENT" => "Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.8.1.4) Gecko/20070515 Firefox/2.0.0.4", "PATH" => "/sbin:/usr/ sbin:/bin:/usr/bin:/usr/X11R6/bin", "REDIRECT_SCRIPT_URI" => "http:// coaddons.sourceforge.net/caketest/app/", "REDIRECT_SCRIPT_URL" => "/ caketest/app/", "REDIRECT_STATUS" => "200", "REDIRECT_UNIQUE_ID" => "RoSKQgoDAXIAAHFnd6w", "REDIRECT_URL" => "/caketest/app/", "REMOTE_ADDR" => "75.92.157.30", "REMOTE_PORT" => "61955", "SCRIPT_FILENAME" => "/home/groups/c/co/coaddons/htdocs/caketest/app/ index.php", "SCRIPT_URI" => "http://coaddons.sourceforge.net/caketest/ app/", "SCRIPT_URL" => "/caketest/app/", "SERVER_ADDR" => "10.4.1.114", "SERVER_ADMIN" => "[EMAIL PROTECTED]", "SERVER_NAME" => "coaddons.sourceforge.net", "SERVER_PORT" => "80", "SERVER_SIGNATURE" => " Apache/1.3.33 Server at coaddons.sourceforge.net Port 80 ", "SERVER_SOFTWARE" => "Apache/1.3.33 (Unix) PHP/4.3.10", "UNIQUE_ID" => "RoSKQgoDAXIAAHFnd6w", "GATEWAY_INTERFACE" => "CGI/1.1", "SERVER_PROTOCOL" => "HTTP/1.1", "REQUEST_METHOD" => "GET", "QUERY_STRING" => "", "REQUEST_URI" => "/caketest/app/", "SCRIPT_NAME" => "/caketest/app/index.php", "PATH_TRANSLATED" => "/home/groups/c/co/ coaddons/htdocs/caketest/app/index.php", "PHP_SELF" => "/caketest/app/ index.php", "argv" => array, "argc" => 0) $HTTP_ENV_VARS = array("SHELL" => "/bin/bash", "SSH_CLIENT" => "10.5.1.30 37356 22", "USER" => "root", "PATH" => "/sbin:/usr/sbin:/ bin:/usr/bin:/usr/X11R6/bin", "MAIL" => "/var/mail/root", "PWD" => "/ var/local/mastertree/service-prweb/babysitter/httpd-overload", "LANG" => "en_US.UTF-8", "HOME" => "/root", "SHLVL" => "4", "PYTHONPATH" => "/ var/local/mastertree/all/babysitter", "LOGNAME" => "root", "SSH_CONNECTION" => "10.5.1.30 37356 10.5.1.114 22", "_" => "/sbin/ initlog") $_ENV = array("SHELL" => "/bin/bash", "SSH_CLIENT" => "10.5.1.30 37356 22", "USER" => "root", "PATH" => "/sbin:/usr/sbin:/bin:/usr/bin:/usr/ X11R6/bin", "MAIL" => "/var/mail/root", "PWD" => "/var/local/ mastertree/service-prweb/babysitter/httpd-overload", "LANG" => "en_US.UTF-8", "HOME" => "/root", "SHLVL" => "4", "PYTHONPATH" => "/ var/local/mastertree/all/babysitter", "LOGNAME" => "root", "SSH_CONNECTION" => "10.5.1.30 37356 10.5.1.114 22", "_" => "/sbin/ initlog") $HTTP_POST_FILES = array() $_FILES = array() $_REQUEST = array("username" => "puiHWbN0SE4=", "__utma" => "191645736.63192200.1180416069.1183001025.1183003493.18", "__utmz" => "191645736.1182832175.15.5.utmccn=(referral)|utmcsr=interactole.org| utmcct=/spaces/space.php|utmcmd=referral") $cakeCache = array(0 => "File") $TIME_START = 1183091266.6243 $paths = configure object $cache = "File" $settings = array() $url = null $folders = array("js" => "text/javascript", "css" => "text/css") $requestPath = array(0 => "") echo "<br />CAKE_CORE_INCLUDE_PATH=".CAKE_CORE_INCLUDE_PATH; echo "<br />CORE_PATH=".CORE_PATH; echo "<br />APP_PATH=".APP_PATH; echo "<br />BASE_URL=".BASE_URL; echo "<br />"; unknown - [internal], line ?? include - CORE/cake/bootstrap.php, line 152 require - CORE/app/webroot/index.php, line 77 [main] - CORE/app/index.php, line 25 BASE_URL=BASE_URL Notice (8): Use of undefined constant BASE_URL - assumed 'BASE_URL' [CORE/cake/dispatcher.php, line 459] Context | Code $this = dispatcher object $htaccess = null $base = false $htaccess = null; $base = $this->admin; $this->webroot = ''; e(BASE_URL); baseurl - [internal], line ?? dispatcher::baseurl() - CORE/cake/dispatcher.php, line 459 dispatcher::dispatch() - CORE/cake/dispatcher.php, line 89 require - CORE/app/webroot/index.php, line 83 [main] - CORE/app/index.php, line 25 BASE_URL Warning (2): session_start() [function.session-start]: Cannot send session cookie - headers already sent by (output started at /home/ groups/c/co/coaddons/htdocs/caketest/app/ On Jun 28, 4:24 pm, Geoff Ford <[EMAIL PROTECTED]> wrote: > Ok just noticed that it is a different problem - did you get > mod_rewrite to work properly? > > Your new problem is a path definition error. > 3. Error notes: File does not exist: /home/groups/c/co/coaddons/htdocs/ > home/groups/c/co/coaddons/htdocs/caketest/app/webroot/pages/hello > Its got your base in there twice for some reason. You may need to > look at the path defines in index.php and make sure they are correct. > > Also try getting the latest revision of 1.2. > > Geoff > --http://lemoncake.wordpress.com > > On Jun 29, 9:16 am, Geoff Ford <[EMAIL PROTECTED]> wrote: > > > Have we not been through mod_rewrite on sourceforge with you before > > >http://groups.google.com/group/cake-php/browse_thread/thread/13576f09... > > > On Jun 29, 8:36 am, "chanh.ong" <[EMAIL PROTECTED]> wrote: > > > > The only other change that I made is the database.php and turn on > > > debug and admin in the core.php. That's it! > > > > On Jun 28, 3:32 pm, "chanh.ong" <[EMAIL PROTECTED]> wrote: > > > > > I had to change the paths.php to this so that I can write to a place > > > > where it has permission: > > > > define ('TMP', > > > > DS.'tmp'.DS.'persistent'.DS.'coaddons'.DS.'tmp'.DS); > > > > > I turn on mod_rewrite and this is what I got: > > > > > 1. Server: coaddons.sourceforge.net > > > > 2. URL path: /home/groups/c/co/coaddons/htdocs/caketest/app/webroot/ > > > > pages/hello > > > > 3. Error notes: File does not exist: /home/groups/c/co/coaddons/htdocs/ > > > > home/groups/c/co/coaddons/htdocs/caketest/app/webroot/pages/hello > > > > 4. Error type: 404 > > > > 5. Request method: GET > > > > 6. Request query string: > > > > 7. Time: 2007-06-28 15:26:26 PDT (1183069586) > > > > > It looks like something do a double path to the file, not sure where > > > > it does that!! > > > > > Thanks > > > > > On Jun 28, 2:01 pm, francky06l <[EMAIL PROTECTED]> wrote: > > > > > > mod-rewrite problem ? > > > > > Check if you can enable it, also your .htaccess in webroot. > > > > > > On Jun 28, 3:28 pm, "chanh.ong" <[EMAIL PROTECTED]> wrote: > > > > > > > I have this file in my cake 1.2alpha > > > > > > /home/groups/c/co/coaddons/htdocs/caketest/app/views/pages/hello.thtml > > > > > > > But I got this error when try to access my hello page using this > > > > > > urlhttp://coaddons.sourceforge.net/caketest/pages/hello > > > > > > > An error has been encountered in accessing this page > > > > > > > 1. Server: coaddons.sourceforge.net > > > > > > 2. URL path: /caketest/pages/hello. > > > > > > 3. Error notes: File does not exist: > > > > > > /home/groups/c/co/coaddons/htdocs/ > > > > > > caketest/pages/hello. > > > > > > 4. Error type: 404 > > > > > > 5. Request method: GET > > > > > > 6. Request query string: > > > > > > 7. Time: 2007-06-28 06:15:18 PDT (1183036518) > > > > > > > Note the 1st line is the physical location of the file and the 2nd > > > > > > is > > > > > > access from url with the error. > > > > > > /home/groups/c/co/coaddons/htdocs/caketest/app/views/pages/hello.thtml > > > > > > /home/groups/c/co/coaddons/htdocs/caketest/pages/hello > > > > > > > My question is why Cake 1.2alpha can't find the file. > > > > > > > Am I missing something real simple here! > > > > > > > Thanks --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
