Re: Deployment Issues
Just a question: are you testing with IE7? There have been a couple of posts recently where people were having problems with IE7 and Auth (you can search the group and find the posts). My app_controller has the following setup in the beforeFilter: /* * Set up the Auth component so that we get redirected if we try to * go to a page that isn't open. * */ function beforeFilter(){ //Configure AuthComponent $this->Auth->authorize = 'actions'; $this->Auth->loginAction = array( 'admin' => false, 'prefix' => false, 'plugin' => null, 'controller' => 'users', 'action' => 'login' ); $this->Auth->loginError = 'Invalid user name / password combination'; $this->Auth->actionPath = 'controllers/'; $this->Auth->fields = array('username' => 'user_name', 'password' => 'user_password'); if ($this->Auth->user('user_name') == 'admin'){ $this->Auth->allowedActions = array('*'); } else{ $this->Auth->allowedActions = array('display'); } if ($this->params['url']['ext'] == 'xml'){ // Set debug to 1 if it is greater so that // we get an XML response ... if (Configure::read() > 1) { Configure::write('debug',1); } } } Note that you have to have 'display' as an allowed action or you won't get the login page. On Jan 11, 5:16 pm, "Chad Casselman" wrote: > I am 99.9% sure that mod_rewrite is working. I haven't ever had > trouble with it before and would it work when allow all was on if > htaccess wasn't working. It is only the users/login that is not > mapped or mapping correctly. > > Chad > > On Sun, Jan 11, 2009 at 3:19 PM, Webweave wrote: > > > Sounds like you may have a problem with your .htaccess or routing. > > > Are you using the default .htaccess files ? > > > Is mod_rewrite enabled ? > > > On Jan 10, 5:35 pm, "Chad Casselman" wrote: > >> I have been developing my first cake app locally for the past few > >> days. I uploaded the files to my dedicated server as following: > > >> .htaccess > >> index.php > >> /app > >> /cake > >> /vendors > > >> When I hit the url I get users/login can't be found. Yes, I am using > >> basic Auth. To me this means that it executed enough to do the > >> redirect and then died. Mod Rewrite is working, but I am getting some > >> weird results. > > >> I get the correct login form if I go to /app/users/login but of course > >> it posts to /users/login > > >> If I tell Auth to allow all, then everything works right like > >> /customers etc. etc, EXCEPT /users/login url is still 404. My login > >> functions in users controller is empty using the automagic. > > >> function login() { > >> // No form processing needed, Auth does it automatically > >> $this->pageTitle = "Please Login!"; > >> } > > >> To me this appears to be something wrong with Auth. Can anyone help > >> me get this working? This is the 1.2 final release. > > >> Chad > > --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Re: Deployment Issues
You should NOT allow the login action. --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Re: Deployment Issues
I am 99.9% sure that mod_rewrite is working. I haven't ever had trouble with it before and would it work when allow all was on if htaccess wasn't working. It is only the users/login that is not mapped or mapping correctly. Chad On Sun, Jan 11, 2009 at 3:19 PM, Webweave wrote: > > Sounds like you may have a problem with your .htaccess or routing. > > Are you using the default .htaccess files ? > > Is mod_rewrite enabled ? > > On Jan 10, 5:35 pm, "Chad Casselman" wrote: >> I have been developing my first cake app locally for the past few >> days. I uploaded the files to my dedicated server as following: >> >> .htaccess >> index.php >> /app >> /cake >> /vendors >> >> When I hit the url I get users/login can't be found. Yes, I am using >> basic Auth. To me this means that it executed enough to do the >> redirect and then died. Mod Rewrite is working, but I am getting some >> weird results. >> >> I get the correct login form if I go to /app/users/login but of course >> it posts to /users/login >> >> If I tell Auth to allow all, then everything works right like >> /customers etc. etc, EXCEPT /users/login url is still 404. My login >> functions in users controller is empty using the automagic. >> >> function login() { >> // No form processing needed, Auth does it automatically >> $this->pageTitle = "Please Login!"; >> } >> >> To me this appears to be something wrong with Auth. Can anyone help >> me get this working? This is the 1.2 final release. >> >> Chad > > > --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Re: Deployment Issues
$this->Auth->allowedActions = array('*'); Is how I allow all. Chad On Sun, Jan 11, 2009 at 12:44 PM, Pascal Messana wrote: > > Hi, > > When you say " If I tell Auth to allow all ", why do you do exactly > (paste the code) ? Do you use the * or do you specify each action ? > > On 11 jan, 17:17, TheChad7 wrote: >> Am I the only one that has had this issue? >> >> Any suggestions? >> >> Chad >> >> On Jan 10, 8:35 pm, "Chad Casselman" wrote: >> >> > I have been developing my first cake app locally for the past few >> > days. I uploaded the files to my dedicated server as following: >> >> > .htaccess >> > index.php >> > /app >> > /cake >> > /vendors >> >> > When I hit the url I get users/login can't be found. Yes, I am using >> > basic Auth. To me this means that it executed enough to do the >> > redirect and then died. Mod Rewrite is working, but I am getting some >> > weird results. >> >> > I get the correct login form if I go to /app/users/login but of course >> > it posts to /users/login >> >> > If I tell Auth to allow all, then everything works right like >> > /customers etc. etc, EXCEPT /users/login url is still 404. My login >> > functions in users controller is empty using the automagic. >> >> > function login() { >> > // No form processing needed, Auth does it automatically >> > $this->pageTitle = "Please Login!"; >> > } >> >> > To me this appears to be something wrong with Auth. Can anyone help >> > me get this working? This is the 1.2 final release. >> >> > Chad > > > --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Re: Deployment Issues
Sounds like you may have a problem with your .htaccess or routing. Are you using the default .htaccess files ? Is mod_rewrite enabled ? On Jan 10, 5:35 pm, "Chad Casselman" wrote: > I have been developing my first cake app locally for the past few > days. I uploaded the files to my dedicated server as following: > > .htaccess > index.php > /app > /cake > /vendors > > When I hit the url I get users/login can't be found. Yes, I am using > basic Auth. To me this means that it executed enough to do the > redirect and then died. Mod Rewrite is working, but I am getting some > weird results. > > I get the correct login form if I go to /app/users/login but of course > it posts to /users/login > > If I tell Auth to allow all, then everything works right like > /customers etc. etc, EXCEPT /users/login url is still 404. My login > functions in users controller is empty using the automagic. > > function login() { > // No form processing needed, Auth does it automatically > $this->pageTitle = "Please Login!"; > } > > To me this appears to be something wrong with Auth. Can anyone help > me get this working? This is the 1.2 final release. > > Chad --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Re: Deployment Issues
Hi, When you say " If I tell Auth to allow all ", why do you do exactly (paste the code) ? Do you use the * or do you specify each action ? On 11 jan, 17:17, TheChad7 wrote: > Am I the only one that has had this issue? > > Any suggestions? > > Chad > > On Jan 10, 8:35 pm, "Chad Casselman" wrote: > > > I have been developing my first cake app locally for the past few > > days. I uploaded the files to my dedicated server as following: > > > .htaccess > > index.php > > /app > > /cake > > /vendors > > > When I hit the url I get users/login can't be found. Yes, I am using > > basic Auth. To me this means that it executed enough to do the > > redirect and then died. Mod Rewrite is working, but I am getting some > > weird results. > > > I get the correct login form if I go to /app/users/login but of course > > it posts to /users/login > > > If I tell Auth to allow all, then everything works right like > > /customers etc. etc, EXCEPT /users/login url is still 404. My login > > functions in users controller is empty using the automagic. > > > function login() { > > // No form processing needed, Auth does it automatically > > $this->pageTitle = "Please Login!"; > > } > > > To me this appears to be something wrong with Auth. Can anyone help > > me get this working? This is the 1.2 final release. > > > Chad --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Re: Deployment Issues
Am I the only one that has had this issue? Any suggestions? Chad On Jan 10, 8:35 pm, "Chad Casselman" wrote: > I have been developing my first cake app locally for the past few > days. I uploaded the files to my dedicated server as following: > > .htaccess > index.php > /app > /cake > /vendors > > When I hit the url I get users/login can't be found. Yes, I am using > basic Auth. To me this means that it executed enough to do the > redirect and then died. Mod Rewrite is working, but I am getting some > weird results. > > I get the correct login form if I go to /app/users/login but of course > it posts to /users/login > > If I tell Auth to allow all, then everything works right like > /customers etc. etc, EXCEPT /users/login url is still 404. My login > functions in users controller is empty using the automagic. > > function login() { > // No form processing needed, Auth does it automatically > $this->pageTitle = "Please Login!"; > } > > To me this appears to be something wrong with Auth. Can anyone help > me get this working? This is the 1.2 final release. > > Chad --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Deployment Issues
I have been developing my first cake app locally for the past few days. I uploaded the files to my dedicated server as following: .htaccess index.php /app /cake /vendors When I hit the url I get users/login can't be found. Yes, I am using basic Auth. To me this means that it executed enough to do the redirect and then died. Mod Rewrite is working, but I am getting some weird results. I get the correct login form if I go to /app/users/login but of course it posts to /users/login If I tell Auth to allow all, then everything works right like /customers etc. etc, EXCEPT /users/login url is still 404. My login functions in users controller is empty using the automagic. function login() { // No form processing needed, Auth does it automatically $this->pageTitle = "Please Login!"; } To me this appears to be something wrong with Auth. Can anyone help me get this working? This is the 1.2 final release. Chad --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---