Menu

Weird Error Message

Help
Anonymous
2002-01-10
2002-01-11
  • Anonymous

    Anonymous - 2002-01-10

    Greetings!

    I am no pro at phpwebsite by far, so I need some help. Does anyone know what this error message means and how to fix it (Besides that it don't work...hehehe):
    Warning: open(/tmp\sess_e9d2a2928ade1350bbaab0d52987cc90, O_RDWR) failed: No such file or directory (2) in C:\Web Server Root\open_session.php on line 2

     
    • chris fraser

      chris fraser - 2002-01-10

      I had the same problem when I install phpWs. It's looking for the temp directory that is suppost to be defined in php.ini. That's where the session info will be stored for people when they use your site. I had to add a line to open_session.php even though I had the temp dir set in php.ini. I just added :
      session_save_path("C:\WINDOWS\Temp");
      on line 2 of open_session.php. The path can be where ever you want, it just has to be set so the session info has a place to be stored.

       
    • Anonymous

      Anonymous - 2002-01-11

      Thanks! I happened to have a backup of my php.ini file before I upgraded to php 4.1.1 and replaced it. Works great now, but at least I know what caused that error message thanks to your explaination! :-)
      For those that are having problems logging into different areas of the admin area after upgrading/installing php 4.1.1, modify your auth.inc.php file to reflect this:

      [....]
      if($pass == $this_pass)
      {
      session_unregister("admintest"); //new
      session_unregister("current_admin"); //lines
      session_register("admintest"); //are
      session_register("current_admin"); //here
      $admintest = $security_hash;
      $current_admin = $temp_admin;
      }
      [....]

      You will not be kicked back to the login screen when trying to access any admin functions! Here is the reference link:
      http://sourceforge.net/forum/forum.php?thread_id=619004&forum_id=49349

      Thanks to "thenetsnake" for his post!!

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.