MySQLi Error: #2006<div style="float:right;margin-bottom:-35px;"> [localhost]</div>
MySQLi Error: #2006
[localhost]
MySQLi Error: #2006
[localhost]
MySQL server has gone away
Invalid SQL query:
SELECT * FROM db WHERE t=2
Debug Backtrace:
8) /home/admin/web/djrankings.org/public_html/inc/Stats.php on line 429
DB::getAll('SELECT * FROM db WHERE t=2', 'k|v');
425)        $sql = 'SELECT v FROM '.DB_PREFIX.'db WHERE t='.$t.' AND '.e($k).' LIKE CONCAT(\'%\',k,\'%\')';
426)       }
427)       return DB::one($sql);
428)     } else {
429)       return DB::getAll('SELECT * FROM '.DB_PREFIX.'db WHERE t='.$t.($k ? ' AND k='.e($k) : ($v?' AND v='.e($v):'')),$kv);
430)     }
431)   }
432) 
433)   public static function os($a = NULL) {
434)     if (!$a) $a = $_SERVER['HTTP_USER_AGENT'];
435)     return self::getDB(1, $a);
7) /home/admin/web/djrankings.org/public_html/inc/Stats.php on line 459
Stats::getDB(2, '', '', 'k|v');
455)    elseif(preg_match('/Safari/i',$a) && ($u = 'Safari')) $b = 'SF';
456)     elseif(preg_match('/Opera/i',$a) && ($u = 'Opera')) $b = 'OP';
457)     elseif(preg_match('/Netscape/i',$a) && ($u = 'Netscape')) $b = 'NS';
458)     elseif ((preg_match_all('/(mozilla)[\/\sa-z;.0-9-(]+rv:([0-9]+)([.0-9a-z]+)\) gecko\/[0-9]{8}$/i', $a, $r)) || (preg_match_all("/($b)[\/\sa-z(]*([0-9]+)([\.0-9a-z]+)?/i", $a, $r))) {
459)       $browsers = self::getDB(2,'','','k|v');
460)       $count = count($r[0])-1;
461)       $name = @$browsers[strtolower($r[1][$count])];
462)       $major_number = @$r[2][$count];
463)       $match = array();
464)       preg_match('/([.\0-9]+)?([\.a-z0-9]+)?/i', $r[3][$count], $match);
465)       if(isset($match[1])) {
6) /home/admin/web/djrankings.org/public_html/inc/Stats.php on line 73
Stats::browser();
69) 
70) 
71) 
72)     $os      = (string)self::os();
73)     $browser  = self::browser();
74)     $device    = self::device($agent);
75)     $b_version  = substr($browser[1],0,4);
76)     $browser   = $browser[0];
77)     $host    = self::getHost($ip);
78) 
79)     /*
5) /home/admin/web/djrankings.org/public_html/inc/Stats.php on line 26
Stats::write(true);
22) 
23) abstract class Stats {
24) 
25)   public static function init(&$obj, $mini = false) {
26)     $stats = self::write($mini);
27)     $obj->Country = $stats['geo']['code'];
28)     if (array_key_exists($stats['geo']['code'], Site::getRegions())) $obj->Region = $stats['geo']['code'];
29)     if ($stats['geo']['city']) $obj->City = $stats['geo']['city'];
30)     if (isset($stats['geo']['timezone'])) $obj->Timezone = $stats['geo']['timezone'];
31)     if (isset($stats['geo']['region'])) $obj->State = $stats['geo']['region'];
32)     if (isset($stats['os'])) $obj->OS = $stats['os'];
4) /home/admin/web/djrankings.org/public_html/inc/Session.php on line 625
Stats::init(object(Session), true);
3) /home/admin/web/djrankings.org/public_html/inc/Session.php on line 550
Session::writeStats(true);
2) /home/admin/web/djrankings.org/public_html/inc/Site.php on line 248
Session::stats();
1) /home/admin/web/djrankings.org/public_html/index.php on line 56
Site::init();
Ajaxel CMS v8.4