Re: Login renders blank page!
I had the same problem here, with BOM bytes added to some files. Just to keep people aware, it ate my doctype declaration, thus, changing the way browsers interpreted the page, changing font sizes and all, paddings, etc. really weird. I had to open every file, since I didn't knew wich ones where causing the problem, and save them in Notepad++ without BOM. My question: is there any script or app that could strip thos BOM bytes from many files in different folders ? I googled and got nothing useful :\ (ps.: prefereably windows, but could be on *nix/osX) thanks! spark On 9/16/06, AD7six [EMAIL PROTECTED] wrote: Hi Baydel, Have you checked the case of your files? Give your subscription model files is named Subscription emphasis on the 'S', I would guess your home controller file is named Home_controller.php - you need everything lower case. The session error is caused by the space you have at the beginning of your subscription model file. If there is no visible space - you have a BOM (Byte Order Mark) which you need to remove. HTH, AD7six -- [web] http://synapsisdi.com.br [livesets] http://djspark.com.br/mp3 --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Cake PHP group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php -~--~~~~--~~--~--~---
Re: Re: Login renders blank page!
http://www.xs4all.nl/~mechiel/projects/bomstrip/ has versions of the same thing in a ton of languages (not php thought ;) for utf8 you could do this probably if you have sed sed -i -s -e '1s/^\xef\xbb\xbf//' files On 9/18/06, DJ Spark [EMAIL PROTECTED] wrote: I had the same problem here, with BOM bytes added to some files. Just to keep people aware, it ate my doctype declaration, thus, changing the way browsers interpreted the page, changing font sizes and all, paddings, etc. really weird. I had to open every file, since I didn't knew wich ones where causing the problem, and save them in Notepad++ without BOM. My question: is there any script or app that could strip thos BOM bytes from many files in different folders ? I googled and got nothing useful :\ (ps.: prefereably windows, but could be on *nix/osX) thanks! spark On 9/16/06, AD7six [EMAIL PROTECTED] wrote: Hi Baydel, Have you checked the case of your files? Give your subscription model files is named Subscription emphasis on the 'S', I would guess your home controller file is named Home_controller.php - you need everything lower case. The session error is caused by the space you have at the beginning of your subscription model file. If there is no visible space - you have a BOM (Byte Order Mark) which you need to remove. HTH, AD7six -- [web] http://synapsisdi.com.br [livesets] http://djspark.com.br/mp3 -- == S. DeVore (the old fart) the advice is free, the lack of crankiness will cost you --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Cake PHP group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php -~--~~~~--~~--~--~---
Re: Login renders blank page!
On 9/16/06, Baydel [EMAIL PROTECTED] wrote: $this-redirect('/'); } I may be wrong, but shouldn't you also be doing an exit() after the redirect request? Or even better, redirect people to a controller/action pair upon successful authentication? -- Chris Hartjes The greatest inefficiencies come from solving problems you will never have. -- Rasmus Lerdorf @TheBallpark - http://www.littlehart.net/attheballpark @TheKeyboard - http://www.littlehart.net/atthekeyboard --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Cake PHP group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php -~--~~~~--~~--~--~---
Re: Login renders blank page!
Hi Baydel, set Debug to 0 in /app/config/core.php and read the 1) more descripive error message and 2) (otherwise hidden) error message. That would be the first thing to check for anyway ;). Cheers, AD7six --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Cake PHP group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php -~--~~~~--~~--~--~---
Re: Login renders blank page!
Hi, When DEBUG is set to 1 i get the follwing errors Missing controller You are seeing this error because controller HomeController could not be found. Notice: this error is being rendered by the app/views/errors/missing_controller.thtml view file, a user-customizable error page for handling invalid controller dispatches. Fatal: Unable to load controller HomeController Fatal: Create Class: ?php class HomeController extends AppController { var $name = 'Home'; } ? in file : app/controllers/home_controller.php Which says it cant find my HomeController, which really is there. The I also get this messy error about session which was why i turned debug off before Warning: session_start(): Cannot send session cookie - headers already sent by (output started at /hsphere/local/home/forexhou/forexhouse.net/app/models/Subscription.php:2) in /hsphere/local/home/forexhou/forexhouse.net/cake/libs/session.php on line 131 Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at /hsphere/local/home/forexhou/forexhouse.net/app/models/Subscription.php:2) in /hsphere/local/home/forexhou/forexhouse.net/cake/libs/session.php on line 131 Thanks Baydel --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Cake PHP group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php -~--~~~~--~~--~--~---
Re: Login renders blank page!
Hi Baydel, Have you checked the case of your files? Give your subscription model files is named Subscription emphasis on the 'S', I would guess your home controller file is named Home_controller.php - you need everything lower case. The session error is caused by the space you have at the beginning of your subscription model file. If there is no visible space - you have a BOM (Byte Order Mark) which you need to remove. HTH, AD7six --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Cake PHP group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php -~--~~~~--~~--~--~---
Re: Login renders blank page!
Hi, Many thanks, CASE issues, you are right. The controllers are working now but i still have an issue with login and handling session I noticed that pages that should redirect users to a login page if not logged in does not come up, I have a validatesessioncheck method in my appcontroller which should redirect users to the login page if not authenticated. I guess this problem is a fallout of the login attempt that returns a blank page. Thanks Baydel --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Cake PHP group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php -~--~~~~--~~--~--~---
Re: Login renders blank page!
Also, exit() isn't the recommended method to quit processing a method in CakePHP. If you were to do this there is code after the redirect that could be executed. Not to mention the CakePHP cleanup. Case in point would be a redirect for a user to a page after he deletes something while the delete happens in the background. Instead you can use return false; to stop processing. At any rate whenever you have multiple renders or a redirect it is best to place a return false after each of them to stop method processing from anything weird that could happen if left to processing that particular method. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Cake PHP group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php -~--~~~~--~~--~--~---