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
2024-12-30 06:19:51 [web.ERROR] [TypeError] TypeError: craft\web\View::renderPageTemplate(): Argument #2 ($variables) must be of type array, null given, called in ___WEB_ROOT___/vendor/putyourlightson/craft-blitz/src/controllers/IncludeController.php on line 62 and defined in ___WEB_ROOT___/vendor/craftcms/cms/src/web/View.php:576
Stack trace:
#0 ___WEB_ROOT___/vendor/putyourlightson/craft-blitz/src/controllers/IncludeController.php(62): craft\web\View->renderPageTemplate('_/blitz/user-na...', NULL, 'site')
#1 ___WEB_ROOT___/vendor/putyourlightson/craft-blitz/src/controllers/IncludeController.php(39): putyourlightson\blitz\controllers\IncludeController->getRenderedTemplate()
#2 [internal function]: putyourlightson\blitz\controllers\IncludeController->actionDynamic()
#3 ___WEB_ROOT___/vendor/yiisoft/yii2/base/InlineAction.php(57): call_user_func_array(Array, Array)
#4 ___WEB_ROOT___/vendor/yiisoft/yii2/base/Controller.php(178): yii\base\InlineAction->runWithParams(Array)
#5 ___WEB_ROOT___/vendor/yiisoft/yii2/base/Module.php(552): yii\base\Controller->runAction('dynamic', Array)
#6 ___WEB_ROOT___/vendor/craftcms/cms/src/web/Application.php(350): yii\base\Module->runAction('blitz/include/d...', Array)
#7 ___WEB_ROOT___/vendor/craftcms/cms/src/web/Application.php(649): craft\web\Application->runAction('blitz/include/d...', Array)
#8 ___WEB_ROOT___/vendor/craftcms/cms/src/web/Application.php(312): craft\web\Application->_processActionRequest(Object(craft\web\Request))
#9 ___WEB_ROOT___/vendor/yiisoft/yii2/base/Application.php(384): craft\web\Application->handleRequest(Object(craft\web\Request))
#10 ___WEB_ROOT___/web/index.php(12): yii\base\Application->run()
#11 {main} {"memory":4820104,"exception":"[object] (TypeError(code: 0): craft\\web\\View::renderPageTemplate(): Argument #2 ($variables) must be of type array, null given, called in ___WEB_ROOT___/vendor/putyourlightson/craft-blitz/src/controllers/IncludeController.php on line 62 at ___WEB_ROOT___/vendor/craftcms/cms/src/web/View.php:576)"}
Seems like this like in controller (IncludeController.php) is causing the issue
Are you on the latest versions of Blitz and Craft? Please provide version numbers.
This error appears to indicate an issue with saved includes stored in the database. Can you please clear and flush the cache to reset this and verify that it is an issue in the database?
Bug Report
{{ craft.blitz.includeDynamic("_/blitz/user-nav", {
navSection : 'desktop'
}) }}
Diagnostics Report
ERROR in logs file.
Seems like this like in controller (
IncludeController.php
) is causing the issueas $params always needs to be array, this error is throwing from craft end. I changed the code to this and it works
The text was updated successfully, but these errors were encountered: