Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Warning: session_start() [function.session-start]: Cannot send session cookie - headers already sent by (output started at /home/content/xxxxxxxxx/h


adanob

Recommended Posts

Posted

Does anyone know what this is? I installed an Add-on called featured products. It worked fine but I got this header on the top of all the pages. I removed the Add-on edits and this is still there.

 

Warning: session_start() [function.session-start]: Cannot send session cookie - headers already sent by (output started at /home/content/00/12345678/html/xxxx/catalog/includes/application_top.php:2) in /home/content/12345678/html/xxxx/catalog/includes/functions/sessions.php on line 102

 

 Any suggestions? 

Posted

 Any suggestions? 

 

Use Google as so:

 

site:www.oscommerce.com/forums "cannot send session cookie"

 

Do this for everything you ask in the future as 90% of problems can be found and solved .. if not solved, then post.

Posted

It tells you right there in the message that some text was written to the browser at or near line 2 of /catalog/includes/application_top.php. It could be an error message (which should show up in the page source (HTML)), it could be a Byte Order Mark if you edited the file with a bozo editor, it could be output from a hack.

Posted

Thank you. I have checked everything possible and reviewed the solutions from the previous post that Burt mentioned but they do not apply in this case. My editor is Dreamweaver so I will check the version history of the file to see if there are any changes. Still learning php..

Posted

Don't use DW to edit PHP code. Learn to use a real editor such as Notepad++ or ViM. DW is notorious for messing up PHP if you don't know exactly what you're doing. Use an FTP client such as FileZilla to transfer files up and down.

 

If this is a UTF-8 version of osC: when the page is displayed, tell your browser to switch from UTF-8 to Latin-1/Windows-1252/Western (a single byte encoding) and see if you have 3 odd looking characters at the very beginning of the page (a Byte Order Mark). If you do, you'll have to re-edit your files to save them without a BOM.

Posted

I discovered a small difference in the new files. I have a return in the first line of code. When this is removed the error message disappears. Thanks for all the suggestions. I will start using a better editor.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...