Page 1 of 1

Cannot send session cookie - headers already sent by

Posted: Wed Mar 07, 2012 4:52 pm
by dan74mm
My OpenCart is v1.5.1.2, and I have these errors:

Code: Select all

2012-03-07 7:24:10 - PHP Warning:  unlink(/home/XXXXX/public_html/system/cache/cache.product.bestseller.2.0.10.1331104985) [<a href='function.unlink'>function.unlink</a>]: No such file or directory in /home/XXXXX/public_html/system/library/cache.php on line 14
2012-03-07 7:24:10 - PHP Warning:  session_start() [<a href='function.session-start'>function.session-start</a>]: Cannot send session cookie - headers already sent by (output started at /home/XXXXX/public_html/index.php:100) in /home/XXXXX/public_html/system/library/session.php on line 10
2012-03-07 7:24:10 - PHP Warning:  session_start() [<a href='function.session-start'>function.session-start</a>]: Cannot send session cache limiter - headers already sent (output started at /home/XXXXX/public_html/index.php:100) in /home/XXXXX/public_html/system/library/session.php on line 10
2012-03-07 7:24:10 - PHP Warning:  Cannot modify header information - headers already sent by (output started at /home/XXXXX/public_html/index.php:100) in /home/XXXXX/public_html/index.php on line 174
2012-03-07 7:24:10 - PHP Warning:  Cannot modify header information - headers already sent by (output started at /home/XXXXX/public_html/index.php:100) in /home/XXXXX/public_html/system/library/currency.php on line 45
Can help me somebody to solve these errors ? Thanks.

Re: Cannot send session cookie - headers already sent by

Posted: Thu Mar 08, 2012 5:22 pm
by uksitebuilder
The problem is the first error.

All other errors after that are caused because the first error is output to the browser.

Clear your system/cache folder (apart from index.html) to see if the problem goes away.

Re: Cannot send session cookie - headers already sent by

Posted: Thu Mar 08, 2012 5:36 pm
by dan74mm
Ok, I will try this ... Thank you ! ::)