Error while forwarding


(lerxx) #1

Hello community,

I am getting an error by forwarding via logo to the HomeUrl. The error message is: “An internal server error occurred.” The log shows the following:

[Wed Jan 30 12:02:02.301758 2019] [:error] [pid 2786] [client 10.0.4.51:47694] An Error occurred while handling another error:\nyii\\base\\InvalidConfigException: Unknown component ID: i18n in /var/www/html/abntstats/vendor/yiisoft/yii2/di/ServiceLocator.php:139\nStack trace:\n#0 /var/www/html/abntstats/vendor/yiisoft/yii2/base/Module.php(742): yii\\di\\ServiceLocator->get('i18n', true)\n#1 /var/www/html/abntstats/vendor/yiisoft/yii2/base/Application.php(580): yii\\base\\Module->get('i18n')\n#2 /var/www/html/abntstats/vendor/yiisoft/yii2/BaseYii.php(526): yii\\base\\Application->getI18n()\n#3 /var/www/html/abntstats/vendor/yiisoft/yii2/web/ErrorAction.php(93): yii\\BaseYii::t('yii', 'An internal ser...')\n#4 /var/www/html/abntstats/vendor/yiisoft/yii2/base/BaseObject.php(109): yii\\web\\ErrorAction->init()\n#5 /var/www/html/abntstats/vendor/yiisoft/yii2/base/Action.php(62): yii\\base\\BaseObject->__construct(Array)\n#6 [internal function]: yii\\base\\Action->__construct('error', Object(app\\controllers\\SiteController), Array)\n#7 /var/www/html/abntstats/vendor/yiisoft/yii2/di/Container.php(376): ReflectionClass->newInstanceArgs(Array)\n#8 /var/www/html/abntstats/vendor/yiisoft/yii2/di/Container.php(156): yii\\di\\Container->build('yii\\\\web\\\\ErrorAc...', Array, Array)\n#9 /var/www/html/abntstats/vendor/yiisoft/yii2/BaseYii.php(349): yii\\di\\Container->get('yii\\\\web\\\\ErrorAc...', Array, Array)\n#10 /var/www/html/abntstats/vendor/yiisoft/yii2/base/Controller.php(227): yii\\BaseYii::createObject(Array, Array)\n#11 /var/www/html/abntstats/vendor/yiisoft/yii2/base/Controller.php(126): yii\\base\\Controller->createAction('error')\n#12 /var/www/html/abntstats/vendor/yiisoft/yii2/base/Module.php(528): yii\\base\\Controller->runAction('error', Array)\n#13 /var/www/html/abntstats/vendor/yiisoft/yii2/web/ErrorHandler.php(108): yii\\base\\Module->runAction('site/error')\n#14 /var/www/html/abntstats/vendor/yiisoft/yii2/base/ErrorHandler.php(111): yii\\web\\ErrorHandler->renderException(Object(yii\\base\\InvalidConfigException))\n#15 [internal function]: yii\\base\\ErrorHandler->handleException(Object(yii\\base\\InvalidConfigException))\n#16 {main}\nPrevious exception:\nyii\\base\\InvalidConfigException: The configuration for the "db" component must contain a "class" element. in /var/www/html/abntstats/vendor/yiisoft/yii2/di/ServiceLocator.php:205\nStack trace:\n#0 /var/www/html/abntstats/vendor/yiisoft/yii2/di/ServiceLocator.php(261): yii\\di\\ServiceLocator->set('db', Array)\n#1 /var/www/html/abntstats/vendor/yiisoft/yii2/base/Component.php(180): yii\\di\\ServiceLocator->setComponents(Array)\n#2 /var/www/html/abntstats/vendor/yiisoft/yii2/BaseYii.php(546): yii\\base\\Component->__set('components', Array)\n#3 /var/www/html/abntstats/vendor/yiisoft/yii2/base/BaseObject.php(107): yii\\BaseYii::configure(Object(yii\\web\\Application), Array)\n#4 /var/www/html/abntstats/vendor/yiisoft/yii2/base/Application.php(206): yii\\base\\BaseObject->__construct(Array)\n#5 /var/www/html/abntstats/web/index.php(12): yii\\base\\Application->__construct(Array)\n#6 {main}\n$_SERVER = [\n 'II_SYSTEM' => '/opt/Actian/Vector_Client',\n 'LD_LIBRARY_PATH' => '/lib:/usr/lib:/opt/Actian/Vector_Client/ingres/lib:/opt/Actian/Vector_Client/ingres/lib/lp32',\n 'ODBCSYSINI' => '/etc/odbcinst.ini',\n 'ODBCINI' => '/etc/odbc.ini',\n 'ODBCINSTINI' => '/etc/odbcinst.ini',\n 'HTTP_USER_AGENT' => 'Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:64.0) Gecko/20100101 Firefox/64.0',\n 'HTTP_ACCEPT' => 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8',\n 'HTTP_ACCEPT_LANGUAGE' => 'de,en-US;q=0.7,en;q=0.3',\n 'HTTP_ACCEPT_ENCODING' => 'gzip, deflate',\n 'HTTP_REFERER' => 'http://190.16.200.155/',\n 'HTTP_UPGRADE_INSECURE_REQUESTS' => '1',\n 'HTTP_HOST' => '190.16.200.155',\n 'HTTP_VIA' => '1.1 agaproxy (squid/3.5.23)',\n 'HTTP_X_FORWARDED_FOR' => '10.0.5.26',\n 'HTTP_CACHE_CONTROL' => 'max-age=259200',\n 'HTTP_CONNECTION' => 'keep-alive',\n 'PATH' => '/opt/Actian/Vector_Client/ingres/bin:/opt/Actian/Vector_Client/ingres/utility:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin',\n 'SERVER_SIGNATURE' => '<address>Apache/2.4.18 (Ubuntu) Server at 190.16.200.155 Port 80</address>\n',\n 'SERVER_SOFTWARE' => 'Apache/2.4.18 (Ubuntu)',\n 'SERVER_NAME' => '190.16.200.155',\n 'SERVER_ADDR' => '190.16.200.155',\n 'SERVER_PORT' => '80',\n 'REMOTE_ADDR' => '10.0.4.51',\n 'DOCUMENT_ROOT' => '/var/www/html/abntstats/web',\n 'REQUEST_SCHEME' => 'http',\n 'CONTEXT_PREFIX' => '',\n 'CONTEXT_DOCUMENT_ROOT' => '/var/www/html/abntstats/web',\n 'SERVER_ADMIN' => 'webmaster@localhost',\n 'SCRIPT_FILENAME' => '/var/www/html/abntstats/web/index.php',\n 'REMOTE_PORT' => '47694',\n 'GATEWAY_INTERFACE' => 'CGI/1.1',\n 'SERVER_PROTOCOL' => 'HTTP/1.1',\n 'REQUEST_METHOD' => 'GET',\n 'QUERY_STRING' => '',\n 'REQUEST_URI' => '/index.php',\n 'SCRIPT_NAME' => '/index.php',\n 'PHP_SELF' => '/index.php',\n 'REQUEST_TIME_FLOAT' => 1548846122.289,\n 'REQUEST_TIME' => 1548846122,\n], referer: http://190.16.200.155/

Can anyone help me to fix it? Thanks in advance!


(Mehdi Achour) #2

Hi,

It seems that you’re facing multiple errors:

InvalidConfigException: The configuration for the “db” component must contain a “class” element

This is the original error message. Your component “db” is not well configured.

Yii then tries to display an error, using i18n:

yii\BaseYii::t(‘yii’, ‘An internal ser…’)

But that fails again:

Error occurred while handling another error:\nyii\base\InvalidConfigException: Unknown component ID: i18n

So you end up with the internal error displayed.

Something seems to be really wrong with your configuration, I’d start to look there.