Re: CakePHP - Warning - Cannot modify header information - headers already sent by

2013-04-24 Thread Sok SophaNarin
an error during redirection back to the index page like this Warning (2): Cannot modify header information - headers already sent by (output started at /opt/lampp/htdocs

Re: Warning (2): Cannot modify header information - headers already sent by

2012-06-30 Thread JuanChronos
-Cannot-modify-header-information-headers-already-sent-by-tp4860658p4867920.html Sent from the CakePHP mailing list archive at Nabble.com. -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org

Re: PLEASE HELP ME! Warning (2): Cannot modify header information - headers already sent by cake php

2011-10-04 Thread vaibhav pathak
hi friend try ob_start(); function before the starting of class CategoriesController extends AppController like in following manner. ?php ob_start(); class CategoriesController extends AppController { } ? from vaibhav pathak -- Our newest site for the community: CakePHP Video

Re: Warning (2): Cannot modify header information - headers already sent by

2011-10-04 Thread BLABLABLA
HI.. The problem was the encoding. I have had the encoding UTF8, but needed the encoding UTF8 without BOM. -- View this message in context: http://cakephp.1045679.n5.nabble.com/Warning-2-Cannot-modify-header-information-headers-already-sent-by-tp4860658p4867920.html Sent from the CakePHP

Re: PLEASE HELP ME! Warning (2): Cannot modify header information - headers already sent by cake php

2011-10-04 Thread Matt Kaufman
Nice tip Sent from my iPhone On Oct 3, 2011, at 9:34 PM, vaibhav pathak promatics.vaib...@gmail.com wrote: hi friend try ob_start(); function before the starting of class CategoriesController extends AppController like in following manner. ?php ob_start(); class CategoriesController

Re: Warning (2): Cannot modify header information - headers already sent by

2011-10-04 Thread Matt Kaufman
-2-Cannot-modify-header-information-headers-already-sent-by-tp4860658p4867920.html Sent from the CakePHP mailing list archive at Nabble.com. -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org

Re: PLEASE HELP ME! Warning (2): Cannot modify header information - headers already sent by cake php

2011-10-04 Thread Larry E. Masters
You have got to be kidding me. You would not seriously suggest this to someone would you? -- Larry E. Masters On Mon, Oct 3, 2011 at 11:34 PM, vaibhav pathak promatics.vaib...@gmail.com wrote: hi friend try ob_start(); function before the starting of class CategoriesController extends

Re: PLEASE HELP ME! Warning (2): Cannot modify header information - headers already sent by cake php

2011-10-04 Thread Matt Kaufman
Lol- yeah I was taken back by this! 'good tip' is all I could come up with. Sent from my iPhone On Oct 4, 2011, at 5:46 PM, Larry E. Masters php...@gmail.com wrote: You have got to be kidding me. You would not seriously suggest this to someone would you? -- Larry E. Masters On Mon,

Re: Warning (2): Cannot modify header information - headers already sent by

2011-10-04 Thread O.J. Tibi
BOM is short for Byte Order Mark. It acts like a magic bit for the application to detect if the document is Unicode, some other variant of Unicode, or any other encoding. And yes, coders should turn off BOM in their editors by default. :) -- Our newest site for the community: CakePHP Video

Re: PLEASE HELP ME! Warning (2): Cannot modify header information - headers already sent by cake php

2011-10-04 Thread O.J. Tibi
No, what Larry meant was ob_start() is an ugly hack, and you shouldn't use it. You might want to take a look at the other thread. Most probably, your controller file has a Byte Order Mark (BOM). Use a UTF-8 text editor that doesn't insert BOMs into your file, or if you can disable BOM

Re: Warning (2): Cannot modify header information - headers already sent by

2011-10-04 Thread Ryan Schmidt
On Oct 4, 2011, at 19:45, Matt Kaufman wrote: What is BOM? http://en.wikipedia.org/wiki/Byte_order_mark -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP

PLEASE HELP ME! Warning (2): Cannot modify header information - headers already sent by cake php

