Guest Posted February 10, 2003 Share Posted February 10, 2003 I've just installed the latest build of oscommerce here. Installation went fine, but now I find a number of pages are giving me errors such as : Warning: Cannot add header information - headers already sent by (output started at /home/creative/public_html/shop/includes/application_top.php:465) in /home/creative/public_html/shop/includes/functions/general.php on line 28 pages such as checkout_shipping.php and the accounts one. Is there something I may have done wrong? or a reason for these errors? Link to comment Share on other sites More sharing options...
Guest Posted February 10, 2003 Share Posted February 10, 2003 http://www.oscommerce.com/community/faq,1-7/q,17 HTH Link to comment Share on other sites More sharing options...
Guest Posted February 10, 2003 Share Posted February 10, 2003 Hi, you have to change the php.ini. Set output_buffering = On. If you use a provider ask him for more information. ; Output buffering allows you to send header lines (including cookies) even; after you send body content, at the price of slowing PHP's output layer a ; bit. You can enable output buffering during runtime by calling the output ; buffering functions. You can also enable output buffering for all files by ; setting this directive to On. If you wish to limit the size of the buffer ; to a certain size - you can use a maximum number of bytes instead of 'On', as ; a value for this directive (e.g., output_buffering=4096). output_buffering = On Good luck Milchbazi Link to comment Share on other sites More sharing options...
hanskline Posted February 10, 2003 Share Posted February 10, 2003 i have this same problem and that "help" page didn't seem to get me anywhere...have you had any luck? Link to comment Share on other sites More sharing options...
Guest Posted February 11, 2003 Share Posted February 11, 2003 Don't let space before <?php and after ?> or you get an error. The only possibility is to change the php.ini (see above) Link to comment Share on other sites More sharing options...
Guest Posted February 11, 2003 Share Posted February 11, 2003 The thing is, I haven't altered any of the default files, so how can this be? Is it possible that the files that come with the package have this problem already? I no that the php.ini is not set to ON for the output_buffering. Am I to assume that everyone here who uses oscommerce has their php.ini set to on???? or has anyone had this problem before? Link to comment Share on other sites More sharing options...
Guest Posted February 11, 2003 Share Posted February 11, 2003 Yes! I had the problem before but I turned the output_buffering to ON :D Link to comment Share on other sites More sharing options...
mattice Posted February 11, 2003 Share Posted February 11, 2003 output_buffering might make the problem dissapear but it will eat a lot of resources -> makes things slower. Not the cure. Do you have a control panel hosting thing? I've worked on some panels that simply save an empty line if you open / save them through the editor. Could be that (language files?) I've seen cPanel doing this. HTH Mattice "Politics is the art of preventing people from taking part in affairs which properly concern them" Link to comment Share on other sites More sharing options...
Guest Posted February 11, 2003 Share Posted February 11, 2003 Yes i have cpanel. in fact i think i did make a small change using the file manager option in cpanel. I'll look into that and let you know how i get on. Link to comment Share on other sites More sharing options...
hanskline Posted February 11, 2003 Share Posted February 11, 2003 how on earth can a space be found within all of the files that have been altered? Link to comment Share on other sites More sharing options...
mattice Posted February 11, 2003 Share Posted February 11, 2003 Use the force... ehm no.. Read The Source Luke! It's only about spaces BEFORE <? or AFTER ?> All spaces in between are... ehm... space! Mattice "Politics is the art of preventing people from taking part in affairs which properly concern them" Link to comment Share on other sites More sharing options...
Guest Posted February 11, 2003 Share Posted February 11, 2003 I think I fixed mine (well, at least I think I have :? ) Basically I downloaded the files I knew I had altered from the server, and looked to see if there was any spaces before the <?php, which there wasn't! So I just uploaded the files back to the server. After I had uploaded the files again, everything started working normally. The problem hasn't happened again since I did that. Dunno if that fixed it, or it just sorted itself out, but at least its not causing me any problems now. Link to comment Share on other sites More sharing options...
mattice Posted February 11, 2003 Share Posted February 11, 2003 Seem to remember cPanel adds them at the BOTTOM of the file. Anyway, it works now, good. Mattice "Politics is the art of preventing people from taking part in affairs which properly concern them" Link to comment Share on other sites More sharing options...
devink Posted February 11, 2003 Share Posted February 11, 2003 You are geniuses in your own lunchtimes! :lol: (Sorry, Northern UK saying, probably doesn't mean much to everyone else) I had exactly the same problem, and have been for many weeks. In the past, I have simply reverted back to the old version of the file. My problem was english.php. :idea: Tip:- I use an editor with line numbers down the side, so I can see if there are extra lines. Many Thanks, Steve Link to comment Share on other sites More sharing options...
mattice Posted February 11, 2003 Share Posted February 11, 2003 You are geniuses in your own lunchtimes! :lol: (Sorry, Northern UK saying, probably doesn't mean much to everyone else) Saying as in.. ehmm... lemme think ... Vinegar Strokes? Harry Ollocks? Bombay Oyster? Sorry.. I only know politically incorrect ones I'm afraid. Spend too much time in M'chester... it rubbed off :) :idea: Tip:- I use an editor with line numbers down the side, so I can see if there are extra lines. I use Vi. It doesn't add funky stuff. :D "Politics is the art of preventing people from taking part in affairs which properly concern them" Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.