Cache::write() - CORE/Cake/Cache/Cache.php, line 310
I18n::translate() - CORE/Cake/I18n/I18n.php, line 174
__d - CORE/Cake/basics.php, line 616
CakeException::__construct() - CORE/Cake/Error/exceptions.php, line 239
MissingConnectionException::__construct() - CORE/Cake/Error/exceptions.php, line 388
Mysql::connect() - CORE/Cake/Model/Datasource/Database/Mysql.php, line 164
DboSource::__construct() - CORE/Cake/Model/Datasource/DboSource.php, line 262
ConnectionManager::getDataSource() - CORE/Cake/Model/ConnectionManager.php, line 107
Model::setDataSource() - CORE/Cake/Model/Model.php, line 3221
Model::setSource() - CORE/Cake/Model/Model.php, line 1108
Model::getDataSource() - CORE/Cake/Model/Model.php, line 3243
Model::find() - CORE/Cake/Model/Model.php, line 2696
Dispatcher::parseParams() - CORE/Cake/Routing/Dispatcher.php, line 230
call_user_func - [internal], line ??
CakeEventManager::dispatch() - CORE/Cake/Event/CakeEventManager.php, line 248
Dispatcher::dispatch() - CORE/Cake/Routing/Dispatcher.php, line 143
[main] - APP/webroot/index.php, line 109
Warning (2): file_put_contents() [http://php.net/function.file-put-contents]: Only 0 of 1694 bytes written, possibly out of free disk space [CORE/Cake/Log/Engine/FileLog.php, line 87]
$type = 'error'
$message = '[MissingConnectionException] Database connection "Mysql" is missing, or could not be created.
Exception Attributes: array (
'class' => 'Mysql',
'message' => 'SQLSTATE[HY000] [2002] Can\'t connect to local MySQL server through socket \'/var/lib/mysql/mysql.sock\' (2)',
'enabled' => true,
)
Request URL: /cam-nang-du-lich-trieu-tien.html?url=cam-nang-du-lich-trieu-tien.html
Stack Trace:
#0 /var/sentora/hostdata/luhanhchaa/public_html/lib/Cake/Model/Datasource/DboSource.php(262): Mysql->connect()
#1 /var/sentora/hostdata/luhanhchaa/public_html/lib/Cake/Model/ConnectionManager.php(107): DboSource->__construct(Array)
#2 /var/sentora/hostdata/luhanhchaa/public_html/lib/Cake/Model/Model.php(3221): ConnectionManager::getDataSource('default')
#3 /var/sentora/hostdata/luhanhchaa/public_html/lib/Cake/Model/Model.php(1108): Model->setDataSource('default')
#4 /var/sentora/hostdata/luhanhchaa/public_html/lib/Cake/Model/Model.php(3243): Model->setSource('assets')
#5 /var/sentora/hostdata/luhanhchaa/public_html/lib/Cake/Model/Model.php(2696): Model->getDataSource()
#6 /var/sentora/hostdata/luhanhchaa/public_html/lib/Cake/Routing/Dispatcher.php(230): Model->find('first', Array)
#7 [internal function]: Dispatcher->parseParams(Object(CakeEvent))
#8 /var/sentora/hostdata/luhanhchaa/public_html/lib/Cake/Event/CakeEventManager.php(248): call_user_func(Array, Object(CakeEvent))
#9 /var/sentora/hostdata/luhanhchaa/public_html/lib/Cake/Routing/Dispatcher.php(143): CakeEventManager->dispatch(Object(CakeEvent))
#10 /var/sentora/hostdata/luhanhchaa/public_html/app/webroot/index.php(109): Dispatcher->dispatch(Object(CakeRequest), Object(CakeResponse))
#11 {main}'
$debugTypes = array(
(int) 0 => 'notice',
(int) 1 => 'info',
(int) 2 => 'debug'
)
$filename = '/var/sentora/hostdata/luhanhchaa/public_html/app/tmp/logs/error.log'
$output = '2021-01-27 02:08:48 Error: [MissingConnectionException] Database connection "Mysql" is missing, or could not be created.
Exception Attributes: array (
'class' => 'Mysql',
'message' => 'SQLSTATE[HY000] [2002] Can\'t connect to local MySQL server through socket \'/var/lib/mysql/mysql.sock\' (2)',
'enabled' => true,
)
Request URL: /cam-nang-du-lich-trieu-tien.html?url=cam-nang-du-lich-trieu-tien.html
Stack Trace:
#0 /var/sentora/hostdata/luhanhchaa/public_html/lib/Cake/Model/Datasource/DboSource.php(262): Mysql->connect()
#1 /var/sentora/hostdata/luhanhchaa/public_html/lib/Cake/Model/ConnectionManager.php(107): DboSource->__construct(Array)
#2 /var/sentora/hostdata/luhanhchaa/public_html/lib/Cake/Model/Model.php(3221): ConnectionManager::getDataSource('default')
#3 /var/sentora/hostdata/luhanhchaa/public_html/lib/Cake/Model/Model.php(1108): Model->setDataSource('default')
#4 /var/sentora/hostdata/luhanhchaa/public_html/lib/Cake/Model/Model.php(3243): Model->setSource('assets')
#5 /var/sentora/hostdata/luhanhchaa/public_html/lib/Cake/Model/Model.php(2696): Model->getDataSource()
#6 /var/sentora/hostdata/luhanhchaa/public_html/lib/Cake/Routing/Dispatcher.php(230): Model->find('first', Array)
#7 [internal function]: Dispatcher->parseParams(Object(CakeEvent))
#8 /var/sentora/hostdata/luhanhchaa/public_html/lib/Cake/Event/CakeEventManager.php(248): call_user_func(Array, Object(CakeEvent))
#9 /var/sentora/hostdata/luhanhchaa/public_html/lib/Cake/Routing/Dispatcher.php(143): CakeEventManager->dispatch(Object(CakeEvent))
#10 /var/sentora/hostdata/luhanhchaa/public_html/app/webroot/index.php(109): Dispatcher->dispatch(Object(CakeRequest), Object(CakeResponse))
#11 {main}
'
file_put_contents - [internal], line ??
FileLog::write() - CORE/Cake/Log/Engine/FileLog.php, line 87
CakeLog::write() - CORE/Cake/Log/CakeLog.php, line 453
ErrorHandler::handleException() - CORE/Cake/Error/ErrorHandler.php, line 114
[main] - [internal], line ??
CakePHP: the rapid development php framework:
Errors/
Cache::write() - CORE/Cake/Cache/Cache.php, line 310
I18n::translate() - CORE/Cake/I18n/I18n.php, line 174
__d - CORE/Cake/basics.php, line 616
include - APP/View/Errors/error500.ctp, line 22
View::_evaluate() - CORE/Cake/View/View.php, line 947
View::_render() - CORE/Cake/View/View.php, line 909
View::render() - CORE/Cake/View/View.php, line 471
ExceptionRenderer::_outputMessageSafe() - CORE/Cake/Error/ExceptionRenderer.php, line 304
ExceptionRenderer::_outputMessage() - CORE/Cake/Error/ExceptionRenderer.php, line 285
ExceptionRenderer::_cakeError() - CORE/Cake/Error/ExceptionRenderer.php, line 198
ExceptionRenderer::render() - CORE/Cake/Error/ExceptionRenderer.php, line 176
ErrorHandler::handleException() - CORE/Cake/Error/ErrorHandler.php, line 123
[main] - [internal], line ??
'message' => 'Datasource is not found in Model/Datasource package.'));} self::$_dataSources[$name] = new $class(self::$config->{$name}); self::$_dataSources[$name]->configKeyName = $name;