francois21 Posted November 21, 2008 Share Posted November 21, 2008 Hello I have installed the contrib tvaintracom and locally with easyphp all is ok . on the distant serveur when I go in admin--> customer.php when I have nothing in fields VAT intracom all is ok, I can modify a customer and validate, no problem. But when there is n° of VAT in the fields (the n° of VAT is valid, it is mine, therefore not problem of this ) and that I validate the page, I have the message Warning: Cannot modify header information - headers already sent in /var/www/boutics/demo/admin/includes/functions/general.php on line 23 on the line 23 I have header (' location: ' . $url); and the changes are validated because when I return on the page of the customer, the n° intracom is well and the modifs are Ok, I have the message each time, as long as I leave something in fields VAT intracom if I remove it, all become again ok. I have this message in distant serveur, so I think that it is a preoccupation with a compatibility with the serveur. is somebody have this problem ? have you a solution? Thank you cordially François Escuse my bad english!! Quote Link to comment Share on other sites More sharing options...
janoc Posted February 3, 2009 Share Posted February 3, 2009 Hello I have installed the contrib tvaintracom and locally with easyphp all is ok .on the distant serveur when I go in admin--> customer.php when I have nothing in fields VAT intracom all is ok, I can modify a customer and validate, no problem. But when there is n° of VAT in the fields (the n° of VAT is valid, it is mine, therefore not problem of this ) and that I validate the page, I have the message Warning: Cannot modify header information - headers already sent in /var/www/boutics/demo/admin/includes/functions/general.php on line 23 on the line 23 I have header (' location: ' . $url); and the changes are validated because when I return on the page of the customer, the n° intracom is well and the modifs are Ok, I have the message each time, as long as I leave something in fields VAT intracom if I remove it, all become again ok. I have this message in distant serveur, so I think that it is a preoccupation with a compatibility with the serveur. is somebody have this problem ? have you a solution? Thank you cordially François Escuse my bad english!! Hi Francois, Did you solve this problem ? I have the same problem. Thank you. Quote Link to comment Share on other sites More sharing options...
vindex Posted February 4, 2009 Share Posted February 4, 2009 Hi Francois,Did you solve this problem ? I have the same problem. Thank you. maybe for you ... The following warning message is shown when PHP experiences a problem: Warning: Cannot add header information - headers already sent by (output started at /directory/to/starting_file.php:XXX) in /directory/to/calling_file.php on line XX The problem occurs when content has been sent to the client and PHP has been instructed to set header parameters via the header() function, or when starting the session via the session_start() function. Solution The problem can be solved by walking through the code logic flow in the files involved, which are mentioned in the warning message, to make sure no headers are being set after content has been sent to the client. A common cause to the problem is spaces ("whitespace") existing before the first <?php tag and/or after the last ?> tag with the files involved. By removing all spaces so that <?php is at the very start of the file and that ?> is at the very end of the file, no content would have been sent to the client and headers can be set safely. Open the file in a text editor -> place your mouse cursor after the very last ?> tag at the very end of the file and press the 'delete' key on your computer keyboard. Make sure that whitespace does not exist before the opening <?php tag at the very beginning of the file - delete whitespace if present. Save and upload the file to your installation. PHP can only set HTTP headers when no content has been sent to the client. Source : Headers Already Sent (oscommerce.info) Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.