[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

PHP problems (Warning: session_start(): read returned less bytes than requested)



Hello Deb-users...

I started having some problems with PHP since the last upgrade, but I am
not sure if it actually caused it.  I primarly use my web server for the
Gallery.  The system is 100% unstable dist.

Anyways, when opening gallery pages, the following error messages are
displayed on the top of the screen:


Warning: session_start(): read returned less bytes than requested in
/usr/share/gallery/session.php on line 60

Warning: session_start(): Cannot send session cookie - headers already
sent by (output started at /usr/share/gallery/session.php:60) in
/usr/share/gallery/session.php on line 60

Warning: session_start(): Cannot send session cache limiter - headers
already sent (output started at /usr/share/gallery/session.php:60) in
/usr/share/gallery/session.php on line 60


2nd and 3rd error messages are caused by the first one.

My setup is as follows:
Linux 2.4.21 #1 Thu Aug 7 18:10:47 EDT 2003 sparc GNU/Linux
php4 - 4:4.3.8-3
apache - 1.3.31-3
gallery - 1.4.4-1

In order to resolve this issue, I tried installing the php4 and gallery
from testing, but the problem remained.  I then downgraded apache to
testing as well (1.3.31-2), still no luck.

The session files are stored in /tmp (with appropriate permissions), and I
can see them being created.

The diagnostic page on the gallery shows that the session is created, but
when I refresh, the page view count does not update.  I have tried both
Firefox and IE6, but no luck, even with all the cookie management off..

I spent a lot of time looking around, but I could not figure it out.  Any
pointers?



Reply to: