I’m trying to use the Mysidia pet adoptables php script. However, since I installed it on my site, I haven’t been able to log in. It’s been giving me this exception at the top:
[code]Warning: session_start() [function.session-start]: open(/var/chroot/home/content/86/10005386/tmp/sess_tg5rbp86f8h67kq9g9u9796mp1, O_RDWR) failed: No such file or directory (2) in /home/content/86/10005386/html/classes/class_session.php on line 13
Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /home/content/86/10005386/html/classes/class_session.php:13) in /home/content/86/10005386/html/classes/class_session.php on line 13[/code]
and this on the bottom:
[code]Warning: Unknown: open(/var/chroot/home/content/86/10005386/tmp/sess_tg5rbp86f8h67kq9g9u9796mp1, O_RDWR) failed: No such file or directory (2) 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 () in Unknown on line 0[/code]
I’ve searched endlessly for a solution, and I can’t get any help on the Mysidia website (they don’t have a very active community). I’ve searched their forums, and seemingly NO ONE has had my problem with the scripts. Here is the culprit file that’s referenced:
[php]<?php
class Session{
private $ssid;
private $started = FALSE;
private $initime;
private $useragent;
public $clientip;
public function __construct(){
// Start our session
if(!isset($_SESSION)) session_start();
$this->started = TRUE;
// Initiate our session properties
$this->ssid = session_id();
$this->initime = time();
$this->useragent = $_SERVER['HTTP_USER_AGENT'];
$this->clientip = $_SERVER['REMOTE_ADDR'];
}
public function getid(){
if(empty($this->ssid)) $this->error(“Session already expired…”);
else return $this->ssid;
}
private function exist($name){
if(!empty($_SESSION[$name])) return TRUE;
else return FALSE;
}
public function fetch($name){
if($this->exist($name)) return $_SESSION[$name];
else return FALSE;
}
public function assign($name, $value, $override = TRUE, $encrypt = FALSE){
$value = ($encrypt == TRUE)?hash(‘sha512’, $value):$value;
if(!empty($_SESSION[$name]) and $override == FALSE) $this->error(“Cannot override session var {$name}.”);
else $_SESSION[$name] = $value;
}
public function terminate($name){
if(!isset($_SESSION[$name])) return FALSE;
else unset($_SESSION[$name]);
}
public function regen($name){
$this->ssid = session_regenerate_id();
$this->initime = time();
}
public function validate($name){
if($this->useragent != $_SERVER[‘HTTP_USER_AGENT’] or $this->clientip != $_SERVER[‘REMOTE_ADDR’]){
$this->destroy();
$this->error(“User IP has changed…”);
}
elseif(!isset($_SESSION[$name])){
$this->error(“Session already expired…”);
}
else return TRUE;
}
public function destroy(){
$_SESSION = array();
session_destroy();
}
private function error($message){
throw new Exception($message);
}
}
?>[/php]
Can someone please help me solve this. I’ve been trying to fix it for days :’(