You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I enable this plugin in Craft CMS v4.2.0.2 I get to see warnings telling me that Twig is instantiated too early (in the ./storage/logs/ directory or on the commandline when CRAFT_STREAM_LOG is active):
2022-08-03 11:32:08 [console.WARNING] [craft\web\View::createTwig] Twig instantiated before Craft is fully initialized. {"memory":22820336}
This seemed to be caused by the _addTwigExtensions() function that is called from the init-function in UserManual.php. This uses Craft::$app->view->twig->addExtension(new UserManualTwigExtension);, but according to https://craftcms.com/docs/4.x/extend/extending-twig.html#register-a-twig-extension should be Craft::$app->view->registerTwigExtension(new UserManualTwigExtension);
Would it be possible to fix this warning?
The text was updated successfully, but these errors were encountered:
When I enable this plugin in Craft CMS v4.2.0.2 I get to see warnings telling me that Twig is instantiated too early (in the ./storage/logs/ directory or on the commandline when CRAFT_STREAM_LOG is active):
2022-08-03 11:32:08 [console.WARNING] [craft\web\View::createTwig] Twig instantiated before Craft is fully initialized. {"memory":22820336}
This seemed to be caused by the
_addTwigExtensions()
function that is called from the init-function in UserManual.php. This usesCraft::$app->view->twig->addExtension(new UserManualTwigExtension);
, but according to https://craftcms.com/docs/4.x/extend/extending-twig.html#register-a-twig-extension should beCraft::$app->view->registerTwigExtension(new UserManualTwigExtension);
Would it be possible to fix this warning?
The text was updated successfully, but these errors were encountered: