PDOException #1040

SQLSTATE[08004] [1040] Too many connections search►

Source file

File: .../www/_fcmscore/data/2.56/class/PDO/LoggingPDO.php:11

1: <?php 2: 3: 4: namespace foxxy\PDO; 5: 6: 7: class LoggingPDO extends \PDO 8: { 9: public function __construct($dsn, $username, $passwd, $options) 10: { 11: parent::__construct($dsn, $username, $passwd, $options); 12: 13: $this->setAttribute(\PDO::ATTR_STATEMENT_CLASS, ['foxxy\PDO\LoggingPDOStatement']); 14: } 15:

Call stack

  1. .../www/_fcmscore/data/2.56/class/PDO/LoggingPDO.php:11 source  PDO->__construct(arguments)

    1: <?php 2: 3: 4: namespace foxxy\PDO; 5: 6: 7: class LoggingPDO extends \PDO 8: { 9: public function __construct($dsn, $username, $passwd, $options) 10: { 11: parent::__construct($dsn, $username, $passwd, $options); 12: 13: $this->setAttribute(\PDO::ATTR_STATEMENT_CLASS, ['foxxy\PDO\LoggingPDOStatement']); 14: } 15:
    $dsn
    "mysql:dbname=petrafinance.cz_;host=localhost" (44)
    
    $username
    "petrafinance.cz_" (16)
    
    $passwd
    "nFq6Syf380" (10)
    
    $options
    
    
  2. .../www/_fcmscore/data/2.56/class/PDO/PdoProvider.php:22 source  foxxy\PDO\LoggingPDO->__construct(arguments)

    12: $options = array( 13: \PDO::MYSQL_ATTR_INIT_COMMAND => 'SET NAMES utf8', 14: \PDO::ATTR_ERRMODE => \PDO::ERRMODE_EXCEPTION 15: ); 16: 17: $this->pdo = new LoggingPDO( 18: sprintf('mysql:dbname=%s;host=%s', $params['dbname'], $params['host']), 19: $params['user'], 20: $params['password'], 21: $options 22: ); 23: } 24: 25: /** 26: * @return LoggingPDO
    $dsn
    "mysql:dbname=petrafinance.cz_;host=localhost" (44)
    
    $username
    "petrafinance.cz_" (16)
    
    $passwd
    "nFq6Syf380" (10)
    
    $options
    
    
  3. .../parse/n_cache/container/Container_14d7103555.php:277 source  foxxy\PDO\PdoProvider->__construct(arguments)

    267: /** 268: * @return foxxy\PDO\PdoProvider 269: */ 270: public function createService__PdoProvider() 271: { 272: $service = new foxxy\PDO\PdoProvider(array( 273: 'user' => 'petrafinance.cz_', 274: 'password' => 'nFq6Syf380', 275: 'host' => 'localhost', 276: 'dbname' => 'petrafinance.cz_', 277: )); 278: return $service; 279: } 280: 281:
    $params
    
    
  4. inner-code Container_14d7103555->createService__PdoProvider()

  5. .../data/2.56/ext_apps/Nette/DI/Container.php:157 source  call_user_func_array(arguments)

    147: $method = self::getMethodName($name); 148: if (isset($this->creating[$name])) { 149: throw new Nette\InvalidStateException(sprintf('Circular reference detected for services: %s.', implode(', ', array_keys($this->creating)))); 150: 151: } elseif (!method_exists($this, $method) || !($rm = new \ReflectionMethod($this, $method)) || $rm->getName() !== $method) { 152: throw new MissingServiceException("Service '$name' not found."); 153: } 154: 155: $this->creating[$name] = TRUE; 156: try { 157: $service = call_user_func_array(array($this, $method), $args); 158: } catch (\Exception $e) { 159: unset($this->creating[$name]); 160: throw $e; 161: }
    $function_name
    
    
    $parameters
    array ()
    
  6. .../data/2.56/ext_apps/Nette/DI/Container.php:103 source  Nette\DI\Container->createService(arguments)

    93: * @param string 94: * @return object 95: * @throws MissingServiceException 96: */ 97: public function getService($name) 98: { 99: if (!isset($this->registry[$name])) { 100: if (isset($this->meta[self::ALIASES][$name])) { 101: return $this->getService($this->meta[self::ALIASES][$name]); 102: } 103: $this->registry[$name] = $this->createService($name); 104: } 105: return $this->registry[$name]; 106: } 107:
    $name
    "PdoProvider" (11)
    
  7. .../parse/n_cache/container/Container_14d7103555.php:259 source  Nette\DI\Container->getService(arguments)

    249: $service = new foxxy\Models\FrontendUserModel($this->getService('databaze')); 250: return $service; 251: } 252: 253: 254: /** 255: * @return foxxy\PDO\LoggingPDO 256: */ 257: public function createService__PDO() 258: { 259: $service = $this->getService('PdoProvider')->get(); 260: if (!$service instanceof foxxy\PDO\LoggingPDO) { 261: throw new Nette\UnexpectedValueException('Unable to create service \'PDO\', value returned by factory is not foxxy\PDO\LoggingPDO type.'); 262: } 263: return $service;
    $name
    "PdoProvider" (11)
    
  8. inner-code Container_14d7103555->createService__PDO()

  9. .../data/2.56/ext_apps/Nette/DI/Container.php:157 source  call_user_func_array(arguments)

    147: $method = self::getMethodName($name); 148: if (isset($this->creating[$name])) { 149: throw new Nette\InvalidStateException(sprintf('Circular reference detected for services: %s.', implode(', ', array_keys($this->creating)))); 150: 151: } elseif (!method_exists($this, $method) || !($rm = new \ReflectionMethod($this, $method)) || $rm->getName() !== $method) { 152: throw new MissingServiceException("Service '$name' not found."); 153: } 154: 155: $this->creating[$name] = TRUE; 156: try { 157: $service = call_user_func_array(array($this, $method), $args); 158: } catch (\Exception $e) { 159: unset($this->creating[$name]); 160: throw $e; 161: }
    $function_name
    
    
    $parameters
    array ()
    
  10. .../data/2.56/ext_apps/Nette/DI/Container.php:103 source  Nette\DI\Container->createService(arguments)

    93: * @param string 94: * @return object 95: * @throws MissingServiceException 96: */ 97: public function getService($name) 98: { 99: if (!isset($this->registry[$name])) { 100: if (isset($this->meta[self::ALIASES][$name])) { 101: return $this->getService($this->meta[self::ALIASES][$name]); 102: } 103: $this->registry[$name] = $this->createService($name); 104: } 105: return $this->registry[$name]; 106: } 107:
    $name
    "PDO" (3)
    
  11. .../parse/n_cache/container/Container_14d7103555.php:349 source  Nette\DI\Container->getService(arguments)

    339: { 340: return $this; 341: } 342: 343: 344: /** 345: * @return PdoDatabase 346: */ 347: public function createServiceDatabaze() 348: { 349: $service = new PdoDatabase($this->getService('PDO'), 'petrafinance.cz_'); 350: return $service; 351: } 352: 353:
    $name
    "PDO" (3)
    
  12. inner-code Container_14d7103555->createServiceDatabaze()

  13. .../data/2.56/ext_apps/Nette/DI/Container.php:157 source  call_user_func_array(arguments)

    147: $method = self::getMethodName($name); 148: if (isset($this->creating[$name])) { 149: throw new Nette\InvalidStateException(sprintf('Circular reference detected for services: %s.', implode(', ', array_keys($this->creating)))); 150: 151: } elseif (!method_exists($this, $method) || !($rm = new \ReflectionMethod($this, $method)) || $rm->getName() !== $method) { 152: throw new MissingServiceException("Service '$name' not found."); 153: } 154: 155: $this->creating[$name] = TRUE; 156: try { 157: $service = call_user_func_array(array($this, $method), $args); 158: } catch (\Exception $e) { 159: unset($this->creating[$name]); 160: throw $e; 161: }
    $function_name
    
    
    $parameters
    array ()
    
  14. .../data/2.56/ext_apps/Nette/DI/Container.php:103 source  Nette\DI\Container->createService(arguments)

    93: * @param string 94: * @return object 95: * @throws MissingServiceException 96: */ 97: public function getService($name) 98: { 99: if (!isset($this->registry[$name])) { 100: if (isset($this->meta[self::ALIASES][$name])) { 101: return $this->getService($this->meta[self::ALIASES][$name]); 102: } 103: $this->registry[$name] = $this->createService($name); 104: } 105: return $this->registry[$name]; 106: } 107:
    $name
    "databaze" (8)
    
  15. /var/www/_fcmscore/data/2.56/class/container.php:166 source  Nette\DI\Container->getService(arguments)

    156: * get declared service 157: * @param string $name 158: * @param array $args 159: * @throws Exception 160: * @return object 161: * @deprecated 162: */ 163: public function getService($name, $args = array()) { 164: 165: if ($this->netteContainer->hasService($name)) { 166: return $this->netteContainer->getService($name); 167: } 168: 169: return $this->netteContainer->getByType($name); 170:
    $name
    "databaze" (8)
    
  16. .../petrafinance.cz_2016/config/init/site_enable.php:31 source  Container->getService(arguments)

    21: logger::logTime('init','Inicializace'); 22: 23: // kontrola lokalni verze foxxy 24: if($GLOBALS['provoz'] == 'localhost'){ 25: require_once($GLOBALS['global_way'].'/global_settings/checkCmsRemoteVersion.php'); 26: } 27: 28: logger::logTime('databaseVarsInit'); 29: 30: // inicializace enumu a mails skrze kontainer 31: c()->initBaseEnums(c()->getService('databaze')); // should be switch on when using more than basic enums instead of lazy loading of enums 32: c()->initMails(c()->getService('databaze')); 33: 34: logger::logTime('databaseVarsInit'); 35:
    $name
    "databaze" (8)
    
  17. /var/www/petrafinance.cz_2016/page/index.php:9 source  require_once(arguments)

    1: <?php 2: 3: $container = require __DIR__ . '/../config/init/bootstrap.php'; 4: 5: $time = $GLOBALS['page_start_time'] = @microtime(true); 6: 7: require_once(ROOT_FOLDER . '/config/init/defineGlobalVariables.php'); 8: require_once(CONFIG_DIR . '/web_settings.php'); 9: require_once(CONFIG_DIR . '/init/site_enable.php'); // TODO: would be refactored 10: 11: // TODO: all this shit to line 32 should be router 12: $_GET['java_mess'] = ''; 13: 14: if ((!isset($_GET['p'])) || ($_GET['p'] == 'index')) { 15: $_GET['p'] = $menu['start'];
    #0
    "/var/www/petrafinance.cz_2016/config/init/site_enable.php" (57)
    

Environment

$_SERVER

USER
"www-data" (8)
HOME
"/var/www" (8)
FCGI_ROLE
"RESPONDER" (9)
REDIRECT_HTTPS
"on" (2)
REDIRECT_SSL_TLS_SNI
"www.petrafinance.cz" (19)
REDIRECT_STATUS
"200" (3)
HTTPS
"on" (2)
SSL_TLS_SNI
"www.petrafinance.cz" (19)
SSL_SERVER_S_DN_CN
"petrafinance.cz" (15)
SSL_SERVER_I_DN_C
"US" (2)
SSL_SERVER_I_DN_O
"Let's Encrypt" (13)
SSL_SERVER_I_DN_CN
"R3" (2)
SSL_SERVER_SAN_DNS_0
"petrafinance.cz" (15)
SSL_SERVER_SAN_DNS_1
"www.petrafinance.cz" (19)
SSL_VERSION_INTERFACE
"mod_ssl/2.4.41" (14)
SSL_VERSION_LIBRARY
"OpenSSL/1.1.1f" (14)
SSL_PROTOCOL
"TLSv1.3" (7)
SSL_SECURE_RENEG
"false" (5)
SSL_COMPRESS_METHOD
"NULL" (4)
SSL_CIPHER
"TLS_AES_256_GCM_SHA384" (22)
SSL_CIPHER_EXPORT
"false" (5)
SSL_CIPHER_USEKEYSIZE
"256" (3)
SSL_CIPHER_ALGKEYSIZE
"256" (3)
SSL_CLIENT_VERIFY
"NONE" (4)
SSL_SERVER_M_VERSION
"3"
SSL_SERVER_M_SERIAL
"03026FA727AB17C498ACEA4208BB09132284" (36)
SSL_SERVER_V_START
"Jul 17 23:33:22 2022 GMT" (24)
SSL_SERVER_V_END
"Oct 15 23:33:21 2022 GMT" (24)
SSL_SERVER_S_DN
"CN=petrafinance.cz" (18)
SSL_SERVER_I_DN
"CN=R3,O=Let's Encrypt,C=US" (26)
SSL_SERVER_A_KEY
"rsaEncryption" (13)
SSL_SERVER_A_SIG
"sha256WithRSAEncryption" (23)
SSL_SESSION_ID
"f4bae7466ba84ae1c2dbd85354451d9bc673345e3b12ccb8e38ee6da6d4250df" (64)
SSL_SESSION_RESUMED
"Initial" (7)
proxy-nokeepalive
"1"
HTTP_HOST
"www.petrafinance.cz" (19)
HTTP_CONNECTION
"keep-alive" (10)
HTTP_SEC_CH_UA
"".Not/A)Brand";v="99", "Google Chrome";v="103", "Chromium";v="103"" (66)
HTTP_SEC_CH_UA_MOBILE
"?1" (2)
HTTP_SEC_CH_UA_PLATFORM
""Android"" (9)
HTTP_UPGRADE_INSECURE_REQUESTS
"1"
HTTP_USER_AGENT
"Mozilla/5.0 (Linux; Android 12; Mi Note 10 Lite) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/103.0.0.0 Mobile Safari/537.36" (125)
HTTP_ACCEPT
"text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9" (135)
HTTP_SEC_FETCH_SITE
"none" (4)
HTTP_SEC_FETCH_MODE
"navigate" (8)
HTTP_SEC_FETCH_DEST
"document" (8)
HTTP_REFERER
"https://www.google.com/" (23)
HTTP_ACCEPT_ENCODING
"gzip, deflate, br" (17)
HTTP_ACCEPT_LANGUAGE
"ru-RU,ru;q=0.9,en-US;q=0.8,en;q=0.7,uk;q=0.6" (44)
HTTP_COOKIE
"_ga=GA1.2.1082684295.1601057053; tarteaucitron=!analytics=true!phpsessionid=true" (80)
PATH
"/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/snap/bin" (70)
SERVER_SIGNATURE
"<address>Apache/2.4.41 (Ubuntu) Server at www.petrafinance.cz Port 443</address>
" (81)
SERVER_SOFTWARE
"Apache/2.4.41 (Ubuntu)" (22)
SERVER_NAME
"www.petrafinance.cz" (19)
SERVER_ADDR
"89.221.223.239" (14)
SERVER_PORT
"443" (3)
REMOTE_ADDR
"45.139.90.90" (12)
DOCUMENT_ROOT
"/var/www/petrafinance.cz_2016" (29)
REQUEST_SCHEME
"https" (5)
CONTEXT_PREFIX
""
CONTEXT_DOCUMENT_ROOT
"/var/www/petrafinance.cz_2016" (29)
SERVER_ADMIN
"aws@inizio.cz" (13)
SCRIPT_FILENAME
"//var/www/petrafinance.cz_2016/page/index.php" (45)
REMOTE_PORT
"38886" (5)
REDIRECT_URL
"/kurzovni-listek.html" (21)
REDIRECT_QUERY_STRING
"p=kurzovni-listek" (17)
GATEWAY_INTERFACE
"CGI/1.1" (7)
SERVER_PROTOCOL
"HTTP/1.1" (8)
REQUEST_METHOD
"GET" (3)
QUERY_STRING
"p=kurzovni-listek" (17)
REQUEST_URI
"/kurzovni-listek.html" (21)
SCRIPT_NAME
"/page/index.php" (15)
PHP_SELF
"/page/index.php" (15)
REQUEST_TIME_FLOAT
1658243253.9084
REQUEST_TIME
1658243253

$_SESSION

SERVER_NAME
"www.petrafinance.cz" (19)
user_token
"4c31b9298cf3614689b16469e996852a" (32)

Constants

ROOT_FOLDER
"/var/www/petrafinance.cz_2016/config/init/../../" (48)
CORE_VERSION
"2.56" (4)
ADMIN_VERSION
"2.53" (4)
NDEBUGGER
TRUE
ROOT_ADDR
"/"
CORE_ADDR
"_fcmscore" (9)
CORE_REAL_PATH
"https://core.foxxycms.cz//" (26)
CORE_PATH
"/var/www/_fcmscore//" (20)
IMAGE_ADDR
"galerie" (7)
DOWN_ADDR
"download" (8)
PARSE_ADDR
"parse" (5)
FCACHE_ADDR
"foxxy_cache" (11)
PAGE_ADDR
"page" (4)
ADMIN_ADDR
"admin" (5)
CONFIG_ADDR
"config" (6)
CONFIG_DIR
"/var/www/petrafinance.cz_2016/config/init/../../config/" (55)
C_VERIFY_HASH
"xrshfcY3f8nQ4Dw5aYdDjDHS0XiM7Z" (30)
C_VERIFY_HQ_IP
"188.120.222.195" (15)
NDEBUGGER_ADMIN
TRUE
ABOVE_ROOT_FOLDER
FALSE
DOMAIN
"www.petrafinance.cz" (19)
IMAGE_SERVER
"/galerie/" (9)
DOWN_SERVER
"/download/" (10)
MYURL
"https://www.petrafinance.cz/" (28)
PARSE_SERVER
"/parse/" (7)
IMAGE_URL
"https://www.petrafinance.cz/galerie/" (36)
DOWN_URL
"https://www.petrafinance.cz/download/" (37)
PARSE_URL
"https://www.petrafinance.cz/parse/" (34)
N_CACHE_DIR
"/var/www/petrafinance.cz_2016/config/init/../..//parse/n_cache" (62)
P
"https://www.petrafinance.cz/page/" (33)
A
"https://www.petrafinance.cz/admin/" (34)
HTMLCACHE
"/var/www/petrafinance.cz_2016/config/init/../../parse/html_cache/" (65)
EXT_DIR
"https://www.petrafinance.cz/ext_apps/" (37)
PROJECT
"petrafinance_cz_2016" (20)
CR
"
"
BR
"<br />" (6)
NS
"onclick = "window.open(this.href, '_blank'); return false;"" (59)
L
"/"
LF
"/"
URL_NOW
"/kurzovni-listek.html" (21)
JARO
"03-20" (5)
LETO
"06-21" (5)
PODZIM
"09-23" (5)
ZIMA
"12-21" (5)
DATETIME_FORMAT_SQL
16
LAN
"cs" (2)

Included files (60)

/var/www/petrafinance.cz_2016/page/index.php
/var/www/petrafinance.cz_2016/config/init/bootstrap.php
/var/www/petrafinance.cz_2016/config/environments.php
/var/www/_fcmscore/data/2.56/global_settings/autoloading.php
/var/www/_fcmscore/data/2.56/ext_apps/Nette/loader.php
/var/www/_fcmscore/data/2.56/ext_apps/Nette/Loaders/NetteLoader.php
/var/www/_fcmscore/data/2.56/ext_apps/Nette/Bootstrap/Configurator.php
/var/www/_fcmscore/data/2.56/ext_apps/Nette/Utils/Object.php
/var/www/_fcmscore/data/2.56/ext_apps/Nette/DI/CompilerExtension.php
/var/www/_fcmscore/data/2.56/ext_apps/Nette/Tracy/Bar.php
/var/www/_fcmscore/data/2.56/ext_apps/Nette/Tracy/BlueScreen.php
/var/www/_fcmscore/data/2.56/ext_apps/Nette/Tracy/Dumper.php
/var/www/_fcmscore/data/2.56/ext_apps/Nette/Latte/exceptions.php
/var/www/_fcmscore/data/2.56/ext_apps/Nette/Latte/IMacro.php
/var/www/_fcmscore/data/2.56/ext_apps/Nette/Latte/Macros/MacroSet.php
/var/www/_fcmscore/data/2.56/ext_apps/Nette/Latte/Object.php
/var/www/_fcmscore/data/2.56/ext_apps/Nette/Utils/ArrayHash.php
/var/www/_fcmscore/data/2.56/ext_apps/Nette/Utils/ArrayList.php
/var/www/_fcmscore/data/2.56/ext_apps/Nette/Utils/DateTime.php
/var/www/_fcmscore/data/2.56/ext_apps/Nette/Utils/Image.php
/var/www/_fcmscore/data/2.56/ext_apps/Nette/Utils/ObjectMixin.php
/var/www/_fcmscore/data/2.56/ext_apps/Nette/Neon/Exception.php
/var/www/_fcmscore/data/2.56/ext_apps/Nette/Neon/Entity.php
/var/www/_fcmscore/data/2.56/ext_apps/Nette/Neon/Neon.php
/var/www/_fcmscore/data/2.56/ext_apps/Nette/shortcuts.php
/var/www/_fcmscore/data/2.56/ext_apps/Nette/SafeStream/SafeStream.php
/var/www/_fcmscore/data/2.56/ext_apps/Nette/DI/ContainerLoader.php
/var/www/petrafinance.cz_2016/parse/n_cache/container/Container_14d7103555.php
/var/www/_fcmscore/data/2.56/ext_apps/Nette/DI/Container.php
/var/www/_fcmscore/data/2.56/class/Loaders/BackdoorsLoader.php
/var/www/_fcmscore/data/2.56/class/Container/IRunOnInitialize.php