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] [1040] Too many connections',
'enabled' => true,
)
Request URL: /login
Stack Trace:
#0 /home/kweather_ftp/shared/files/ak.selfish4.com/lib/Cake/Model/Datasource/DboSource.php(260): Mysql->connect()
#1 /home/kweather_ftp/shared/files/ak.selfish4.com/lib/Cake/Model/ConnectionManager.php(105): DboSource->__construct(Array)
#2 /home/kweather_ftp/shared/files/ak.selfish4.com/lib/Cake/Model/Model.php(3476): ConnectionManager::getDataSource('default')
#3 /home/kweather_ftp/shared/files/ak.selfish4.com/lib/Cake/Model/Model.php(1126): Model->setDataSource('default')
#4 /home/kweather_ftp/shared/files/ak.selfish4.com/lib/Cake/Model/Model.php(3498): Model->setSource('prefectures')
#5 /home/kweather_ftp/shared/files/ak.selfish4.com/lib/Cake/Model/Model.php(1355): Model->getDataSource()
#6 /home/kweather_ftp/shared/files/ak.selfish4.com/lib/Cake/Model/Model.php(1447): Model->schema()
#7 /home/kweather_ftp/shared/files/ak.selfish4.com/lib/Cake/Model/Model.php(1434): Model->hasField('title', false)
#8 /home/kweather_ftp/shared/files/ak.selfish4.com/lib/Cake/Model/Model.php(880): Model->hasField(Array)
#9 /home/kweather_ftp/shared/files/ak.selfish4.com/lib/Cake/Model/Model.php(3069): Model->__get('displayField')
#10 /home/kweather_ftp/shared/files/ak.selfish4.com/lib/Cake/Model/Model.php(2934): Model->_findList('before', Array)
#11 /home/kweather_ftp/shared/files/ak.selfish4.com/lib/Cake/Model/Model.php(2869): Model->buildQuery('list', Array)
#12 /home/kweather_ftp/shared/files/ak.selfish4.com/app/Controller/AppController.php(63): Model->find('list')
#13 /home/kweather_ftp/shared/files/ak.selfish4.com/app/Controller/AppController.php(100): AppController->_setLayout()
#14 /home/kweather_ftp/shared/plugins/KweatherShared/Controller/SharedUsersController.php(87): AppController->beforeRender()
#15 [internal function]: SharedUsersController->beforeRender(Object(CakeEvent))
#16 /home/kweather_ftp/shared/files/ak.selfish4.com/lib/Cake/Event/CakeEventManager.php(247): call_user_func(Array, Object(CakeEvent))
#17 /home/kweather_ftp/shared/files/ak.selfish4.com/lib/Cake/Controller/Controller.php(925): CakeEventManager->dispatch(Object(CakeEvent))
#18 /home/kweather_ftp/shared/plugins/KweatherShared/Controller/SharedUsersController.php(102): Controller->render('login', NULL)
#19 /home/kweather_ftp/shared/files/ak.selfish4.com/lib/Cake/Routing/Dispatcher.php(192): SharedUsersController->render()
#20 /home/kweather_ftp/shared/files/ak.selfish4.com/lib/Cake/Routing/Dispatcher.php(160): Dispatcher->_invoke(Object(AppUsersController), Object(CakeRequest), Object(CakeResponse))
#21 /home/kweather_ftp/public_html/ak.selfish4.com/webroot/index.php(108): Dispatcher->dispatch(Object(CakeRequest), Object(CakeResponse))
#22 {main}'
$output = '2025-12-15 05:21:15 Error: [MissingConnectionException] Database connection "Mysql" is missing, or could not be created.
Exception Attributes: array (
'class' => 'Mysql',
'message' => 'SQLSTATE[HY000] [1040] Too many connections',
'enabled' => true,
)
Request URL: /login
Stack Trace:
#0 /home/kweather_ftp/shared/files/ak.selfish4.com/lib/Cake/Model/Datasource/DboSource.php(260): Mysql->connect()
#1 /home/kweather_ftp/shared/files/ak.selfish4.com/lib/Cake/Model/ConnectionManager.php(105): DboSource->__construct(Array)
#2 /home/kweather_ftp/shared/files/ak.selfish4.com/lib/Cake/Model/Model.php(3476): ConnectionManager::getDataSource('default')
#3 /home/kweather_ftp/shared/files/ak.selfish4.com/lib/Cake/Model/Model.php(1126): Model->setDataSource('default')
#4 /home/kweather_ftp/shared/files/ak.selfish4.com/lib/Cake/Model/Model.php(3498): Model->setSource('prefectures')
#5 /home/kweather_ftp/shared/files/ak.selfish4.com/lib/Cake/Model/Model.php(1355): Model->getDataSource()
#6 /home/kweather_ftp/shared/files/ak.selfish4.com/lib/Cake/Model/Model.php(1447): Model->schema()
#7 /home/kweather_ftp/shared/files/ak.selfish4.com/lib/Cake/Model/Model.php(1434): Model->hasField('title', false)
#8 /home/kweather_ftp/shared/files/ak.selfish4.com/lib/Cake/Model/Model.php(880): Model->hasField(Array)
#9 /home/kweather_ftp/shared/files/ak.selfish4.com/lib/Cake/Model/Model.php(3069): Model->__get('displayField')
#10 /home/kweather_ftp/shared/files/ak.selfish4.com/lib/Cake/Model/Model.php(2934): Model->_findList('before', Array)
#11 /home/kweather_ftp/shared/files/ak.selfish4.com/lib/Cake/Model/Model.php(2869): Model->buildQuery('list', Array)
#12 /home/kweather_ftp/shared/files/ak.selfish4.com/app/Controller/AppController.php(63): Model->find('list')
#13 /home/kweather_ftp/shared/files/ak.selfish4.com/app/Controller/AppController.php(100): AppController->_setLayout()
#14 /home/kweather_ftp/shared/plugins/KweatherShared/Controller/SharedUsersController.php(87): AppController->beforeRender()
#15 [internal function]: SharedUsersController->beforeRender(Object(CakeEvent))
#16 /home/kweather_ftp/shared/files/ak.selfish4.com/lib/Cake/Event/CakeEventManager.php(247): call_user_func(Array, Object(CakeEvent))
#17 /home/kweather_ftp/shared/files/ak.selfish4.com/lib/Cake/Controller/Controller.php(925): CakeEventManager->dispatch(Object(CakeEvent))
#18 /home/kweather_ftp/shared/plugins/KweatherShared/Controller/SharedUsersController.php(102): Controller->render('login', NULL)
#19 /home/kweather_ftp/shared/files/ak.selfish4.com/lib/Cake/Routing/Dispatcher.php(192): SharedUsersController->render()
#20 /home/kweather_ftp/shared/files/ak.selfish4.com/lib/Cake/Routing/Dispatcher.php(160): Dispatcher->_invoke(Object(AppUsersController), Object(CakeRequest), Object(CakeResponse))
#21 /home/kweather_ftp/public_html/ak.selfish4.com/webroot/index.php(108): Dispatcher->dispatch(Object(CakeRequest), Object(CakeResponse))
#22 {main}
'
$filename = 'error.log'
$pathname = '/home/kweather_ftp/public_html/ak.selfish4.com/app/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 452
ErrorHandler::_log() - CORE/Cake/Error/ErrorHandler.php, line 178
ErrorHandler::handleException() - CORE/Cake/Error/ErrorHandler.php, line 111
[main] - [internal], line ??