PDOException (1040)
SQLSTATE[HY000] [1040] Too many connections PDOException thrown with message "SQLSTATE[HY000] [1040] Too many connections" Stacktrace: #5 PDOException in /hox/hoxtinco/public_html/clientes/di.php:93 #4 PDO:__construct in /hox/hoxtinco/public_html/clientes/di.php:93 #3 {closure} in /hox/hoxtinco/public_html/clientes/vendor/pimple/pimple/src/Pimple/Container.php:122 #2 Pimple\Container:offsetGet in /hox/hoxtinco/public_html/clientes/di.php:229 #1 {closure} in /hox/hoxtinco/public_html/clientes/vendor/pimple/pimple/src/Pimple/Container.php:122 #0 Pimple\Container:offsetGet in /hox/hoxtinco/public_html/clientes/index.php:56
Stack frames (6)
5
PDOException
/di.php93
4
PDO __construct
/di.php93
3
{closure}
/vendor/pimple/pimple/src/Pimple/Container.php122
2
Pimple\Container offsetGet
/di.php229
1
{closure}
/vendor/pimple/pimple/src/Pimple/Container.php122
0
Pimple\Container offsetGet
/index.php56
/hox/hoxtinco/public_html/clientes/di.php
 * @return \Box_Crypt
 */
$di['crypt'] = function () use ($di) {
    $crypt = new Box_Crypt();
    $crypt->setDi($di);
 
    return $crypt;
};
 
/*
 * Creates a new PDO object for database connections
 *
 * @param void
 *
 * @return PDO The PDO object used for database connections
 */
