Code Context $pathname = $this->_path . $filename;
if (empty($this->_config['mask'])) {
return file_put_contents($pathname, $output, FILE_APPEND);
$type = 'error'
$message = '[MissingConnectionException] Database connection "Mysql" is missing, or could not be created.
Exception Attributes: array (
'class' => 'Mysql',
'message' => 'SQLSTATE[HY000] [2002] Connection refused',
'enabled' => true,
)
Request URL: /add/284967/
Stack Trace:
#0 /var/www/lib/Cake/Model/Datasource/DboSource.php(278): Mysql->connect()
#1 /var/www/lib/Cake/Model/ConnectionManager.php(105): DboSource->__construct()
#2 /var/www/lib/Cake/Model/Model.php(3659): ConnectionManager::getDataSource()
#3 /var/www/lib/Cake/Model/Model.php(1162): Model->setDataSource()
#4 /var/www/lib/Cake/Model/Model.php(3686): Model->setSource()
#5 /var/www/lib/Cake/Model/Model.php(3053): Model->getDataSource()
#6 /var/www/lib/Cake/Model/Model.php(3025): Model->_readDataSource()
#7 /var/www/prod/sites/chinder/Controller/ChinderController.php(456): Model->find()
#8 [internal function]: ChinderController->add()
#9 /var/www/lib/Cake/Controller/Controller.php(499): ReflectionMethod->invokeArgs()
#10 /var/www/lib/Cake/Routing/Dispatcher.php(193): Controller->invokeAction()
#11 /var/www/lib/Cake/Routing/Dispatcher.php(167): Dispatcher->_invoke()
#12 /var/www/prod/sites/chinder/webroot/index.php(119): Dispatcher->dispatch()
#13 {main}'
$output = '2024-05-02 13:36:54 Error: [MissingConnectionException] Database connection "Mysql" is missing, or could not be created.
Exception Attributes: array (
'class' => 'Mysql',
'message' => 'SQLSTATE[HY000] [2002] Connection refused',
'enabled' => true,
)
Request URL: /add/284967/
Stack Trace:
#0 /var/www/lib/Cake/Model/Datasource/DboSource.php(278): Mysql->connect()
#1 /var/www/lib/Cake/Model/ConnectionManager.php(105): DboSource->__construct()
#2 /var/www/lib/Cake/Model/Model.php(3659): ConnectionManager::getDataSource()
#3 /var/www/lib/Cake/Model/Model.php(1162): Model->setDataSource()
#4 /var/www/lib/Cake/Model/Model.php(3686): Model->setSource()
#5 /var/www/lib/Cake/Model/Model.php(3053): Model->getDataSource()
#6 /var/www/lib/Cake/Model/Model.php(3025): Model->_readDataSource()
#7 /var/www/prod/sites/chinder/Controller/ChinderController.php(456): Model->find()
#8 [internal function]: ChinderController->add()
#9 /var/www/lib/Cake/Controller/Controller.php(499): ReflectionMethod->invokeArgs()
#10 /var/www/lib/Cake/Routing/Dispatcher.php(193): Controller->invokeAction()
#11 /var/www/lib/Cake/Routing/Dispatcher.php(167): Dispatcher->_invoke()
#12 /var/www/prod/sites/chinder/webroot/index.php(119): Dispatcher->dispatch()
#13 {main}
'
$filename = 'error.log'
$pathname = '/var/www/prod/sites/chinder/tmp/logs/error.log'
file_put_contents - [internal], line ??
FileLog::write() - CORE/Cake/Log/Engine/FileLog.php, line 142
CakeLog::write() - CORE/Cake/Log/CakeLog.php, line 445
ErrorHandler::_log() - CORE/Cake/Error/ErrorHandler.php, line 188
ErrorHandler::handleException() - CORE/Cake/Error/ErrorHandler.php, line 118
[main] - [internal], line ??