Database Exception – yii\db\Exception
Copied! Copy Stacktrace Search Stackoverflow Search Google Exception

Database Exceptionyii\db\Exception

SQLSTATE[HY000] [1203] User app_user already has more than 'max_user_connections' active connections

Error Info: Array
(
    [0] => HY000
    [1] => 1203
    [2] => User app_user already has more than 'max_user_connections' active connections
)
  • 1. in /var/www/html/vendor/yiisoft/yii2/db/Connection.php at line 648
    639640641642643644645646647648649650651652653654655656657
     
                if ($enableProfiling) {
                    Yii::endProfile($token, __METHOD__);
                }
            } catch (\PDOException $e) {
                if ($enableProfiling) {
                    Yii::endProfile($token, __METHOD__);
                }
     
                throw new Exception($e->getMessage(), $e->errorInfo, $e->getCode(), $e);
            }
        }
     
        /**
         * Closes the currently active DB connection.
         * It does nothing if the connection is already closed.
         */
        public function close()
        {
    
  • 2. in /var/www/html/vendor/yiisoft/yii2/db/Connection.php at line 1067 yii\db\Connection::open()
    1061106210631064106510661067106810691070107110721073
         * Returns the PDO instance for the currently active master connection.
         * This method will open the master DB connection and then return [[pdo]].
         * @return PDO the PDO instance for the currently active master connection.
         */
        public function getMasterPdo()
        {
            $this->open();
            return $this->pdo;
        }
     
        /**
         * Returns the currently active slave connection.
         * If this method is called for the first time, it will try to open a slave connection when [[enableSlaves]] is true.
    
  • 3. in /var/www/html/vendor/yiisoft/yii2/db/Connection.php at line 1054 yii\db\Connection::getMasterPdo()
    1048104910501051105210531054105510561057105810591060
         * is available and `$fallbackToMaster` is false.
         */
        public function getSlavePdo($fallbackToMaster = true)
        {
            $db = $this->getSlave(false);
            if ($db === null) {
                return $fallbackToMaster ? $this->getMasterPdo() : null;
            }
     
            return $db->pdo;
        }
     
        /**
    
  • 4. in /var/www/html/vendor/yiisoft/yii2/db/Schema.php at line 461 yii\db\Connection::getSlavePdo()
    455456457458459460461462463464465466467
        public function quoteValue($str)
        {
            if (!is_string($str)) {
                return $str;
            }
     
            if (mb_stripos((string)$this->db->dsn, 'odbc:') === false && ($value = $this->db->getSlavePdo(true)->quote($str)) !== false) {
                return $value;
            }
     
            // the driver doesn't support quote (e.g. oci)
            return "'" . addcslashes(str_replace("'", "''", $str), "\000\n\r\\\032") . "'";
        }
    
  • 5. in /var/www/html/vendor/yiisoft/yii2/db/Connection.php at line 946 yii\db\Schema::quoteValue()
    940941942943944945946947948949950951952
         * @param string $value string to be quoted
         * @return string the properly quoted string
         * @see https://www.php.net/manual/en/pdo.quote.php
         */
        public function quoteValue($value)
        {
            return $this->getSchema()->quoteValue($value);
        }
     
        /**
         * Quotes a table name for use in a query.
         * If the table name contains schema prefix, the prefix will also be properly quoted.
         * If the table name is already quoted or contains special characters including '(', '[[' and '{{',
    
  • 6. in /var/www/html/vendor/yiisoft/yii2/db/Command.php at line 211 yii\db\Connection::quoteValue()
    205206207208209210211212213214215216217
            $params = [];
            foreach ($this->params as $name => $value) {
                if (is_string($name) && strncmp(':', $name, 1)) {
                    $name = ':' . $name;
                }
                if (is_string($value) || $value instanceof Expression) {
                    $params[$name] = $this->db->quoteValue((string)$value);
                } elseif (is_bool($value)) {
                    $params[$name] = ($value ? 'TRUE' : 'FALSE');
                } elseif ($value === null) {
                    $params[$name] = 'NULL';
                } elseif (!is_object($value) && !is_resource($value)) {
                    $params[$name] = $value;
    
  • 7. in /var/www/html/vendor/yiisoft/yii2/db/Command.php at line 1144 yii\db\Command::getRawSql()
    1138113911401141114211431144114511461147114811491150
         * @return array array of two elements, the first is boolean of whether profiling is enabled or not.
         * The second is the rawSql if it has been created.
         */
        protected function logQuery($category)
        {
            if ($this->db->enableLogging) {
                $rawSql = $this->getRawSql();
                Yii::info($rawSql, $category);
            }
            if (!$this->db->enableProfiling) {
                return [false, isset($rawSql) ? $rawSql : null];
            }
     
    
  • 8. in /var/www/html/vendor/yiisoft/yii2/db/Command.php at line 1165 yii\db\Command::logQuery()
    1159116011611162116311641165116611671168116911701171
         * @return mixed the method execution result
         * @throws Exception if the query causes any problem
         * @since 2.0.1 this method is protected (was private before).
         */
        protected function queryInternal($method, $fetchMode = null)
        {
            list($profile, $rawSql) = $this->logQuery('yii\db\Command::query');
     
            if ($method !== '') {
                $info = $this->db->getQueryCacheInfo($this->queryCacheDuration, $this->queryCacheDependency);
                if (is_array($info)) {
                    /* @var $cache \yii\caching\CacheInterface */
                    $cache = $info[0];
    
  • 9. in /var/www/html/vendor/yiisoft/yii2/db/Command.php at line 431 yii\db\Command::queryInternal()
    425426427428429430431432433434435436437
         * @return array|false the first row (in terms of an array) of the query result. False is returned if the query
         * results in nothing.
         * @throws Exception execution failed
         */
        public function queryOne($fetchMode = null)
        {
            return $this->queryInternal('fetch', $fetchMode);
        }
     
        /**
         * Executes the SQL statement and returns the value of the first column in the first row of data.
         * This method is best used when only a single value is needed for a query.
         * @return string|int|null|false the value of the first column in the first row of the query result.
    
  • 10. in /var/www/html/vendor/yiisoft/yii2/db/Query.php at line 287 yii\db\Command::queryOne()
    281282283284285286287288289290291292293
        public function one($db = null)
        {
            if ($this->emulateExecution) {
                return false;
            }
     
            return $this->createCommand($db)->queryOne();
        }
     
        /**
         * Returns the query result as a scalar value.
         * The value returned will be the first column in the first row of the query results.
         * @param Connection|null $db the database connection used to generate the SQL statement.
    
  • 11. in /var/www/html/vendor/yiisoft/yii2/db/ActiveQuery.php at line 304 yii\db\Query::one()
    298299300301302303304305306307308309310
         * @return ActiveRecord|array|null a single row of query result. Depending on the setting of [[asArray]],
         * the query result may be either an array or an ActiveRecord object. `null` will be returned
         * if the query results in nothing.
         */
        public function one($db = null)
        {
            $row = parent::one($db);
            if ($row !== false) {
                $models = $this->populate([$row]);
                return reset($models) ?: null;
            }
     
            return null;
    
  • 12. in /var/www/html/common/models/Domain.php at line 229 yii\db\ActiveQuery::one()
    223224225226227228229230231232233234235
                        $q->with('localization');
                    },
                    'defaultLocalization',
                    'siteLocalization',
                    'bonusLocalization',
                    'timezone'
                ])->where(['name' => $hostName])->one();
            }, null, Domain::setTagDependency());
        }
     
        public static function getFolder()
        {
            $domain = self::checkDomain();
    
  • 13. common\models\Domain::common\models\{closure}()
  • 14. in /var/www/html/vendor/yiisoft/yii2/db/Connection.php at line 510 – call_user_func()
    504505506507508509510511512513514515516
         * @see noCache()
         */
        public function cache(callable $callable, $duration = null, $dependency = null)
        {
            $this->_queryCacheInfo[] = [$duration === null ? $this->queryCacheDuration : $duration, $dependency];
            try {
                $result = call_user_func($callable, $this);
                array_pop($this->_queryCacheInfo);
                return $result;
            } catch (\Exception $e) {
                array_pop($this->_queryCacheInfo);
                throw $e;
            } catch (\Throwable $e) {
    
  • 15. in /var/www/html/common/models/Domain.php at line 230 yii\db\Connection::cache()
    224225226227228229230231232233234235236
                    },
                    'defaultLocalization',
                    'siteLocalization',
                    'bonusLocalization',
                    'timezone'
                ])->where(['name' => $hostName])->one();
            }, null, Domain::setTagDependency());
        }
     
        public static function getFolder()
        {
            $domain = self::checkDomain();
     
    
  • 16. in /var/www/html/common/models/Domain.php at line 1186 – common\models\Domain::getDomainByHostName()
    1180118111821183118411851186118711881189119011911192
                    ->all();
            }, null, Domain::setTagDependency());
        }
     
        public static function checkDomain(): ?Domain
        {
            return Yii::$app->params['domainByHost'] ?? self::getDomainByHostName();
        }
     
        public static function isLocal(): bool
        {
            $host = Yii::$app->request->hostName;
            $subdomain = explode('.', $host)[0];
    
  • 17. in /var/www/html/common/models/Domain.php at line 269 – common\models\Domain::checkDomain()
    263264265266267268269270271272273274275
            $languages[Country::OTHER_COUNTRY_CODE] = Country::DEFAULT_INO_COUNTRY;
            return $languages[$folder] ?? Country::RUS_COUNTRY;
        }
     
        public static function getLocalizationCode()
        {
            $domain = self::checkDomain();
            $localizationCode = ArrayHelper::getValue($domain, 'defaultLocalization.code');
     
            return $localizationCode ?? self::DEFAULT_LOCALIZATION_CODE;
        }
     
        public static function getBonusLocalizationCode()
    
  • 18. in /var/www/html/frontend/components/url_rules/NewsCategoryFilterRule.php at line 26 – common\models\Domain::getLocalizationCode()
    20212223242526272829303132
         * @return array|bool|string
         * @throws \yii\base\InvalidConfigException
         */
        public function parseRequest($manager, $request)
        {
            $route = parent::parseRequest($manager, $request);
            $language = Domain::getLocalizationCode();
     
            if ($route && isset($route[1]) ) {
                $news = $route[1]['news'] ?? false;
                if ($news && $news != SiteTypesHelper::getRouteTranslationWithoutLang('news', $language)) {
                    throw new NotFoundHttpException('Страница не найдена.');
                }
    
  • 19. in /var/www/html/vendor/yiisoft/yii2/web/UrlManager.php at line 325 – frontend\components\url_rules\NewsCategoryFilterRule::parseRequest()
    319320321322323324325326327328329330331
         */
        public function parseRequest($request)
        {
            if ($this->enablePrettyUrl) {
                /* @var $rule UrlRule */
                foreach ($this->rules as $rule) {
                    $result = $rule->parseRequest($this, $request);
                    if (YII_DEBUG) {
                        Yii::debug([
                            'rule' => method_exists($rule, '__toString') ? $rule->__toString() : get_class($rule),
                            'match' => $result !== false,
                            'parent' => null,
                        ], __METHOD__);
    
  • 20. in /var/www/html/frontend/components/UrlManager.php at line 16 yii\web\UrlManager::parseRequest()
    10111213141516171819202122
     
     
    class UrlManager extends \yii\web\UrlManager
    {
        public function parseRequest($request)
        {
            $result = parent::parseRequest($request);
     
            if (is_array($result)) {
                Seo::setCanonical($request, $result);
            }
            return $result;
        }
    
  • 21. in /var/www/html/vendor/yiisoft/yii2/web/Request.php at line 319 – frontend\components\UrlManager::parseRequest()
    313314315316317318319320321322323324325
         * Resolves the current request into a route and the associated parameters.
         * @return array the first element is the route, and the second is the associated parameters.
         * @throws NotFoundHttpException if the request cannot be resolved.
         */
        public function resolve()
        {
            $result = Yii::$app->getUrlManager()->parseRequest($this);
            if ($result !== false) {
                list($route, $params) = $result;
                if ($this->_queryParams === null) {
                    $_GET = $params + $_GET; // preserve numeric keys
                } else {
                    $this->_queryParams = $params + $this->_queryParams;
    
  • 22. in /var/www/html/vendor/yiisoft/yii2/web/Application.php at line 82 yii\web\Request::resolve()
    76777879808182838485868788
         * @throws NotFoundHttpException if the requested route is invalid
         */
        public function handleRequest($request)
        {
            if (empty($this->catchAll)) {
                try {
                    list($route, $params) = $request->resolve();
                } catch (UrlNormalizerRedirectException $e) {
                    $url = $e->url;
                    if (is_array($url)) {
                        if (isset($url[0])) {
                            // ensure the route is absolute
                            $url[0] = '/' . ltrim($url[0], '/');
    
  • 23. in /var/www/html/vendor/yiisoft/yii2/base/Application.php at line 384 yii\web\Application::handleRequest()
    378379380381382383384385386387388389390
        {
            try {
                $this->state = self::STATE_BEFORE_REQUEST;
                $this->trigger(self::EVENT_BEFORE_REQUEST);
     
                $this->state = self::STATE_HANDLING_REQUEST;
                $response = $this->handleRequest($this->getRequest());
     
                $this->state = self::STATE_AFTER_REQUEST;
                $this->trigger(self::EVENT_AFTER_REQUEST);
     
                $this->state = self::STATE_SENDING_RESPONSE;
                $response->send();
    
  • 24. in /var/www/html/frontend/web/index.php at line 20 yii\base\Application::run()
    14151617181920
        require(__DIR__ . '/../config/main-local.php')
    );
     
    ini_set('display_errors', 1);
    error_reporting(1);
     
    (new yii\web\Application($config))->run();
    
        
ChatBot
Darius Paharnicu

Darius Paharnicu

Румыния Румыния
Вратарь: Оцелул
Возраст: 20 (10.04.2005)
Оцелул

Последние матчи

18:00 16.05.2025
Лига 1 Лига 1
Оцелул 0
Фарул Константа 0
-
-
-
-
Н
18:00 12.05.2025
Лига 1 Лига 1
Петролул Плоешти 1
Оцелул 3
-
-
-
-
В
20:45 04.05.2025
Лига 1 Лига 1
Оцелул 1
Херманштадт 2
-
-
-
-
П
21:00 25.04.2025
Лига 1 Лига 1
Сепси 0
Оцелул 3
-
-
-
-
В
17:00 18.04.2025
Лига 1 Лига 1
Оцелул 2
Унириа Слозиа 0
-
-
-
-
В
17:30 14.04.2025
Лига 1 Лига 1
Ботосани 0
Оцелул 1
-
-
-
-
В
17:30 04.04.2025
Лига 1 Лига 1
Оцелул 1
Ласи 0
-
-
-
-
В