PropelException

Description

[wrapped: connect failed [Native Error: Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)] [User Info: Array]]

Source File

/home/alhedaya/public_html/pear/propel/Propel.php (486)

0475: 
0476:             include_once 'creole/Creole.php';
0477: 
0478:             // if specified, use custom driver
0479:             if (isset(self::$configuration['datasources'][$name]['driver'])) {
0480:                 Creole::registerDriver($dsn['phptype'], self::$configuration['datasources'][$name]['driver']);
0481:             }
0482: 
0483:             try {
0484:                 $con = Creole::getConnection($dsn);
0485:             } catch (SQLException $e) {
0486: throw new PropelException($e);
0487: } 0488: self::$connectionMap[$name] = $con; 0489: } 0490: 0491: return $con; 0492: } 0493: 0494: /** 0495: * Returns database adapter for a specific connection pool. 0496: * 0497: * @param string $name A database name. 0498: * @return DBAdapter The corresponding database adapter.

Stack Trace

#0 /home/alhedaya/public_html/protected/Common/PC.php(165): Propel::getConnection()
#1 /home/alhedaya/public_html/protected/Layouts/about/LayoutHomeAbout.php(74): PC::Parameters('aboutmajma', 1)
#2 /home/alhedaya/public_html/framework/pradolite.php(4062): LayoutHomeAbout->OnInit(NULL)
#3 /home/alhedaya/public_html/framework/pradolite.php(5430): TControl->initRecursive(Object(about))
#4 /home/alhedaya/public_html/framework/pradolite.php(5546): TCompositeControl->initRecursive(Object(about))
#5 /home/alhedaya/public_html/framework/pradolite.php(4047): TTemplateControl->initRecursive(Object(about))
#6 /home/alhedaya/public_html/framework/pradolite.php(5430): TControl->initRecursive(NULL)
#7 /home/alhedaya/public_html/framework/pradolite.php(5546): TCompositeControl->initRecursive(NULL)
#8 /home/alhedaya/public_html/framework/pradolite.php(6050): TTemplateControl->initRecursive()
#9 /home/alhedaya/public_html/framework/pradolite.php(6045): TPage->processNormalRequest(Object(THtmlWriter))
#10 /home/alhedaya/public_html/framework/pradolite.php(8162): TPage->run(Object(THtmlWriter))
#11 /home/alhedaya/public_html/framework/pradolite.php(8128): TPageService->runPage(Object(about), Array)
#12 /home/alhedaya/public_html/framework/pradolite.php(9089): TPageService->run()
#13 /home/alhedaya/public_html/framework/pradolite.php(8704): TApplication->runService()
#14 /home/alhedaya/public_html/fa.php(132): TApplication->run()
#15 {main}
2018-02-23 04:21 Apache/2.2.31 (Unix) PHP/5.2.17 PRADO/3.1.2a