$di['pdo'] = function () {
    $config = Config::getProperty('db');
 
    $pdo = new PDO(
        $config['type'] . ':host=' . $config['host'] . ';port=' . $config['port'] . ';dbname=' . $config['name'],
        $config['user'],
        $config['password'],
        [
            PDO::MYSQL_ATTR_USE_BUFFERED_QUERY => true,
            PDO::ATTR_ERRMODE => PDO::ERRMODE_EXCEPTION,
            PDO::ATTR_DEFAULT_FETCH_MODE => PDO::FETCH_ASSOC,
        ]
    );
 
    if (isset($config['debug']) && $config['debug']) {
        $pdo->setAttribute(PDO::ATTR_STATEMENT_CLASS, ['Box_DbLoggedPDOStatement']);
    }
 
    if ($config['type'] === 'mysql') {
        $pdo->exec('SET NAMES "utf8"');
        $pdo->exec('SET CHARACTER SET utf8');
        $pdo->exec('SET CHARACTER_SET_CONNECTION = utf8');
        $pdo->exec('SET character_set_results = utf8');
        $pdo->exec('SET character_set_server = utf8');
Arguments
  1. "SQLSTATE[HY000] [1040] Too many connections"
    
/hox/hoxtinco/public_html/clientes/di.php
 * @return \Box_Crypt
 */
$di['crypt'] = function () use ($di) {
    $crypt = new Box_Crypt();
    $crypt->setDi($di);
 
    return $crypt;
};
 
/*
 * Creates a new PDO object for database connections
 *
 * @param void
 *
 * @return PDO The PDO object used for database connections
 */
$di['pdo'] = function () {
    $config = Config::getProperty('db');
 
    $pdo = new PDO(
        $config['type'] . ':host=' . $config['host'] . ';port=' . $config['port'] . ';dbname=' . $config['name'],
        $config['user'],
        $config['password'],
        [
            PDO::MYSQL_ATTR_USE_BUFFERED_QUERY => true,
            PDO::ATTR_ERRMODE => PDO::ERRMODE_EXCEPTION,
            PDO::ATTR_DEFAULT_FETCH_MODE => PDO::FETCH_ASSOC,
        ]
    );
 
    if (isset($config['debug']) && $config['debug']) {
        $pdo->setAttribute(PDO::ATTR_STATEMENT_CLASS, ['Box_DbLoggedPDOStatement']);
    }
 
    if ($config['type'] === 'mysql') {
        $pdo->exec('SET NAMES "utf8"');
        $pdo->exec('SET CHARACTER SET utf8');
        $pdo->exec('SET CHARACTER_SET_CONNECTION = utf8');
        $pdo->exec('SET character_set_results = utf8');
        $pdo->exec('SET character_set_server = utf8');
Arguments
  1. "mysql:host=localhost;port=3306;dbname=hoxtinco_fb25"
    
  2. "hoxtinco_fb25usr"
    
  3. SensitiveParameterValue {#125}
    
  4. array:3 [
      1000 => true
      3 => 2
      19 => 2
    ]
    
/hox/hoxtinco/public_html/clientes/vendor/pimple/pimple/src/Pimple/Container.php
    {
        if (!isset($this->keys[$id])) {
            throw new UnknownIdentifierException($id);
        }
 
        if (
            isset($this->raw[$id])
            || !\is_object($this->values[$id])
            || isset($this->protected[$this->values[$id]])
            || !\method_exists($this->values[$id], '__invoke')
        ) {
            return $this->values[$id];
        }
 
        if (isset($this->factories[$this->values[$id]])) {
            return $this->values[$id]($this);
        }
 
        $raw = $this->values[$id];
        $val = $this->values[$id] = $raw($this);
        $this->raw[$id] = $raw;
 
        $this->frozen[$id] = true;
 
        return $val;
    }
 
    /**
     * Checks if a parameter or an object is set.
     *
     * @param string $id The unique identifier for the parameter or object
     *
     * @return bool
     */
    #[\ReturnTypeWillChange]
    public function offsetExists($id)
    {
        return isset($this->keys[$id]);
    }
 
Arguments
  1. Pimple\Container {#62}
    
/hox/hoxtinco/public_html/clientes/di.php
 * @param void
 *
 * @return \Box_EventManager
 */
$di['events_manager'] = function () use ($di) {
    $service = new Box_EventManager();
    $service->setDi($di);
 
    return $service;
};
 
/*
 * Creates a new session, applying specified security rules depending on the config.php settings.
 *
 * @param void
 *
 * @return \FOSSBilling\Session
 */
$di['session'] = function () use ($di) {
    $handler = new PdoSessionHandler($di['pdo']);
    $session = new FOSSBilling\Session($handler);
    $session->setDi($di);
    $session->setupSession();
 
    return $session;
};
 
/*
 *
 * @param void
 *
 * @return \FOSSBilling\Request
 */
$di['request'] = fn (): \FOSSBilling\Request => new FOSSBilling\Request();
 
/*
 * @param void
 *
 * @return FilesystemAdapter
 */
Arguments
  1. "pdo"
    
/hox/hoxtinco/public_html/clientes/vendor/pimple/pimple/src/Pimple/Container.php
    {
        if (!isset($this->keys[$id])) {
            throw new UnknownIdentifierException($id);
        }
 
        if (
            isset($this->raw[$id])
            || !\is_object($this->values[$id])
            || isset($this->protected[$this->values[$id]])
            || !\method_exists($this->values[$id], '__invoke')
        ) {
            return $this->values[$id];
        }
 
        if (isset($this->factories[$this->values[$id]])) {
            return $this->values[$id]($this);
        }
 
        $raw = $this->values[$id];
        $val = $this->values[$id] = $raw($this);
        $this->raw[$id] = $raw;
 
        $this->frozen[$id] = true;
 
        return $val;
    }
 
    /**
     * Checks if a parameter or an object is set.
     *
     * @param string $id The unique identifier for the parameter or object
     *
     * @return bool
     */
    #[\ReturnTypeWillChange]
    public function offsetExists($id)
    {
        return isset($this->keys[$id]);
    }
 
Arguments
  1. Pimple\Container {#62}
    
/hox/hoxtinco/public_html/clientes/index.php
        $patcher->applyConfigPatches();
        $patcher->applyCorePatches();
        $di['tools']->emptyFolder(PATH_CACHE);
 
        exit('Any missing config migrations or database patches have been applied and the cache has been cleared');
    } catch (Exception $e) {
        exit('An error occurred while attempting to apply patches: <br>' . $e->getMessage());
    }
}
 
$debugBar['time']->startMeasure('session_start', 'Starting / restoring the session');
/*
 * Workaround: Session IDs get reset when using PGs like PayPal because of the `samesite=strict` cookie attribute, resulting in the client getting logged out.
 * Internally the return and cancel URLs get a restore_session GET parameter attached to them with the proper session ID to restore, so we do so here.
 */
if (!empty($_GET['restore_session'])) {
    session_id($_GET['restore_session']);
}
 
$di['session'];
$debugBar['time']->stopMeasure('session_start');
 
if (strncasecmp($url, ADMIN_PREFIX, strlen(ADMIN_PREFIX)) === 0) {
    define('ADMIN_AREA', true);
    $appUrl = str_replace(ADMIN_PREFIX, '', preg_replace('/\?.+/', '', $url));
    $app = new Box_AppAdmin([], $debugBar);
} else {
    define('ADMIN_AREA', false);
    $appUrl = $url;
    $app = new Box_AppClient([], $debugBar);
}
 
$app->setUrl($appUrl);
$app->setDi($di);
 
$debugBar['time']->startMeasure('translate', 'Setting up translations');
$di['translate']();
$debugBar['time']->stopMeasure('translate');
 
// If HTTP error code has been passed, handle it.
Arguments
  1. "session"
    

Environment & details:

Key Value
PHP Version
"8.3.32"
Error code
1040
Instance ID
"284f6bed-94da-40a0-8d5e-25c6cdd5913b"
Key Value
_url
"/sitemap.xml"
empty
empty
empty
empty
Key Value
USER
"hoxtinco"
HOME
"/hox/hoxtinco"
SCRIPT_NAME
"/index.php"
REQUEST_URI
"/sitemap.xml"
QUERY_STRING
"_url=/sitemap.xml"
REQUEST_METHOD
"GET"
SERVER_PROTOCOL
"HTTP/1.0"
GATEWAY_INTERFACE
"CGI/1.1"
REDIRECT_QUERY_STRING
"_url=/sitemap.xml"
REDIRECT_URL
"/sitemap.xml"
REMOTE_PORT
"54512"
SCRIPT_FILENAME
"/hox/hoxtinco/public_html/clientes/index.php"
SERVER_ADMIN
"webmaster@clientes.hoxtin.com"
CONTEXT_DOCUMENT_ROOT
"/hox/hoxtinco/public_html/clientes"
CONTEXT_PREFIX
""
REQUEST_SCHEME
"https"
DOCUMENT_ROOT
"/hox/hoxtinco/public_html/clientes"
REMOTE_ADDR
"216.73.216.72"
SERVER_PORT
"443"
SERVER_ADDR
"162.210.103.105"
SERVER_NAME
"www.clientes.hoxtin.com"
SERVER_SOFTWARE
"Apache"
SERVER_SIGNATURE
""
PATH
"/usr/local/jdk/bin:/usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/X11R6/bin:/usr/local/bin:/usr/X11R6/bin:/root/bin:/opt/bin"
HTTP_USER_AGENT
"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)"
HTTP_ACCEPT
"*/*"
HTTP_X_REAL_IP
"216.73.216.72"
HTTP_X_FORWARDED_SERVER
"www.clientes.hoxtin.com"
HTTP_X_FORWARDED_PROTO
"https"
HTTP_X_FORWARDED_PORT
"443"
HTTP_X_FORWARDED_HOST
"www.clientes.hoxtin.com"
HTTP_X_FORWARDED_FOR
"216.73.216.72"
HTTP_HOST
"www.clientes.hoxtin.com"
proxy-nokeepalive
"1"
SSL_TLS_SNI
"www.clientes.hoxtin.com"
HTTPS
"on"
HTTP_AUTHORIZATION
""
UNIQUE_ID
"al5n-1l973nBZmT5SqwF0wAAABM"
REDIRECT_STATUS
"200"
REDIRECT_SSL_TLS_SNI
"www.clientes.hoxtin.com"
REDIRECT_HTTPS
"on"
REDIRECT_HTTP_AUTHORIZATION
""
REDIRECT_isproxyrequest
"1"
REDIRECT_UNIQUE_ID
"al5n-1l973nBZmT5SqwF0wAAABM"
FCGI_ROLE
"RESPONDER"
PHP_SELF
"/index.php"
REQUEST_TIME_FLOAT
1784571899.2223
REQUEST_TIME
1784571899
argv
array:1 [
  0 => "_url=/sitemap.xml"
]
argc
1
empty
0. Whoops\Handler\PrettyPageHandler