OpenCart Session Error Fix
OpenCart Session Error Fix
Seeing this error on top of all your OpenCart pages?
Warning: session_start() [function.session-start]: Cannot send session cookie – headers already sent by (output started at /home/content/a/r/k/ark08/html/hidden2/index.php:89) in /home/content/a/r/k/ark08/html/hidden2/system/library/session.php on line 11
Warning: session_start() [function.session-start]: Cannot send session cache limiter – headers already sent (output started at /home/content/a/r/k/ark08/html/hidden2/index.php:89) in /home/content/a/r/k/ark08/html/hidden2/system/library/session.php on line 11
Warning: Cannot modify header information – headers already sent by (output started at /home/content/a/r/k/ark08/html/hidden2/index.php:89) in /home/content/a/r/k/ark08/html/hidden2/index.php on line 170
Warning: Cannot modify header information – headers already sent by (output started at /home/content/a/r/k/ark08/html/hidden2/index.php:89) in /home/content/a/r/k/ark08/html/hidden2/system/library/currency.php on line 45
SOLUTION
This is hosting error. i have also got this error on godaddy hosting.
To solve this, open the following file:
system > library > session.php
Find:
session_start();
Replace with:
session_save_path(“/tmp”); session_start();
did no work
Hi folk , can u do user registration in opencart at ur godaddy host ?
perefctly works, thanks
I have replaced as you suggested but still error is there. any other solution?
Didnt work for me, my error Warning: session_start() [function.session-start]: open(/tmp/sess_fc3a8b05e03aa390dbc6a6caf17905e3, O_RDWR) failed: Permission denied (13) in /var/www/vhosts/xxxx.com.au/httpdocs/system/library/session.php on line 11
any idea
Excellent Fix .. thanks a billion :)