2011-10-03 Thread Dragana Kuzmanovic
failure: Warning (2): Cannot modify header information - headers already sent by (output started at /var/customers/webs/usr05/mkn151/app/controllers/ categories_controller.php:1) [CORE/cake/libs/controller/controller.php my controller: ?php class CategoriesController extends AppController

Warning (2): Cannot modify header information - headers already sent by

2011-10-03 Thread BLABLABLA
PLEASE HELP ME! FAILURE: Warning (2): Cannot modify header information - headers already sent by (output started at /var/customers/webs/usr05/mkn151/app/models/category.php:1) [CORE/cake/libs/controller/controller.php, line 742] CONTROLLER: ?php class CategoriesController extends AppController

Re: PLEASE HELP ME! Warning (2): Cannot modify header information - headers already sent by cake php

2011-10-03 Thread Sam Sherlock
: failure: Warning (2): Cannot modify header information - headers already sent by (output started at /var/customers/webs/usr05/mkn151/app/controllers/ categories_controller.php:1) [CORE/cake/libs/controller/controller.php my controller: ?php class CategoriesController extends AppController

Re: PLEASE HELP ME! Warning (2): Cannot modify header information - headers already sent by cake php

2011-10-03 Thread Matt Kaufman
(does the cats controller have any whitespace before the opening of php - very first line) the debugkit plugin has a command to search for whitespace - S On 1 October 2011 21:30, Dragana Kuzmanovic chikaa1...@gmail.com wrote: failure: Warning (2): Cannot modify header information

Re: Warning (2): Cannot modify header information - headers already sent by

2011-10-03 Thread Tilen Majerle
look at your Category model at line 1, there is output :) Check whitespaces in this file -- Lep pozdrav, Tilen Majerle http://majerle.eu 2011/10/1 BLABLABLA chikaa1...@gmail.com PLEASE HELP ME! FAILURE: Warning (2): Cannot modify header information - headers already sent by (output

RE: Warning (2): Cannot modify header information - headers already sent by

2010-08-19 Thread oscar aguilar morales
:51 +0530 Subject: Re: Warning (2): Cannot modify header information - headers already sent by To: cake-php@googlegroups.com Comment all print and echo in your script. Kind Regards Vikas.R.Hanagodimath On Tue, Aug 17, 2010 at 04:47, milos milosvuci...@gmail.com wrote: I have just

Re: Warning (2): Cannot modify header information - headers already sent by

2010-08-17 Thread milos
in context: http://cakephp.1045679.n5.nabble.com/Warning-2-Cannot-modify-header-information-headers-already-sent-by-tp1318933p2637476.html Sent from the CakePHP mailing list archive at Nabble.com. Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related

Re: Warning (2): Cannot modify header information - headers already sent by

2010-08-17 Thread Vikas.R.Hanagodimath
my file to ut8 it added some chars which are not readable to us, but are to the server. Check this when you get an error -- View this message in context: Re: Warning (2): Cannot modify header information - headers already sent byhttp://cakephp.1045679.n5.nabble.com

Cannot modify header information - headers already sent by (output started at C:\xampp\htdocs\admitizer\cake\libs\object.php:3)

2009-10-06 Thread lokesh sharma
Cannot modify header information - headers already sent by (output started at C:\xampp\htdocs\admitizer\cake\libs\object.php:3) There is no white space after ? in model , controller and view then why I'm getting this error --~--~-~--~~~---~--~~ You received

Re: Cannot modify header information - headers already sent by (output started at C:\xampp\htdocs\admitizer\cake\libs\object.php:3)

2009-10-06 Thread Dr. Loboto
Did you check object.php itself? On line 3 there should be comments only. On Oct 6, 2:00 pm, lokesh sharma is011.lok...@gmail.com wrote: Cannot modify header information - headers already sent by (output started at C:\xampp\htdocs\admitizer\cake\libs\object.php:3) There is no white space

Re: Cannot modify header information - headers already sent by

2009-07-29 Thread JamesF
don't use ? to end a php file. just leave it out and you will solve 90% of these errors. On Jul 28, 12:36 pm, Delberto derekmer...@gmail.com wrote: Problem solved. Seems there was a space in the webroot/index.php Quite frustrating. On Jul 28, 12:44 pm, Delberto derekmer...@gmail.com wrote:

Cannot modify header information - headers already sent by

2009-07-28 Thread Delberto
Hello, I am having a problem with my application. I have it running fine on my local development machine. Yet when I put it on the server I get this error Cannot modify header information - headers already sent by. I have checked the controllers and models for spaces before ?php and after

Re: Cannot modify header information - headers already sent by

2009-07-28 Thread Delberto
Problem solved. Seems there was a space in the webroot/index.php Quite frustrating. On Jul 28, 12:44 pm, Delberto derekmer...@gmail.com wrote: Hello, I am having a problem with my application. I have it running fine on my local development machine. Yet when I put it on the server I get this

Re: Warning (2): Cannot modify header information - headers already sent by

2009-05-18 Thread paulos nikolo
Check for whitespaces in app_controller and the other controllers.This was caused from copy-paste. Think i may helped! Cheers 2009/5/18 Braydenstyles brayden.sty...@gmail.com Warning (2): Cannot modify header information - headers already sent by (output started at /Users/braydenstyles/Sites

Re: Warning (2): Cannot modify header information - headers already sent by

2009-05-18 Thread Braydenstyles
...@gmail.com Warning (2): Cannot modify header information - headers already sent by (output started at /Users/braydenstyles/Sites/app/ app_controller.php:112) [CORE/cake/libs/controller/controller.php, line 587] Code | Context $status =       Location:http://localhost/beta_users/login

Re: Cannot modify header information - headers already sent by

2009-02-03 Thread Marcelo Andrade
On Tue, Feb 3, 2009 at 3:45 AM, gkc gerardkco...@gmail.com wrote: (..) Again, I have already removed all the extra whitespace from the end of all models, controllers, and views. I don't analyze your code. But you made the correct action removing extra spaces like that's the primarily cause

Re: Cannot modify header information - headers already sent by

2009-02-03 Thread AD7six
On Feb 3, 7:45 am, gkc gerardkco...@gmail.com wrote: I have researched this problem and have already removed any blank space after the closing php tag. Here is the controller code:    function beforeFilter() {                 if(isset($this-params['admin'])) {                        

Re: Cannot modify header information - headers already sent by

2009-02-03 Thread gkc
Ok, I removed the php close tag from all the models and controllers but that didnt work. Here is the full error message I am getting: = Warning (2): Cannot modify header information - headers already sent by (output started at /home/user

Re: Cannot modify header information - headers already sent by

2009-02-03 Thread AD7six
On Feb 3, 5:46 pm, gkc gerardkco...@gmail.com wrote: Ok, I removed the php close tag from all the models and controllers but that didnt work. Here is the full error message I am getting: = Warning (2): Cannot modify header information

Re: Cannot modify header information - headers already sent by

2009-02-03 Thread gkc
(2): Cannot modify header information - headers already sent by (output started at /home/user/public_html/sub/index.php:2) [CORE/ cake/libs/controller/controller.php, line 615] Code | Context header - [internal], line ?? Controller::header() - CORE/cake/libs/controller/controller.php

Cannot modify header information - headers already sent by

2009-02-02 Thread gkc
I have researched this problem and have already removed any blank space after the closing php tag. Here is the controller code: function beforeFilter() { if(isset($this-params['admin'])) { $this-checkAdminSession(); $allowed =

Re: CakePHP - Warning - Cannot modify header information - headers already sent by

2008-10-16 Thread Marcus Silva
redirection back to the index page like this Warning (2): Cannot modify header information - headers already sent by (output started at /opt/lampp/htdocs/cake/message_board/app

Re: CakePHP - Warning - Cannot modify header information - headers already sent by

2008-10-16 Thread imu
this Warning (2): Cannot modify header information - headers already sent by (output started at /opt/lampp/htdocs/cake/message_board/app/ controllers/messages_controller.php:115) [CORE/cake/libs/controller/ controller.php, line 587] Code | Context $status

CakePHP - Warning - Cannot modify header information - headers already sent by

2008-10-16 Thread imu
. But I get an error during redirection back to the index page like this Warning (2): Cannot modify header information - headers already sent by (output started at /opt/lampp/htdocs/cake

Why I get this: Warning: Cannot modify header information - headers already sent by (output started at /var/www/cake/app/models/user.php:13) in /var/www/cake/cake/libs/controller/controller.php on lin

2007-10-04 Thread val
Instead redirecting, i get this.. Any Ideas? login.thml: ?php if ($error) { e('Invalid Login.'); } ? p Please log in. /p ?php echo $html-form('/users/login') ? labelUsername:/label ?php echo $html-input('User/username', array) ? labelPassword:/label ?php echo $html-password('User/password',

Re: Why I get this: Warning: Cannot modify header information - headers already sent by (output started at /var/www/cake/app/models/user.php:13) in /var/www/cake/cake/libs/controller/controller.php on

2007-10-04 Thread José Lorenzo
You have a whitespace at the en of the file. Erase it... On Oct 4, 11:01 am, val [EMAIL PROTECTED] wrote: Instead redirecting, i get this.. Any Ideas? login.thml: ?php if ($error) { e('Invalid Login.');} ? p Please log in. /p ?php echo $html-form('/users/login') ?

Re: Why I get this: Warning: Cannot modify header information - headers already sent by (output started at /var/www/cake/app/models/user.php:13) in /var/www/cake/cake/libs/controller/controller.php on

2007-10-04 Thread José Lorenzo
You have a whitespace at the end of the file. Erase it. On Oct 4, 11:01 am, val [EMAIL PROTECTED] wrote: Instead redirecting, i get this.. Any Ideas? login.thml: ?php if ($error) { e('Invalid Login.');} ? p Please log in. /p ?php echo $html-form('/users/login') ?

Re: Why I get this: Warning: Cannot modify header information - headers already sent by (output started at /var/www/cake/app/models/user.php:13) in /var/www/cake/cake/libs/controller/controller.php on

2007-10-04 Thread val
Thank you! Solved the problem! Another question from the code above- http://localhost/users/login gives this: Parse error: syntax error, unexpected ')', expecting '(' in /var/www/ cake/app/views/users/login.thtml on line 11. The login.thtml was copied from IBM tutorial. I guessed that

Re: Why I get this: Warning: Cannot modify header information - headers already sent by (output started at /var/www/cake/app/models/user.php:13) in /var/www/cake/cake/libs/controller/controller.php on

2007-10-04 Thread val
Oh I found the answer with Mike's help. Should be rewritten to: ?php if ($error) { e('Invalid Login.'); } ? Please log in. /p ?php echo $html-formTag('/users/login') ? labelUsername:/label ?php echo $html-inputTag('User/username', array()) ? labelPassword:/label ?php echo