Warning: session_start() failed: No such file or directory

Mohammad picture Mohammad · Jul 16, 2010 · Viewed 47.7k times · Source

I'm trying to install berta (v 0.6.3b) and I get this error:

Warning: session_start() [function.session-start]: open(/var/php_sessions/sess_a0d6b8422181739d10066fb60cebfe5d, O_RDWR) failed: No such file or directory (2) in /hermes/bosweb/web010/b100/ipg.ellieniemeyercom/engine/_classes/class.bertasecurity.php

on line 75 The error seems to happen on line 75 of class.bertasecurity.php (view source code)

What is wrong and how can I fix it?

Answer

Sarfraz picture Sarfraz · Jul 16, 2010

Make sure that session directory is writable or you can set a path yourself with:

session_save_path

This comment is also useful if you are using above function.