Skip to content

Commit

Permalink
set_time_limit(180) gives error
Browse files Browse the repository at this point in the history
CDbException

CDbConnection failed to open the DB connection: SQLSTATE[HY000] [1045] Access denied for user ''@'localhost' (using password: YES) (/var/www/vhosts/cms-test/yupe/vendor/yiisoft/yii/framework/db/CDbConnection.php:399)

#0 /var/www/vhosts/cms-test/yupe/vendor/yiisoft/yii/framework/db/CDbConnection.php(347): CDbConnection->open()
yupe#1 /var/www/vhosts/cms-test/yupe/vendor/yiisoft/yii/framework/db/CDbConnection.php(325): CDbConnection->setActive(true)
yupe#2 /var/www/vhosts/cms-test/yupe/vendor/yiisoft/yii/framework/base/CModule.php(394): CDbConnection->init()
yupe#3 /var/www/vhosts/cms-test/yupe/protected/modules/yupe/components/Migrator.php(392): CModule->getComponent('db')
yupe#4 /var/www/vhosts/cms-test/yupe/protected/modules/yupe/components/Migrator.php(51): yupe\components\Migrator->getDbConnection()
yupe#5 /var/www/vhosts/cms-test/yupe/vendor/yiisoft/yii/framework/base/CModule.php(394): yupe\components\Migrator->init()
yupe#6 /var/www/vhosts/cms-test/yupe/vendor/yiisoft/yii/framework/base/CModule.php(103): CModule->getComponent('migrator')
yupe#7 /var/www/vhosts/cms-test/yupe/protected/modules/yupe/components/controllers/BackController.php(104): CModule->__get('migrator')
yupe#8 /var/www/vhosts/cms-test/yupe/vendor/yiisoft/yii/framework/web/CController.php(306): yupe\components\controllers\BackController->beforeAction(Object(CInlineAction))
yupe#9 /var/www/vhosts/cms-test/yupe/vendor/yiisoft/yii/framework/web/filters/CFilterChain.php(134): CController->runAction(Object(CInlineAction))
yupe#10 /var/www/vhosts/cms-test/yupe/vendor/yiisoft/yii/framework/web/CController.php(291): CFilterChain->run()
yupe#11 /var/www/vhosts/cms-test/yupe/vendor/yiisoft/yii/framework/web/CController.php(265): CController->runActionWithFilters(Object(CInlineAction), Array)
yupe#12 /var/www/vhosts/cms-test/yupe/vendor/yiisoft/yii/framework/web/CWebApplication.php(282): CController->run('error')
yupe#13 /var/www/vhosts/cms-test/yupe/vendor/yiisoft/yii/framework/base/CErrorHandler.php(368): CWebApplication->runController('/yupe/backend/e...')
yupe#14 /var/www/vhosts/cms-test/yupe/vendor/yiisoft/yii/framework/base/CErrorHandler.php(296): CErrorHandler->renderError()
yupe#15 /var/www/vhosts/cms-test/yupe/vendor/yiisoft/yii/framework/base/CErrorHandler.php(133): CErrorHandler->handleError(Object(CErrorEvent))
yupe#16 /var/www/vhosts/cms-test/yupe/vendor/yiisoft/yii/framework/base/CApplication.php(834): CErrorHandler->handle(Object(CErrorEvent))
yupe#17 [internal function]: CApplication->handleError(2, 'set_time_limit(...', '/var/www/vhosts...', 769, Array)
yupe#18 /var/www/vhosts/cms-test/yupe/protected/modules/install/controllers/DefaultController.php(769): set_time_limit(180)
yupe#19 /var/www/vhosts/cms-test/yupe/vendor/yiisoft/yii/framework/web/actions/CInlineAction.php(49): DefaultController->actionModulesinstall()
yupe#20 /var/www/vhosts/cms-test/yupe/vendor/yiisoft/yii/framework/web/CController.php(308): CInlineAction->runWithParams(Array)
yupe#21 /var/www/vhosts/cms-test/yupe/vendor/yiisoft/yii/framework/web/CController.php(286): CController->runAction(Object(CInlineAction))
yupe#22 /var/www/vhosts/cms-test/yupe/vendor/yiisoft/yii/framework/web/CController.php(265): CController->runActionWithFilters(Object(CInlineAction), Array)
yupe#23 /var/www/vhosts/cms-test/yupe/vendor/yiisoft/yii/framework/web/CWebApplication.php(282): CController->run('modulesinstall')
yupe#24 /var/www/vhosts/cms-test/yupe/vendor/yiisoft/yii/framework/web/CWebApplication.php(141): CWebApplication->runController('install/default...')
yupe#25 /var/www/vhosts/cms-test/yupe/vendor/yiisoft/yii/framework/base/CApplication.php(185): CWebApplication->processRequest()
yupe#26 /var/www/vhosts/cms-test/yupe/public/index.php(39): CApplication->run()
yupe#27 {main}
  • Loading branch information
fazliddin committed Mar 17, 2020
1 parent c8c356f commit f1ced67
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions protected/modules/install/controllers/DefaultController.php
Original file line number Diff line number Diff line change
Expand Up @@ -766,8 +766,6 @@ public function actionDbsettings()
**/
public function actionModulesinstall()
{
set_time_limit(180);

$error = false;

$modules = Yii::app()->moduleManager->getModulesDisabled();
Expand Down

0 comments on commit f1ced67

Please sign in to comment.