PHPiCalendar problems...again
Posted by: mbaizman
Posted on: 2005-10-27 13:15:00
So I've been using PHPiCal pretty succesfully for a while, and suddenly I'm getting the following errors which look a little something like this:
Warning: session_start(): open(/tmp/sess_9ef9080406015e7ac7c5a5e582881520, O_RDWR) failed: Permission denied (13) in /home/.duncan/mbaizman/baizman.net/icalendar/functions/userauth_functions.php on line 74
Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at /home/.duncan/mbaizman/baizman.net/icalendar/functions/userauth_functions.php:74) in /home/.duncan/mbaizman/baizman.net/icalendar/functions/userauth_functions.php on line 74
Warning: Cannot modify header information - headers already sent by (output started at /home/.duncan/mbaizman/baizman.net/icalendar/functions/userauth_functions.php:74) in /home/.duncan/mbaizman/baizman.net/icalendar/functions/userauth_functions.php on line 75
Warning: Cannot modify header information - headers already sent by (output started at /home/.duncan/mbaizman/baizman.net/icalendar/functions/userauth_functions.php:74) in /home/.duncan/mbaizman/baizman.net/icalendar/day.php on line 15
Warning: Invalid argument supplied for foreach() in /home/.duncan/mbaizman/baizman.net/icalendar/functions/template.php on line 504
Warning: Unknown(): open(/tmp/sess_9ef9080406015e7ac7c5a5e582881520, 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
Now I'm no PHP expert (although I play one on TV - ok, not really), but I figured I'd drill down into the guts of the thing, and see if I could puzzle it out. So, here's lines 71 - 83 of functions/userauth_functions.php:
71 // Look for session authentication.
72 if ($login_cookies != 'yes') {
73 if (!session_id()) {
74 session_start();
75 setcookie(session_name(), session_id(), time()+(60*60*24*7*12*10), '/', $cookie_uri, 0);
76 }
77 if (isset($_SESSION['username']) &&
78 isset($_SESSION['password']))
79 {
80 $username = $_SESSION['username'];
81 $password = $_SESSION['password'];
82 }
83 }
So PHPiCal is clearly trying to use session variables and set cookies. so why the error messages? It looks like a permissions thing, but I'm not sure what the heck I can do about it.
Ideas, anyone? Am I overthinking this? FYI, I'm getting the errors on a clean install of PHPiCal. Thanks in advance to the PHP gurus out there,
Marc