Cache::write() - CORE/Cake/Cache/Cache.php, line 323
I18n::translate() - CORE/Cake/I18n/I18n.php, line 237
__d - CORE/Cake/basics.php, line 617
Cache::write() - CORE/Cake/Cache/Cache.php, line 321
I18n::translate() - CORE/Cake/I18n/I18n.php, line 237
__d - CORE/Cake/basics.php, line 617
AuthComponent::_setDefaults() - CORE/Cake/Controller/Component/AuthComponent.php, line 431
AuthComponent::startup() - CORE/Cake/Controller/Component/AuthComponent.php, line 295
ObjectCollection::trigger() - CORE/Cake/Utility/ObjectCollection.php, line 128
call_user_func - [internal], line ??
CakeEventManager::dispatch() - CORE/Cake/Event/CakeEventManager.php, line 242
Controller::startupProcess() - CORE/Cake/Controller/Controller.php, line 675
Dispatcher::_invoke() - CORE/Cake/Routing/Dispatcher.php, line 187
Dispatcher::dispatch() - CORE/Cake/Routing/Dispatcher.php, line 165
[main] - APP/webroot/index.php, line 108
Warning (512): _cake_core_ cache was unable to write 'cake_eng' to File cache [CORE/Cake/Cache/Cache.php, line 323]
Cache::write() - CORE/Cake/Cache/Cache.php, line 323
I18n::translate() - CORE/Cake/I18n/I18n.php, line 237
__d - CORE/Cake/basics.php, line 617
AuthComponent::_setDefaults() - CORE/Cake/Controller/Component/AuthComponent.php, line 431
AuthComponent::startup() - CORE/Cake/Controller/Component/AuthComponent.php, line 295
ObjectCollection::trigger() - CORE/Cake/Utility/ObjectCollection.php, line 128
call_user_func - [internal], line ??
CakeEventManager::dispatch() - CORE/Cake/Event/CakeEventManager.php, line 242
Controller::startupProcess() - CORE/Cake/Controller/Controller.php, line 675
Dispatcher::_invoke() - CORE/Cake/Routing/Dispatcher.php, line 187
Dispatcher::dispatch() - CORE/Cake/Routing/Dispatcher.php, line 165
[main] - APP/webroot/index.php, line 108
Warning (2): file_put_contents(/var/www/vhosts/timesport.pl/httpdocs/app/tmp/logs/error.log) [http://php.net/function.file-put-contents]: failed to open stream: Permission denied [CORE/Cake/Log/Engine/FileLog.php, line 142]
$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: /competition_pages/register/19?fbclid=IwAR1Ivqs97KrIHgXFgTCdp6Yt4vDSzuHdErHFzDPNN1ownZIPGq-VAYw0HLQ
Stack Trace:
#0 /var/www/vhosts/timesport.pl/httpdocs/lib/Cake/Model/Datasource/DboSource.php(260): Mysql->connect()
#1 /var/www/vhosts/timesport.pl/httpdocs/lib/Cake/Model/ConnectionManager.php(105): DboSource->__construct(Array)
#2 /var/www/vhosts/timesport.pl/httpdocs/lib/Cake/Model/Model.php(3524): ConnectionManager::getDataSource('default')
#3 /var/www/vhosts/timesport.pl/httpdocs/lib/Cake/Model/Model.php(1136): Model->setDataSource('default')
#4 /var/www/vhosts/timesport.pl/httpdocs/lib/Cake/Model/Model.php(3551): Model->setSource('competitions')
#5 /var/www/vhosts/timesport.pl/httpdocs/lib/Cake/Model/Model.php(808): Model->getDataSource()
#6 /var/www/vhosts/timesport.pl/httpdocs/app/Controller/CompetitionPagesController.php(121): Model->__call('findById', Array)
#7 /var/www/vhosts/timesport.pl/httpdocs/app/Controller/CompetitionPagesController.php(121): Competition->findById('19')
#8 [internal function]: CompetitionPagesController->register('19')
#9 /var/www/vhosts/timesport.pl/httpdocs/lib/Cake/Controller/Controller.php(490): ReflectionMethod->invokeArgs(Object(CompetitionPagesController), Array)
#10 /var/www/vhosts/timesport.pl/httpdocs/lib/Cake/Routing/Dispatcher.php(191): Controller->invokeAction(Object(CakeRequest))
#11 /var/www/vhosts/timesport.pl/httpdocs/lib/Cake/Routing/Dispatcher.php(165): Dispatcher->_invoke(Object(CompetitionPagesController), Object(CakeRequest))
#12 /var/www/vhosts/timesport.pl/httpdocs/app/webroot/index.php(108): Dispatcher->dispatch(Object(CakeRequest), Object(CakeResponse))
#13 {main}'
$output = '2025-04-24 11:13:35 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: /competition_pages/register/19?fbclid=IwAR1Ivqs97KrIHgXFgTCdp6Yt4vDSzuHdErHFzDPNN1ownZIPGq-VAYw0HLQ
Stack Trace:
#0 /var/www/vhosts/timesport.pl/httpdocs/lib/Cake/Model/Datasource/DboSource.php(260): Mysql->connect()
#1 /var/www/vhosts/timesport.pl/httpdocs/lib/Cake/Model/ConnectionManager.php(105): DboSource->__construct(Array)
#2 /var/www/vhosts/timesport.pl/httpdocs/lib/Cake/Model/Model.php(3524): ConnectionManager::getDataSource('default')
#3 /var/www/vhosts/timesport.pl/httpdocs/lib/Cake/Model/Model.php(1136): Model->setDataSource('default')
#4 /var/www/vhosts/timesport.pl/httpdocs/lib/Cake/Model/Model.php(3551): Model->setSource('competitions')
#5 /var/www/vhosts/timesport.pl/httpdocs/lib/Cake/Model/Model.php(808): Model->getDataSource()
#6 /var/www/vhosts/timesport.pl/httpdocs/app/Controller/CompetitionPagesController.php(121): Model->__call('findById', Array)
#7 /var/www/vhosts/timesport.pl/httpdocs/app/Controller/CompetitionPagesController.php(121): Competition->findById('19')
#8 [internal function]: CompetitionPagesController->register('19')
#9 /var/www/vhosts/timesport.pl/httpdocs/lib/Cake/Controller/Controller.php(490): ReflectionMethod->invokeArgs(Object(CompetitionPagesController), Array)
#10 /var/www/vhosts/timesport.pl/httpdocs/lib/Cake/Routing/Dispatcher.php(191): Controller->invokeAction(Object(CakeRequest))
#11 /var/www/vhosts/timesport.pl/httpdocs/lib/Cake/Routing/Dispatcher.php(165): Dispatcher->_invoke(Object(CompetitionPagesController), Object(CakeRequest))
#12 /var/www/vhosts/timesport.pl/httpdocs/app/webroot/index.php(108): Dispatcher->dispatch(Object(CakeRequest), Object(CakeResponse))
#13 {main}
'
$filename = 'error.log'
$pathname = '/var/www/vhosts/timesport.pl/httpdocs/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 442
ErrorHandler::_log() - CORE/Cake/Error/ErrorHandler.php, line 178
ErrorHandler::handleException() - CORE/Cake/Error/ErrorHandler.php, line 110
[main] - [internal], line ??
Error:
A Database connection using "Mysql" was missing or unable to connect.
The database server returned this error: SQLSTATE[HY000] [2002] Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)
Notice:
If you want to customize this error message, create app/View/Errors/missing_connection.ctp
'message' => 'Datasource is not found in Model/Datasource package.'));} self::$_dataSources[$name] = new $class(self::$config->{$name}); self::$_dataSources[$name]->configKeyName = $name;