Code Context }
$output = date('Y-m-d H:i:s') . ' ' . ucfirst($type) . ': ' . $message . "\n";
return file_put_contents($filename, $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] No such file or directory',
'enabled' => true,
)
Request URL: /
Stack Trace:
#0 /var/www/yomken.com/public_html/lib/Cake/Model/Datasource/DboSource.php(262): Mysql->connect()
#1 /var/www/yomken.com/public_html/lib/Cake/Model/ConnectionManager.php(102): DboSource->__construct(Array)
#2 /var/www/yomken.com/public_html/lib/Cake/Model/Behavior/TranslateBehavior.php(68): ConnectionManager::getDataSource('default')
#3 /var/www/yomken.com/public_html/lib/Cake/Model/BehaviorCollection.php(150): TranslateBehavior->setup(Object(Link), Array)
#4 /var/www/yomken.com/public_html/lib/Cake/Model/BehaviorCollection.php(68): BehaviorCollection->load('Translate', Array)
#5 /var/www/yomken.com/public_html/lib/Cake/Model/Model.php(749): BehaviorCollection->init('Link', Array)
#6 [internal function]: Model->__construct(Array)
#7 /var/www/yomken.com/public_html/lib/Cake/Utility/ClassRegistry.php(165): ReflectionClass->newInstance(Array)
#8 /var/www/yomken.com/public_html/lib/Cake/Controller/Controller.php(734): ClassRegistry::init(Array)
#9 /var/www/yomken.com/public_html/app/Controller/AppController.php(309): Controller->loadModel('Link')
#10 /var/www/yomken.com/public_html/app/Controller/PagePagesController.php(28): AppController->beforeFilter()
#11 [internal function]: PagePagesController->beforeFilter(Object(CakeEvent))
#12 /var/www/yomken.com/public_html/lib/Cake/Event/CakeEventManager.php(248): call_user_func(Array, Object(CakeEvent))
#13 /var/www/yomken.com/public_html/lib/Cake/Controller/Controller.php(670): CakeEventManager->dispatch(Object(CakeEvent))
#14 /var/www/yomken.com/public_html/lib/Cake/Routing/Dispatcher.php(184): Controller->startupProcess()
#15 /var/www/yomken.com/public_html/lib/Cake/Routing/Dispatcher.php(162): Dispatcher->_invoke(Object(PagePagesController), Object(CakeRequest), Object(CakeResponse))
#16 /var/www/yomken.com/public_html/app/webroot/index.php(109): Dispatcher->dispatch(Object(CakeRequest), Object(CakeResponse))
#17 {main}'
$debugTypes = array(
(int) 0 => 'notice',
(int) 1 => 'info',
(int) 2 => 'debug'
)
$filename = '/var/www/yomken.com/public_html/app/tmp/logs/error.log'
$output = '2026-09-15 10:41:09 Error: [MissingConnectionException] Database connection "Mysql" is missing, or could not be created.
Exception Attributes: array (
'class' => 'Mysql',
'message' => 'SQLSTATE[HY000] [2002] No such file or directory',
'enabled' => true,
)
Request URL: /
Stack Trace:
#0 /var/www/yomken.com/public_html/lib/Cake/Model/Datasource/DboSource.php(262): Mysql->connect()
#1 /var/www/yomken.com/public_html/lib/Cake/Model/ConnectionManager.php(102): DboSource->__construct(Array)
#2 /var/www/yomken.com/public_html/lib/Cake/Model/Behavior/TranslateBehavior.php(68): ConnectionManager::getDataSource('default')
#3 /var/www/yomken.com/public_html/lib/Cake/Model/BehaviorCollection.php(150): TranslateBehavior->setup(Object(Link), Array)
#4 /var/www/yomken.com/public_html/lib/Cake/Model/BehaviorCollection.php(68): BehaviorCollection->load('Translate', Array)
#5 /var/www/yomken.com/public_html/lib/Cake/Model/Model.php(749): BehaviorCollection->init('Link', Array)
#6 [internal function]: Model->__construct(Array)
#7 /var/www/yomken.com/public_html/lib/Cake/Utility/ClassRegistry.php(165): ReflectionClass->newInstance(Array)
#8 /var/www/yomken.com/public_html/lib/Cake/Controller/Controller.php(734): ClassRegistry::init(Array)
#9 /var/www/yomken.com/public_html/app/Controller/AppController.php(309): Controller->loadModel('Link')
#10 /var/www/yomken.com/public_html/app/Controller/PagePagesController.php(28): AppController->beforeFilter()
#11 [internal function]: PagePagesController->beforeFilter(Object(CakeEvent))
#12 /var/www/yomken.com/public_html/lib/Cake/Event/CakeEventManager.php(248): call_user_func(Array, Object(CakeEvent))
#13 /var/www/yomken.com/public_html/lib/Cake/Controller/Controller.php(670): CakeEventManager->dispatch(Object(CakeEvent))
#14 /var/www/yomken.com/public_html/lib/Cake/Routing/Dispatcher.php(184): Controller->startupProcess()
#15 /var/www/yomken.com/public_html/lib/Cake/Routing/Dispatcher.php(162): Dispatcher->_invoke(Object(PagePagesController), Object(CakeRequest), Object(CakeResponse))
#16 /var/www/yomken.com/public_html/app/webroot/index.php(109): Dispatcher->dispatch(Object(CakeRequest), Object(CakeResponse))
#17 {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 ??