Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

web.log is flooded with warnings related to getMatchedElement() #35

Open
bavodeclercq opened this issue Dec 16, 2021 · 0 comments
Open
Assignees

Comments

@bavodeclercq
Copy link

bavodeclercq commented Dec 16, 2021

Describe the bug
I had hoped to find another problem in the logs but all web.log files are filled with the same error message:

[warning][craft\web\UrlManager::getMatchedElement] craft\web\UrlManager::getMatchedElement() was called before the application was fully initialized.
Stack trace:
#0 craft\web\UrlManager->getMatchedElement() called at [/var/www/craft/vendor/yiisoft/yii2/base/Component.php:140]
#1 yii\base\Component->__get() called at [/var/www/craft/config/country-redirect.php:21]
#2 include() called at [/var/www/craft/vendor/craftcms/cms/src/services/Config.php:205]
#3 craft\services\Config->getConfigFromFile() called at [/var/www/craft/vendor/craftcms/cms/src/services/Plugins.php:967]
#4 craft\services\Plugins->createPlugin() called at [/var/www/craft/vendor/craftcms/cms/src/services/Plugins.php:233]
#5 craft\services\Plugins->loadPlugins() called at [/var/www/craft/vendor/craftcms/cms/src/base/ApplicationTrait.php:1479]
#6 craft\web\Application->_postInit() called at [/var/www/craft/vendor/craftcms/cms/src/web/Application.php:93]
#7 craft\web\Application->init() called at [/var/www/craft/vendor/yiisoft/yii2/base/BaseObject.php:109]
#8 yii\base\BaseObject->__construct() called at [/var/www/craft/vendor/yiisoft/yii2/base/Application.php:212]
#9 yii\base\Application->__construct()
#10 ReflectionClass->newInstanceArgs() called at [/var/www/craft/vendor/yiisoft/yii2/di/Container.php:420]
#11 yii\di\Container->build() called at [/var/www/craft/vendor/yiisoft/yii2/di/Container.php:171]
#12 yii\di\Container->get() called at [/var/www/craft/vendor/yiisoft/yii2/BaseYii.php:365]
#13 yii\BaseYii::createObject() called at [/var/www/craft/vendor/craftcms/cms/src/Craft.php:67]
#14 Craft::createObject() called at [/var/www/craft/vendor/craftcms/cms/bootstrap/bootstrap.php:242]
#15 require() called at [/var/www/craft/vendor/craftcms/cms/bootstrap/web.php:51]
#16 require() called at [/var/www/craft/web/index.php:21]
2021-12-16 10:27:50 [90.161.207.122][69990][-][info][application] $_GET = [
    'dontExtendSession' => '1'
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants