Deprecated (16384) : Since 5.0.0: Calling Table::get() with options array is deprecated. Use named arguments instead. /var/www/html/testp/pth/src/Controller/VthsController.php, line: 243 You can disable all deprecation warnings by setting `Error.errorLevel` to `E_ALL & ~E_USER_DEPRECATED`. Adding `src/Controller/VthsController.php` to `Error.ignoredDeprecationPaths` in your `config/app.php` config will mute deprecations from that file only. [in /var/www/html/testp/pth/vendor/cakephp/cakephp/src/Core/functions.php, line 377]
Warning (512) : Unable to emit headers. Headers sent in file=/var/www/html/testp/pth/vendor/cakephp/cakephp/src/Error/Renderer/HtmlErrorRenderer.php line=37 [in /var/www/html/testp/pth/vendor/cakephp/cakephp/src/Http/ResponseEmitter.php, line 65]
Warning (2) : Cannot modify header information - headers already sent by (output started at /var/www/html/testp/pth/vendor/cakephp/cakephp/src/Error/Renderer/HtmlErrorRenderer.php:37) [in /var/www/html/testp/pth/vendor/cakephp/cakephp/src/Http/ResponseEmitter.php, line 158]
Warning (2) : Cannot modify header information - headers already sent by (output started at /var/www/html/testp/pth/vendor/cakephp/cakephp/src/Error/Renderer/HtmlErrorRenderer.php:37) [in /var/www/html/testp/pth/vendor/cakephp/cakephp/src/Http/ResponseEmitter.php, line 191]
Error: Missing Database Connection

Missing Database Connection 📋

Cake\Database\Exception\MissingConnectionException

Connection to Mysql could not be established: SQLSTATE[HY000] [1040] Too many connections

CORE/src/Database/Driver.php at line 203 (edit)
        $retry = new CommandRetry(new ErrorCodeWaitStrategy(static::RETRY_ERROR_CODES, 5), 4);
        try {
            return $retry->run($action);
        } catch (PDOException $e) {
            throw new MissingConnectionException(
                [
                    'driver' => App::shortName(static::class, 'Database/Driver'),
                    'reason' => $e->getMessage(),
                ],
Caused by SQLSTATE[HY000] [1040] Too many connections PDOException
CORE/src/Database/Driver.php at line 192 (edit)
     * @return \PDO
     */
    protected function createPdo(string $dsn, array $config): PDO
    {
        $action = fn(): PDO => new PDO(
            $dsn,
            $config['username'] ?: null,
            $config['password'] ?: null,
            $config['flags'],

If you want to customize this error message, create templates/Error/missing_connection.php