Welcome Guest, Not a member yet? Register   Sign In
Server throws errors from time to time randomly
#2

[eluser]predi[/eluser]
Made some nice crutches to make CI work properly...
Random error gone away, but still this is not a solution. Got to figure out what is the exact problem of the random failure.

Code:
/**
  * Constructor
  *
  * Runs the route mapping function.
  */
function __construct()
{
  $this->config =& load_class('Config', 'core');
  $this->uri =& load_class('URI', 'core');
  log_message('debug', "Router Class Initialized");
  
  if($this->config === NULL)
  {
   foreach($this as $key => $value)
   {
    unset($this->$key);
    $this->$key = $value;
   }
  }
}


Messages In This Thread
Server throws errors from time to time randomly - by El Forum - 06-03-2013, 02:22 AM
Server throws errors from time to time randomly - by El Forum - 06-03-2013, 06:28 AM
Server throws errors from time to time randomly - by El Forum - 07-04-2013, 06:09 AM



Theme © iAndrew 2016 - Forum software by © MyBB