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 id, position, parentid, title_en AS title, icon, name, sort, target, `display`, url, cnt, cnt2, active, descr_en AS descr FROM dj_menu m WHERE m.position IN ('top', 'left', 'bottom', 'footer') AND m.active=1 AND m.display NOT IN (1,3,5,4) ORDER BY m.position, m.sort, m.name
Debug Backtrace:
7) /home/admin/web/djrankings.org/public_html/inc/Menu.php on line 178
DB::getAll('SELECT id, position,...tion, m.sort, m.name');
174)      $this->filter .= ' AND ((m.title_'.$this->lang.' LIKE \'%'.$this->search.'%\' OR m.title2_'.$this->lang.' LIKE \'%'.$this->search.'%\' OR m.descr_'.$this->lang.' LIKE \'%'.$this->search.'%\' OR m.keywords_'.$this->lang.' LIKE \'%'.$this->search.'%\') OR (SELECT 1 FROM '.$this->prefix.'menu y WHERE (y.title_'.$this->lang.' LIKE \'%'.$this->search.'%\' OR y.title2_'.$this->lang.' LIKE \'%'.$this->search.'%\' OR y.descr_'.$this->lang.' LIKE \'%'.$this->search.'%\' OR y.keywords_'.$this->lang.' LIKE \'%'.$this->search.'%\') AND y.parentid=m.id LIMIT 1)=1)';
175)       $this->filter_sub .= ' AND (m.title_'.$this->lang.' LIKE \'%'.$this->search.'%\' OR m.title2_'.$this->lang.' LIKE \'%'.$this->search.'%\' OR m.descr_'.$this->lang.' LIKE \'%'.$this->search.'%\' OR m.keywords_'.$this->lang.' LIKE \'%'.$this->search.'%\')';
176)     }
177)     $sql = 'SELECT '.$this->select.' FROM '.$this->prefix.'menu m WHERE '.(is_array($position)?'m.position IN ('.join(', ',e($position)).')':'m.position='.e($position)).$this->and_active.$this->filter.' ORDER BY m.position, m.sort, m.name';
178)     $this->tree = DB::getAll($sql);
179)     if (is_array($position)) {
180)       foreach ($position as $p) {
181)         $ret[$p] = $this->buildTree($p);
182)       }
183)     } else {
184)       $ret =   $this->buildTree();
6) /home/admin/web/djrankings.org/public_html/tpls/dj/classes/MyClass.php on line 3644
Menu::getByPosition(array(4));
3640)     * Called right before index template file
3641)      */
3642)     final public function index() {
3643) 
3644)         $this->arrMenu = Factory::call('menu')->getByPosition(array('top','left','bottom','footer'));
3645)         $this->set('arrMenu', $this->arrMenu);
3646) 
3647)         if ($this->UserID) {
3648)             $friends_to_confirm = DB::one('SELECT COUNT(1) FROM '.DB_PREFIX.'users_friends WHERE setid='.$this->UserID.' AND confirmed=\'\'');
3649)             $friends_total = DB::one('SELECT COUNT(1) FROM '.DB_PREFIX.'users_friends WHERE setid='.$this->UserID.' AND confirmed=\'Y\'');
3650)             $this->set('friends_to_confirm',$friends_to_confirm);
5) /home/admin/web/djrankings.org/public_html/mod/Mainarea.php on line 142
MyClass::index();
138)  */
139)   private function ajaxel() {
140) 
141)     $this->My->head();
142)     $this->My->index();
143)     if ($this->show('head') && !Site::$ajax) {
144)       $this->includeFile('common/'.SITE_TYPE.'.head.php');
145)       echo '<script>if(typeof $==\'undefined\')var $=function(f){this.ready=function(f){document.addEventListener(\'DOMContentLoaded\',f)};if(typeof(f)==\'function\')return this.ready(f);return this},S={C:{},G:{}},jQuery=$;</script>';
146)       $this->addCSSA('global.css');
147)     }
148)     if ($this->show('html')) {
4) /home/admin/web/djrankings.org/public_html/mod/Mainarea.php on line 120
Mainarea::ajaxel();
116)      ob_start(array('OB','handler'));
117)       else
118)       ob_start(false);
119) 
120)       $this->ajaxel();
121)       /*
122)       switch ($this->engine) {
123)         case 'wordpress':
124)           require FTP_DIR_ROOT.'inc/lib/Wordpress.php';
125)           $this->wordpress();
126)         break;
3) /home/admin/web/djrankings.org/public_html/inc/Index.php on line 235
Mainarea::printIndex();
2) /home/admin/web/djrankings.org/public_html/inc/Site.php on line 254
Index::document();
1) /home/admin/web/djrankings.org/public_html/index.php on line 56
Site::init();
Ajaxel CMS v8.4