• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
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

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2020 MyBB Group.