/data/www/yidaba/framework/db/CSnsConnection.php(44)
00032: 00033: try 00034: { 00035: $this->dbh = new PDO($connstr, $dsn['user'], $dsn['pass']); 00036: $serverInfo = $this->dbh->getAttribute(PDO::ATTR_SERVER_INFO); 00037: if ($serverInfo == 'MySQL server has gone away') 00038: $this->dbh = new PDO($connstr, $dsn['user'], $dsn['pass']); 00039: 00040: $this->initConnection($this->dbh, $dsn); 00041: } 00042: catch(PDOException $e) 00043: {00044: throw new CSnsDbException($e->getMessage());00045: } 00046: } 00047: 00048: public function resetConnection($connections) { 00049: $reInit = 0; 00050: try{ 00051: $serverInfo = $this->dbh->getAttribute(PDO::ATTR_SERVER_INFO); 00052: } catch(PDOException $ex) { 00053: $message = $ex->getMessage(); 00054: if (strpos($message,'gone away') !== false) { 00055: $reInit =1; 00056: }
#0 /data/www/yidaba/framework/db/CSnsConnection.php(105): CSnsConnection->__construct('mysql://dbuser_...') #1 /data/www/yidaba/framework/db/CSnsDbTools.php(206): CSnsConnection::getInstance('mysql://dbuser_...') #2 /data/www/yidaba/ww5.yidaba.com/plugins/substation/class/SubstationModel.php(487): CSnsDbTools->execute('select area,cou...', NULL, 'mysql://dbuser_...') #3 /data/www/yidaba/ww5.yidaba.com/plugins/substation/templates/b2b/index.php(24): plugins\substation\model\SubstationModel->getHotAreas('54211') #4 /data/www/yidaba/framework/web/CSnsBaseController.php(103): require('/data/www/yidab...') #5 /data/www/yidaba/framework/web/CSnsBaseController.php(68): CBaseController->renderInternal('/data/www/yidab...', Array, true) #6 /data/www/yidaba/framework/web/CSnsController.php(637): CBaseController->renderFile('/data/www/yidab...', Array, true) #7 /data/www/yidaba/framework/web/CSnsController.php(218): CSnsController->renderPartial('/b2b/index', Array, true) #8 /data/www/yidaba/framework/web/CSnsController.php(251): CSnsController->baseRender('/b2b/index', Array, false) #9 /data/www/yidaba/ww5.yidaba.com/plugins/substation/controllers/DefaultController.php(108): CSnsController->render('/b2b/index', Array) #10 /data/www/yidaba/framework/web/actions/CInlineAction.php(32): DefaultController->actionIndex() #11 /data/www/yidaba/framework/web/CSnsController.php(120): CInlineAction->run() #12 /data/www/yidaba/framework/web/CSnsController.php(104): CSnsController->runAction(Object(CInlineAction)) #13 /data/www/yidaba/framework/web/CSnsController.php(93): CSnsController->runActionWithFilters(Object(CInlineAction), Array) #14 /data/www/yidaba/framework/web/CSnsWebApplication.php(459): CSnsController->run('index') #15 /data/www/yidaba/framework/web/CSnsWebApplication.php(90): CSnsWebApplication->runController('substation/defa...') #16 /data/www/yidaba/framework/base/CSnsApplication.php(137): CSnsWebApplication->processRequest() #17 /data/www/yidaba/ww5.yidaba.com/web/index.php(22): CApplication->run() #18 {main}
当网页服务器处理您的请求时, 发生以上错误.
如果您认为此错误是服务器造成的,请与管理员联系 the webmaster.
谢谢.