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

Exception on category page in Craft 3.7 #15

Open
daltonrooney opened this issue Sep 21, 2021 · 0 comments
Open

Exception on category page in Craft 3.7 #15

daltonrooney opened this issue Sep 21, 2021 · 0 comments

Comments

@daltonrooney
Copy link

When trying to access a category page with Element Map enabled

yii\base\ErrorException: Trying to access array offset on value of type null in /home/userwebapps/project/releases//craft/vendor/charliedev/element-map/src/ElementMap.php:113
Stack trace:
#0 /home/userwebapps/project/releases//craft/vendor/craftcms/cms/src/web/ErrorHandler.php(75): yii\base\ErrorHandler->handleError()
#1 /home/userwebapps/project/releases//craft/vendor/charliedev/element-map/src/ElementMap.php(113): craft\web\ErrorHandler->handleError()
#2 /home/userwebapps/project/releases//craft/vendor/craftcms/cms/src/web/View.php(1659): charliedev\elementmap\ElementMap->renderCategoryElementMap()
#3 /home/userwebapps/project/releases//craft/storage/runtime/compiled_templates/3f/3ffbf54cd96dbaf8e1061d96752bd6c28e328aabf16fde5bc59875b347e4b0c0.php(156): craft\web\View->invokeHook()
#4 /home/userwebapps/project/releases//craft/vendor/twig/twig/src/Template.php(182): __TwigTemplate_26b9998fe838ee494380567d2a07b1a9ba131fb7552c8d6106b88a519a447fff->block_details()
#5 /home/userwebapps/project/releases//craft/vendor/twig/twig/src/Template.php(254): Twig\Template->displayBlock()
#6 /home/userwebapps/project/releases//craft/storage/runtime/compiled_templates/6f/6ff023b0403fdc1c8dff6cac7c5a927975992ae5e30ec7f180e312dc61fd8bd0.php(101): Twig\Template->renderBlock()
#7 /home/userwebapps/project/releases//craft/vendor/twig/twig/src/Template.php(405): __TwigTemplate_48f6c2ff9894758923c915b19331ab8c426302742cd27c8d0f28ff7cabd451f5->doDisplay()
#8 /home/userwebapps/project/releases//craft/vendor/twig/twig/src/Template.php(378): Twig\Template->displayWithErrorHandling()
#9 /home/userwebapps/project/releases//craft/storage/runtime/compiled_templates/69/69668b06eb783202d928cec83d5a40657972b038ddadadf42c37588f42a16e5e.php(342): Twig\Template->display()
#10 /home/userwebapps/project/releases//craft/vendor/twig/twig/src/Template.php(405): __TwigTemplate_a83a5e41c626b6bf06db505f0dd4ff85bcc2e3baf445615bf8304028e73f49ba->doDisplay()
#11 /home/userwebapps/project/releases//craft/vendor/twig/twig/src/Template.php(378): Twig\Template->displayWithErrorHandling()
#12 /home/userwebapps/project/releases//craft/storage/runtime/compiled_templates/3f/3ffbf54cd96dbaf8e1061d96752bd6c28e328aabf16fde5bc59875b347e4b0c0.php(77): Twig\Template->display()
#13 /home/userwebapps/project/releases//craft/vendor/twig/twig/src/Template.php(405): __TwigTemplate_26b9998fe838ee494380567d2a07b1a9ba131fb7552c8d6106b88a519a447fff->doDisplay()
#14 /home/userwebapps/project/releases//craft/vendor/twig/twig/src/Template.php(378): Twig\Template->displayWithErrorHandling()
#15 /home/userwebapps/project/releases//craft/vendor/twig/twig/src/Template.php(390): Twig\Template->display()
#16 /home/userwebapps/project/releases//craft/vendor/twig/twig/src/TemplateWrapper.php(45): Twig\Template->render()
#17 /home/userwebapps/project/releases//craft/vendor/twig/twig/src/Environment.php(318): Twig\TemplateWrapper->render()
#18 /home/userwebapps/project/releases//craft/vendor/craftcms/cms/src/web/View.php(408): Twig\Environment->render()
#19 /home/userwebapps/project/releases//craft/vendor/craftcms/cms/src/web/View.php(461): craft\web\View->renderTemplate()
#20 /home/userwebapps/project/releases//craft/vendor/craftcms/cms/src/web/Controller.php(257): craft\web\View->renderPageTemplate()
#21 /home/userwebapps/project/releases//craft/vendor/craftcms/cms/src/controllers/CategoriesController.php(401): craft\web\Controller->renderTemplate()
#22 [internal function]: craft\controllers\CategoriesController->actionEditCategory()
#23 /home/userwebapps/project/releases//craft/vendor/yiisoft/yii2/base/InlineAction.php(57): call_user_func_array()
#24 /home/userwebapps/project/releases//craft/vendor/yiisoft/yii2/base/Controller.php(181): yii\base\InlineAction->runWithParams()
#25 /home/userwebapps/project/releases//craft/vendor/craftcms/cms/src/web/Controller.php(190): yii\base\Controller->runAction()
#26 /home/userwebapps/project/releases//craft/vendor/yiisoft/yii2/base/Module.php(534): craft\web\Controller->runAction()
#27 /home/userwebapps/project/releases//craft/vendor/craftcms/cms/src/web/Application.php(276): yii\base\Module->runAction()
#28 /home/userwebapps/project/releases//craft/vendor/yiisoft/yii2/web/Application.php(104): craft\web\Application->runAction()
#29 /home/userwebapps/project/releases//craft/vendor/craftcms/cms/src/web/Application.php(261): yii\web\Application->handleRequest()
#30 /home/userwebapps/project/releases//craft/vendor/yiisoft/yii2/base/Application.php(392): craft\web\Application->handleRequest()
#31 /home/userwebapps/project/releases//public/index.php(21): yii\base\Application->run()
#32 {main}
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