CDbException

CDbException

CDbConnection failed to open the DB connection: SQLSTATE[HY000] [2002] No such file or directory

/home/vfofvpl9/public_html/extranet/yii/db/CDbConnection.php(381)

369                 throw new CDbException('CDbConnection.connectionString cannot be empty.');
370             try
371             {
372                 Yii::trace('Opening DB connection','system.db.CDbConnection');
373                 $this->_pdo=$this->createPdoInstance();
374                 $this->initConnection($this->_pdo);
375                 $this->_active=true;
376             }
377             catch(PDOException $e)
378             {
379                 if(YII_DEBUG)
380                 {
381                     throw new CDbException('CDbConnection failed to open the DB connection: '.
382                         $e->getMessage(),(int)$e->getCode(),$e->errorInfo);
383                 }
384                 else
385                 {
386                     Yii::log($e->getMessage(),CLogger::LEVEL_ERROR,'exception.CDbException');
387                     throw new CDbException('CDbConnection failed to open the DB connection.',(int)$e->getCode(),$e->errorInfo);
388                 }
389             }
390         }
391     }
392 
393     /**

Stack Trace

#9
+
 /home/vfofvpl9/public_html/cookies.php(3): CActiveRecord->__construct()
1 <?php
2 
3 $aceite = new AceiteLgpd();
4 
5 if($aceite->hasAceitePendente($_COOKIE['aceite_lgpd'])){
6   ?>
7 <section class="cookies" style="display:block;">
8     <div class="container">
#10
+
 /home/vfofvpl9/public_html/rodape.php(1): include("/home/vfofvpl9/public_html/cookies.php")
1 <?php include("cookies.php"); ?>
2 
3 <footer id="footer">
4     <div class="container">
5         <div class="logo">
6             <img data-src="imgs/logo-v2.webp" class="lazyload" alt="ACAV 2025"/>
#11
+
 /home/vfofvpl9/public_html/404.php(22): include("/home/vfofvpl9/public_html/rodape.php")
17                 <span><b>404</b></span>
18                 <h1><b>Página não encontrada</b></h1>
19                 <a href="./"><i class="fas fa-arrow-left"></i> Voltar para a página inicial</a>
20             </div>
21         </main>
22         <?php include("rodape.php"); ?>
23         <?php include("scripts.php"); ?>
24         <script type="module" src="./js/init-modules.min.js?v=<?=$JSModulesVersion?>"></script>
25         <script type="text/javascript" src="./js/init.min.js?v=<?=$JSversion?>"></script>
26     </body>
27 </html>
2026-06-24 04:40:57 LiteSpeed Yii Framework/1.1.13