Note that there are some explanatory texts on larger screens.

plurals
  1. POsession_start(): Function spl_autoload_call()
    primarykey
    data
    text
    <p>I am getting this message on going to several pages:</p> <p>Warning: session_start(): Function spl_autoload_call() hasn't defined the class it was called for in /var/www/library/session/session.php on line 18</p> <p>This is the file that is creating the calls:</p> <pre><code> &lt;?php namespace iX\session; class session{ private static $instance; private static $init=false; private static function doFirstInit(){ ini_set('session.name', \iX\config::get('system')-&gt;session-&gt;name); ini_set('session.cookie_lifetime', \iX\config::get('system')-&gt;session-&gt;cookie-&gt;lifetime); ini_set('session.cookie_path', \iX\config::get('system')-&gt;session-&gt;cookie-&gt;path); ini_set('session.cookie_domain', \iX\config::get('system')-&gt;domain-&gt;name); ini_set('session.use_cookies', ((\iX\config::get('system')-&gt;session-&gt;cookie-&gt;use)?'1':0)); ini_set('session.use_only_cookies', ((\iX\config::get('system')-&gt;session-&gt;cookie-&gt;onlyCookies)?'1':0)); \iX\core::load('library/session/interface.php'); \iX\core::load('library/session/handler/'. \iX\config::get('system')-&gt;session-&gt;handler.'.php'); $class = '\iX\session\handler_'.\iX\config::get('system')-&gt;session-&gt;handler; $class::getInstance(); session_start(); self::$init = true; } public static function getInstance(){ if(!self::$init) self::doFirstInit(); if(!(self::$instance instanceof session)) self::$instance = new session('main'); return self::$instance; } private $handler=array(); public function __construct($handler){ $this-&gt;handler = &amp;$_SESSION[$handler]; if(!isset($this-&gt;handler['userid'])) $this-&gt;handler['userid'] = 1; if($this-&gt;handler['userid']==0) $this-&gt;handler['userid'] = 1; if(!isset($this-&gt;handler['counter'])) $this-&gt;handler['counter'] = 0; if(!isset($this-&gt;handler['login'])) $this-&gt;handler['login'] = false; if(!isset($this-&gt;handler['numpages'])) $this-&gt;handler['numpages'] = 0; if(!isset($this-&gt;handler['lock'])) $this-&gt;handler['lock'] = false; } public function __get($name){ $this-&gt;handler['counter']++; return (!isset($this-&gt;handler[$name]))?false:$this-&gt;handler[$name]; } public function __set($name,$value){ if($this-&gt;lock==false){ $this-&gt;handler[$name]=$value; return true; }else return false; } public function __isset($id){ if(isset($this-&gt;handler[$id]) &amp;&amp; $this-&gt;handler[$id]!=null) return true; return false; } public function __unset($id){ $this-&gt;handler[$id] = null; return true; } private function __cleanup(){ $this-&gt;handler = array(); } public function getPages(){ return $this-&gt;numpages; } public function setIncreasePage(){ $this-&gt;numpages++; } public function Login($uid){ $this-&gt;login=true; $this-&gt;userid = intval($uid); $this-&gt;userId = intval($uid); } public function setLogout(){ foreach($this as $key=&gt;$value) $this-&gt;{$key} = null; $this-&gt;role = "guest"; $this-&gt;userId = 0; $this-&gt;login=false; } public function isLogin(){ return $this-&gt;login; } public function isRlogin(){ return ($this-&gt;rActive == true &amp;&amp; isset($this-&gt;rLogin))?true:false; } public function cleanup(){ $this-&gt;__cleanup(); } public function put(){ } public function lock(){ $this-&gt;lock = true; } public function unlock(){ $this-&gt;lock = false; } public function get_stat(){ return $this-&gt;lock; } public function rewind() { reset($this-&gt;handler); } public function current() { $var = current($this-&gt;handler); return $var; } public function key() { $var = key($this-&gt;handler); return $var; } public function next() { $var = next($this-&gt;handler); return $var; } public function valid() { $var = $this-&gt;current() !== false; return $var; } public function __toString(){ $return = ''; foreach($this-&gt;handler as $key=&gt;$value) $return .= $key.':'.$value."\n"; return $return; } public function __toArray(){ return $this-&gt;handler; } public function toString(){ return $this-&gt;__toString(); } public function toArray(){ return $this-&gt;__toArray(); } public function getSession(){ return $this-&gt;handler; } public function restoreSession($session){ $session = unserialize($session); if(is_array($session)) $this-&gt;handler = $session; } } </code></pre> <p>How can I get rid of this Warning. I don't just want to disable the warning calls. I want to have a clean app. Please somebody enlight me.</p> <p>Chris</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload