Edit report at http://bugs.php.net/bug.php?id=19022&edit=1

 ID:               19022
 Comment by:       glspeed at juno dot com
 Reported by:      phpbugs at mx4k dot com
 Summary:          PHP Warning:  Failed to write session data (files)
 Status:           No Feedback
 Type:             Bug
 Package:          Session related
 Operating System: linux (rh7.3), apache 1.3.26
 PHP Version:      4.2.2

 New Comment:

I do not know if mine is the same "bug"  I went to my site:
http://www.videotime.info and I got the following code:

Warning: Unknown:
open(/tmp/www.videotime.info/sess_2d42195412bd7242893f1ce67b531875,
O_RDWR) failed: Permission denied (13) in Unknown on line 0



Warning: Unknown: Failed to write session data (files). Please verify
that the current setting of session.save_path is correct
(/tmp/www.videotime.info) in Unknown on line 0



I was looking for a solution for this and found your website.  Should I
reinstall?  Will that remedy it temporarily?



Gino


Previous Comments:
------------------------------------------------------------------------
[2009-03-31 20:15:45] prikid at gmail dot com

We are currently getting the same error on 2 different enviroments. This
does not happen all the time, but often enough to be an annoyance during
testing.



Environment as follows:

1. FreeBSD 6.2-RELEASE 

[r...@crossbow /]# cat /usr/local/etc/php.ini | grep "session"



session.save_handler = files

session.save_path = "/var/tmp"

session.use_cookies = 1



[r...@crossbow /]# php -v

PHP 5.2.9 with Suhosin-Patch 0.9.7 (cli) (built: Mar 31 2009 12:24:17) 

Copyright (c) 1997-2009 The PHP Group

Zend Engine v2.2.0, Copyright (c) 1998-2009 Zend Technologies

[r...@crossbow /var/www/branches]# apachectl -v

Server version: Apache/2.0.63

Server built:   Apr 16 2008 16:52:47



---

2. Red Hat Enterprise Linux ES 4



[r...@131080-stagingdb /]# cat /etc/php.ini |grep "session"

session.save_handler = files

session.save_path = "/var/lib/php/session"

session.use_cookies = 1



[r...@131080-stagingdb /]# php -v

PHP 5.2.9 (cli) (built: Feb 27 2009 14:38:59) 

Copyright (c) 1997-2009 The PHP Group

Zend Engine v2.2.0, Copyright (c) 1998-2009 Zend Technologies

[r...@131080-stagingdb logs]# apachectl -v

Server version: Apache/2.0.52

Server built:   Jun 29 2007 05:07:13

------------------------------------------------------------------------
[2008-02-28 17:50:49] ras...@php.net

session.save_path = "0;\tmp"



??  What is 0;\tmp supposed to mean?

------------------------------------------------------------------------
[2008-02-28 12:04:47] m1ckx at hotmail dot com

I too am getting similar messages - essentially where the session file
is failing to create.  Unfortunately I am getting it all the time, which
is a problem as I am trying to teach myself PHP at home.



What is different for me is that I am running a Windows 2K server, using
IIS, and PHP 5.2.2.



The initial error I get at the first session_start() call is:

The description for Event ID ( 2 ) in Source ( PHP-5.2.2 ) cannot be
found. The local computer may not have the necessary registry
information or message DLL files to display messages from a remote
computer. The following information is part of the event: php[352], PHP
Warning:  session_start() [<a
href='function.session-start'>function.session-start</a>]:
open(\tmp\sess_8t6afg6omu4au9ofqnru80l6r5, O_RDWR) failed: No such file
or directory (2) in F:\MixWeb\mdroot\php_sandpit\ch10\login.php on line
60.



The extract of my php.ini is:

[Session]



session.save_handler = files



session.save_path = "0;\tmp"



session.use_cookies = 1

session.name = PHPSESSID

session.auto_start = 0

session.cookie_lifetime = 0

session.cookie_path = /



Having been trying to search down answers for this but so far no luck.

------------------------------------------------------------------------
[2008-01-19 22:07:24] ozdemir_e at yahoo dot com

I have been getting the same error...



in php.ini file i have set the session.save_path to
public_html/cgi-bin/session



And the chmod of the session folder is 777



Everything looks fine technically but even if that... i get this error.



I really need help to figure out this issue and fix it. And the hosting
company that i work with they insist on saying that it is not a server
error. But I do not understand that even if the chomod of the
session.save_path pointing to the correct folder and chmod 777, I am
getting this error.



PHP Warning:  session_start() [<a
href='function.session-start'>function.session-staPHP Warning: 
session_start() [<a
href='function.session-start'>function.session-start</a>]:
open(/home/users/web/b469/as.xxxxx/sess_164a72ebe9813cc1b0341ad6f6edbc8a,
O_RDWR) failed: Read-only file system (30) in
/hermes/web03/b469/as.xxxx/public_html/admin/index.php on line 31

PHP Warning:  Unknown(): Failed to write session data (files). Please
verify that the current setting of session.save_path is correct
(/home/users/web/b469/as.yuvamemlak/public_html/cgi-bin/session) in
Unknown on line 0





thank you in advance

------------------------------------------------------------------------
[2007-12-28 23:45:50] allan at emeraldforest dot com

I have been experiencing the same (or very similar) problem. One
interesting thing that I found is that sometimes I can reload page A and
see the session data happily sitting there, but on page B the data is
not there. I have both pages open in tabs in Firefox and I can go back
and forth reloading the pages. Page A always has the data, page B never
does. Both pages require the same init.php script to start the session.

------------------------------------------------------------------------


The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at

    http://bugs.php.net/bug.php?id=19022


-- 
Edit this bug report at http://bugs.php.net/bug.php?id=19022&edit=1

Reply via email to