OpenCart Session Error Fix

OpenCart Session Error Fix

Seeing this error on top of all your OpenCart pages?

Warning: session_start() [function.session-start]: open(/var/chroot/home/content/a/r/k/ark08/tmp/sess_adf91407b4153746c5b98a5a1e12f9ab, O_RDWR) failed: No such file or directory (2) 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 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();

Related Articles

6 Responses

  1. obaid says:

    did no work

  2. Dave says:

    Hi folk , can u do user registration in opencart at ur godaddy host ?

  3. Farazman says:

    perefctly works, thanks

  4. I have replaced as you suggested but still error is there. any other solution?

  5. Anonymous says:

    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

  6. Anonymous says:

    Excellent Fix .. thanks a billion :)

Leave a Reply

Your email address will not be published. Required fields are marked *