Post by ocNew » Tue Sep 16, 2014 6:37 pm

I installed opencart but couldnt access to the admin page. The error message was:

PHP Warning: session_start(): open(/tmp/sess_e04153be0ce8842855182c6f89f91012, O_RDWR) failed: No such file or directory (2)

please could anyone help?

Newbie

Posts

Joined
Tue Sep 16, 2014 6:29 pm

Post by ocNew » Wed Sep 17, 2014 4:33 am

Thanks to sudhir, this problem was resolved by adding the following code in the file /system/library/session.php

session_save_path(realpath(dirname($_SERVER['DOCUMENT_ROOT']).'/tmp'));

before

session_start();

This solution was based on sudhir » at http://forum.opencart.com/viewtopic.php?t=7106

in case someone faces the same problem,

Newbie

Posts

Joined
Tue Sep 16, 2014 6:29 pm

Post by supak111 » Thu Aug 24, 2023 7:57 am

Thank you soooo much!! This worked on my OC 2.0.1.1. Just spend like 3 hours trying to fix! Customer login, admin login, and add to cart all didn't work. This fixed it.

🙂

~ OC 3.0.3.2 and OCmods only ~


User avatar
Active Member

Posts

Joined
Fri Feb 13, 2015 12:09 pm
Who is online

Users browsing this forum: No registered users and 18 guests