Page 1 of 1

[solved] Session_start() and header Warnings

Posted: Fri Nov 27, 2009 9:00 pm
by joerg
Hi
I upgraded CMSMS to 1.6.6., but when I open the website I get the following errors:
Warning: session_start(): open(/tmp/sess_8c5bd62fbe905e87ec35dcd6e9bcc7f0, O_RDWR) failed: Permission denied (13) in /srv/www/vhosts/www.uni-stuttgart.de/STUDinfo/aegee/include.php on line 34
Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at /srv/www/vhosts/www.uni-stuttgart.de/STUDinfo/aegee/include.php:34) in /srv/www/vhosts/www.uni-stuttgart.de/STUDinfo/aegee/include.php on line 34
Warning: Cannot modify header information - headers already sent by (output started at /srv/www/vhosts/www.uni-stuttgart.de/STUDinfo/aegee/include.php:34) in /srv/www/vhosts/www.uni-stuttgart.de/STUDinfo/aegee/index.php on line 371

(page content is being displayed correctly here)

Warning: Unknown(): open(/tmp/sess_8c5bd62fbe905e87ec35dcd6e9bcc7f0, 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) in Unknown on line 0
These warnings show up even when the CMS is set to maintenance mode and just the text message is being displayed.

The system information gives me 2 (!) and one (x):
(!)  PHP 4.3.10
(!) test_remote_url
(x) fopen
Is fopen the problem here? The hoster disabled it for security reasons. But before I decide to change to another host, I would try to make it work again (current one is university=free). The last two warnings also appeared in the previous version (1.5.x), but the warnings about headers are new since the upgrade. Hope you can help me! Thanks a lot! Joerg

Re: Session_start() and header Warnings

Posted: Thu Dec 10, 2009 4:05 pm
by Rolf
Hi Joerg,

Perhaps this is any help  :-\:
http://forum.cmsmadesimple.org/index.ph ... 147.0.html (German)
Haven't read the entire topic, but it looks similar and it shouldn't be a problem for you to read  ;)

Grtz. Rolf

Re: Session_start() and header Warnings

Posted: Thu Dec 10, 2009 5:55 pm
by joerg
Thanks for the reply, I changed the hoster now and the problem is gone anyway. Apparently, it was related to the old server running an old php version or the execution time, as adding
AddHandler php5-cgi .php
php_value max_execution_time 60
to the .htaccess seems to solve the problem.