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.WARNING in log files #125

Open
outline4 opened this issue May 10, 2023 · 0 comments
Open

web.WARNING in log files #125

outline4 opened this issue May 10, 2023 · 0 comments

Comments

@outline4
Copy link

Hi,

I've just checked my log files after upgrading from 3.7 to 4.4. and I see a lot of the same entries:

2023-05-10 08:13:05 [web.WARNING] [craft\elements\db\ElementQuery::prepare] Element query executed before Craft is fully initialized. Stack trace: #0 /.../vendor/yiisoft/yii2/db/QueryBuilder.php(227): craft\elements\db\ElementQuery->prepare() #1 /.../vendor/yiisoft/yii2/db/Query.php(157): yii\db\QueryBuilder->build() #2 /.../vendor/yiisoft/yii2/db/Query.php(287): yii\db\Query->createCommand() #3 /.../vendor/craftcms/cms/src/db/Query.php(276): yii\db\Query->one() #4 /.../vendor/craftcms/cms/src/elements/db/ElementQuery.php(1580): craft\db\Query->one() #5 /.../vendor/craftcms/cms/src/services/Elements.php(842): craft\elements\db\ElementQuery->one() #6 /.../vendor/craftcms/cms/src/services/Elements.php(780): craft\services\Elements->_elementById() #7 /.../vendor/craftcms/cms/src/services/Entries.php(62): craft\services\Elements->getElementById() #8 /.../vendor/doublesecretagency/craft-spoon/src/services/Loader.php(160): craft\services\Entries->getEntryById() #9 /.../vendor/doublesecretagency/craft-spoon/src/Spoon.php(79): doublesecretagency\spoon\services\Loader->run() #10 doublesecretagency\spoon\Spoon->doublesecretagency\spoon\{closure}() #11 /.../vendor/yiisoft/yii2/base/Event.php(312): call_user_func() #12 /.../vendor/yiisoft/yii2/base/Component.php(642): yii\base\Event::trigger() #13 /.../vendor/craftcms/cms/src/services/Plugins.php(275): yii\base\Component->trigger() #14 /.../vendor/craftcms/cms/src/base/ApplicationTrait.php(1554): craft\services\Plugins->loadPlugins() #15 /.../vendor/craftcms/cms/src/web/Application.php(106): craft\web\Application->_postInit() #16 /.../vendor/yiisoft/yii2/base/BaseObject.php(109): craft\web\Application->init() #17 /.../vendor/yiisoft/yii2/base/Application.php(204): yii\base\BaseObject->__construct() #18 yii\base\Application->__construct() #19 /.../vendor/yiisoft/yii2/di/Container.php(419): ReflectionClass->newInstanceArgs() #20 /.../vendor/yiisoft/yii2/di/Container.php(170): yii\di\Container->build() #21 /.../vendor/yiisoft/yii2/BaseYii.php(365): yii\di\Container->get() #22 /.../vendor/craftcms/cms/src/Craft.php(54): yii\BaseYii::createObject() #23 /.../vendor/craftcms/cms/bootstrap/bootstrap.php(252): Craft::createObject() #24 /.../vendor/craftcms/cms/bootstrap/web.php(40): require() #25 /.../public_html/index.php(24): require() {"memory":3745104} 

I don't think it's something very urgent, but the log files are full of the same message. e.g. every 5 seconds.

Hope we can get rid of this.

Cheers
outline4

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant