dentonio69 Posted January 11, 2005 Posted January 11, 2005 I received the following error on top of every page: Warning: session_start(): Cannot send session cookie - headers already sent by (output started at /home/giftson/public_html/oscommerce/includes/configure.php:48) in /home/giftson/public_html/oscommerce/includes/functions/sessions.php on line 67 Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at /home/giftson/public_html/oscommerce/includes/configure.php:48) in /home/giftson/public_html/oscommerce/includes/functions/sessions.php on line 67 i'm running osCommerce 2.2MS2 on Cpanel X and mySQL 4.0.22-standard. I have added the zones/master password modules as well as AusPost and LoginBox 5.2 and have also set ENABLE SSL to 'false' as I have not received the Shared SSL location. Please have a look at My Webpage and see if you also have the same errors. Also....on the right hand side under the login box the text is a bit different. I think it has to do with the english.php files but any help would also be greatly appreciated. Thanks heaps Denton PS. I'm using 000k.com as my host if anyone knows their Shared SSL path please let me know. Thanks!
pauldarthvader Posted January 11, 2005 Posted January 11, 2005 I received the following error on top of every page: Warning: session_start(): Cannot send session cookie - headers already sent by (output started at /home/giftson/public_html/oscommerce/includes/configure.php:48) in /home/giftson/public_html/oscommerce/includes/functions/sessions.php on line 67 Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at /home/giftson/public_html/oscommerce/includes/configure.php:48) in /home/giftson/public_html/oscommerce/includes/functions/sessions.php on line 67 i'm running osCommerce 2.2MS2 on Cpanel X and mySQL 4.0.22-standard. I have added the zones/master password modules as well as AusPost and LoginBox 5.2 and have also set ENABLE SSL to 'false' as I have not received the Shared SSL location. Please have a look at My Webpage and see if you also have the same errors. Also....on the right hand side under the login box the text is a bit different. I think it has to do with the english.php files but any help would also be greatly appreciated. Thanks heaps Denton PS. I'm using 000k.com as my host if anyone knows their Shared SSL path please let me know. Thanks! <{POST_SNAPBACK}> Hi If you are getting a "headers already sent" error, this usually means you have a "space" before or after the code. open the files you have edited and make sure there are no spaces before or after the code. As a general rule, make a backup before editing any files so you can always go back. And test your site after editing each file. Paul www.ukgadgetsdirect.co.uk Regards Paul
dentonio69 Posted January 12, 2005 Author Posted January 12, 2005 Hi If you are getting a "headers already sent" error, this usually means you have a "space" before or after the code. open the files you have edited and make sure there are no spaces before or after the code. As a general rule, make a backup before editing any files so you can always go back. And test your site after editing each file. Paul www.ukgadgetsdirect.co.uk <{POST_SNAPBACK}> Cool, thanks for that!
dentonio69 Posted January 12, 2005 Author Posted January 12, 2005 Also, can I assume that the error comes from either the configure.php or the sessios.php files as they are the ones given in the error?
Guest Posted January 12, 2005 Posted January 12, 2005 usually the top line one, in this case configure.php you have extra 'white space' at the end of the file after the last ?> search the knowledge base for 'headers already sent ' for a better explanation
dentonio69 Posted January 12, 2005 Author Posted January 12, 2005 usually the top line one, in this case configure.php you have extra 'white space' at the end of the file after the last ?> search the knowledge base for 'headers already sent ' for a better explanation <{POST_SNAPBACK}> Thanks heaps for that! I was quite surprised as I thought in programming languages (i've only done C and Haskell) that white space after the end of a code don't usually affect the code. Then again I have been editing in Cpanel's File Manager that could be it. Thanks again
pauldarthvader Posted January 14, 2005 Posted January 14, 2005 Thanks heaps for that! I was quite surprised as I thought in programming languages (i've only done C and Haskell) that white space after the end of a code don't usually affect the code. Then again I have been editing in Cpanel's File Manager that could be it. Thanks again <{POST_SNAPBACK}> Hi Again Sorry, i know nothing about C and Haskell, i know very little about php lol. But a space either before or after the code will give you these "headers already sent" messages. Most people on here will tell you to download the files you want to edit, and upload them again after, which is a good habit to get into. But that can seem a bit long winded if you just want to correct a spelling mistake you'd missed. If you do edit in Cpanel, as i do sometimes, make sure you delete all the space after the last ?> Paul Regards Paul
Recommended Posts
Archived
This topic is now archived and is closed to further replies.