An exception has been thrown during the rendering of a template

hi guys,

I’m trying to figure out why I’m getting the below error in the Grav admin. The modular template exists in the correct directory and the actual page on the site renders fine. It’s just in the admin I can no longer update the page.

Stack track is attached below. I can only assume that possibly some data on the page is causing this? Any ideas on where to start the investigation. Clearly the template itself exists and is present.

Twig\Error\RuntimeError thrown with message “An exception has been thrown during the rendering of a template (“Template “modular/yoyo-logos.html.twig” is not defined.”).”

Stacktrace:
#83 Twig\Error\RuntimeError in /Applications/MAMP/htdocs/poweredbyyoyo-dev/user/plugins/admin/themes/grav/templates/pages.html.twig:326
#82 RuntimeException in /Applications/MAMP/htdocs/poweredbyyoyo-dev/system/src/Grav/Common/Twig/Twig.php:292
#81 Twig\Error\LoaderError in /Applications/MAMP/htdocs/poweredbyyoyo-dev/vendor/twig/twig/src/Loader/ChainLoader.php:142
#80 Twig\Loader\ChainLoader:getCacheKey in /Applications/MAMP/htdocs/poweredbyyoyo-dev/vendor/twig/twig/src/Environment.php:351
#79 Twig\Environment:getTemplateClass in /Applications/MAMP/htdocs/poweredbyyoyo-dev/vendor/twig/twig/src/Environment.php:445
#78 Twig\Environment:loadTemplate in /Applications/MAMP/htdocs/poweredbyyoyo-dev/vendor/twig/twig/src/Environment.php:423
#77 Twig\Environment:load in /Applications/MAMP/htdocs/poweredbyyoyo-dev/vendor/twig/twig/src/Environment.php:384
#76 Twig\Environment:render in /Applications/MAMP/htdocs/poweredbyyoyo-dev/system/src/Grav/Common/Twig/Twig.php:281
#75 Grav\Common\Twig\Twig:processPage in /Applications/MAMP/htdocs/poweredbyyoyo-dev/system/src/Grav/Common/Page/Page.php:851
#74 Grav\Common\Page\Page:processTwig in /Applications/MAMP/htdocs/poweredbyyoyo-dev/system/src/Grav/Common/Page/Page.php:704
#73 Grav\Common\Page\Page:content in /Applications/MAMP/htdocs/poweredbyyoyo-dev/vendor/twig/twig/src/Template.php:692
#72 Twig\Template:getAttribute in /Applications/MAMP/htdocs/poweredbyyoyo-dev/vendor/twig/twig/src/Environment.php:497
#71 __TwigTemplate_f671ec118848285c0ba9785ee119f63e3c4cd0d6f3fb665b7f696e8dfa5799c1:block_content in /Applications/MAMP/htdocs/poweredbyyoyo-dev/vendor/twig/twig/src/Template.php:216
#70 Twig\Template:displayBlock in /Applications/MAMP/htdocs/poweredbyyoyo-dev/vendor/twig/twig/src/Environment.php:497
#69 __TwigTemplate_3bcc8aec50ca642ecef700daec751f6b1e2e38e93385e592733cd054ff4ab5f4:block_content_wrapper in /Applications/MAMP/htdocs/poweredbyyoyo-dev/vendor/twig/twig/src/Template.php:216
#68 Twig\Template:displayBlock in /Applications/MAMP/htdocs/poweredbyyoyo-dev/vendor/twig/twig/src/Environment.php:497
#67 __TwigTemplate_3bcc8aec50ca642ecef700daec751f6b1e2e38e93385e592733cd054ff4ab5f4:block_page in /Applications/MAMP/htdocs/poweredbyyoyo-dev/vendor/twig/twig/src/Template.php:216
#66 Twig\Template:displayBlock in /Applications/MAMP/htdocs/poweredbyyoyo-dev/vendor/twig/twig/src/Environment.php:497
#65 __TwigTemplate_3bcc8aec50ca642ecef700daec751f6b1e2e38e93385e592733cd054ff4ab5f4:block_body in /Applications/MAMP/htdocs/poweredbyyoyo-dev/vendor/twig/twig/src/Template.php:216
#64 Twig\Template:displayBlock in /Applications/MAMP/htdocs/poweredbyyoyo-dev/vendor/twig/twig/src/Environment.php:497
#63 __TwigTemplate_3bcc8aec50ca642ecef700daec751f6b1e2e38e93385e592733cd054ff4ab5f4:doDisplay in /Applications/MAMP/htdocs/poweredbyyoyo-dev/vendor/twig/twig/src/Template.php:443
#62 Twig\Template:displayWithErrorHandling in /Applications/MAMP/htdocs/poweredbyyoyo-dev/vendor/twig/twig/src/Template.php:414
#61 Twig\Template:display in /Applications/MAMP/htdocs/poweredbyyoyo-dev/vendor/twig/twig/src/Environment.php:497
#60 __TwigTemplate_d97bf8dff13b4f62b001c3c5ad33097350da1b214890b8f4fc9c80f8ac3f6473:doDisplay in /Applications/MAMP/htdocs/poweredbyyoyo-dev/vendor/twig/twig/src/Template.php:443
#59 Twig\Template:displayWithErrorHandling in /Applications/MAMP/htdocs/poweredbyyoyo-dev/vendor/twig/twig/src/Template.php:414
#58 Twig\Template:display in /Applications/MAMP/htdocs/poweredbyyoyo-dev/vendor/twig/twig/src/Environment.php:497
#57 __TwigTemplate_f671ec118848285c0ba9785ee119f63e3c4cd0d6f3fb665b7f696e8dfa5799c1:doDisplay in /Applications/MAMP/htdocs/poweredbyyoyo-dev/vendor/twig/twig/src/Template.php:443
#56 Twig\Template:displayWithErrorHandling in /Applications/MAMP/htdocs/poweredbyyoyo-dev/vendor/twig/twig/src/Template.php:414
#55 Twig\Template:display in /Applications/MAMP/htdocs/poweredbyyoyo-dev/vendor/twig/twig/src/Template.php:422
#54 Twig\Template:render in /Applications/MAMP/htdocs/poweredbyyoyo-dev/vendor/twig/twig/src/TemplateWrapper.php:47
#53 Twig\TemplateWrapper:render in /Applications/MAMP/htdocs/poweredbyyoyo-dev/vendor/twig/twig/src/Environment.php:384
#52 Twig\Environment:render in /Applications/MAMP/htdocs/poweredbyyoyo-dev/system/src/Grav/Common/Twig/Twig.php:388
#51 Grav\Common\Twig\Twig:processSite in /Applications/MAMP/htdocs/poweredbyyoyo-dev/system/src/Grav/Common/Service/OutputServiceProvider.php:28
#50 Grav\Common\Service\OutputServiceProvider:Grav\Common\Service{closure} in /Applications/MAMP/htdocs/poweredbyyoyo-dev/vendor/pimple/pimple/src/Pimple/Container.php:118
#49 Pimple\Container:offsetGet in /Applications/MAMP/htdocs/poweredbyyoyo-dev/system/src/Grav/Common/Processors/RenderProcessor.php:28
#48 Grav\Common\Processors\RenderProcessor:process in /Applications/MAMP/htdocs/poweredbyyoyo-dev/system/src/Grav/Framework/RequestHandler/Traits/RequestHandlerTrait.php:45
#47 Grav\Framework\RequestHandler\RequestHandler:handle in /Applications/MAMP/htdocs/poweredbyyoyo-dev/system/src/Grav/Framework/RequestHandler/Traits/RequestHandlerTrait.php:57
#46 Grav\Framework\RequestHandler\RequestHandler:handle in /Applications/MAMP/htdocs/poweredbyyoyo-dev/system/src/Grav/Common/Processors/DebuggerAssetsProcessor.php:28
#45 Grav\Common\Processors\DebuggerAssetsProcessor:process in /Applications/MAMP/htdocs/poweredbyyoyo-dev/system/src/Grav/Framework/RequestHandler/Traits/RequestHandlerTrait.php:45
#44 Grav\Framework\RequestHandler\RequestHandler:handle in /Applications/MAMP/htdocs/poweredbyyoyo-dev/system/src/Grav/Framework/RequestHandler/Traits/RequestHandlerTrait.php:57
#43 Grav\Framework\RequestHandler\RequestHandler:handle in /Applications/MAMP/htdocs/poweredbyyoyo-dev/system/src/Grav/Common/Processors/PagesProcessor.php:69
#42 Grav\Common\Processors\PagesProcessor:process in /Applications/MAMP/htdocs/poweredbyyoyo-dev/system/src/Grav/Framework/RequestHandler/Traits/RequestHandlerTrait.php:45
#41 Grav\Framework\RequestHandler\RequestHandler:handle in /Applications/MAMP/htdocs/poweredbyyoyo-dev/system/src/Grav/Framework/RequestHandler/Traits/RequestHandlerTrait.php:57
#40 Grav\Framework\RequestHandler\RequestHandler:handle in /Applications/MAMP/htdocs/poweredbyyoyo-dev/system/src/Grav/Common/Processors/TwigProcessor.php:27
#39 Grav\Common\Processors\TwigProcessor:process in /Applications/MAMP/htdocs/poweredbyyoyo-dev/system/src/Grav/Framework/RequestHandler/Traits/RequestHandlerTrait.php:45
#38 Grav\Framework\RequestHandler\RequestHandler:handle in /Applications/MAMP/htdocs/poweredbyyoyo-dev/system/src/Grav/Framework/RequestHandler/Traits/RequestHandlerTrait.php:57
#37 Grav\Framework\RequestHandler\RequestHandler:handle in /Applications/MAMP/htdocs/poweredbyyoyo-dev/system/src/Grav/Common/Processors/AssetsProcessor.php:28
#36 Grav\Common\Processors\AssetsProcessor:process in /Applications/MAMP/htdocs/poweredbyyoyo-dev/system/src/Grav/Framework/RequestHandler/Traits/RequestHandlerTrait.php:45
#35 Grav\Framework\RequestHandler\RequestHandler:handle in /Applications/MAMP/htdocs/poweredbyyoyo-dev/system/src/Grav/Framework/RequestHandler/Traits/RequestHandlerTrait.php:57
#34 Grav\Framework\RequestHandler\RequestHandler:handle in /Applications/MAMP/htdocs/poweredbyyoyo-dev/system/src/Grav/Common/Processors/SchedulerProcessor.php:29
#33 Grav\Common\Processors\SchedulerProcessor:process in /Applications/MAMP/htdocs/poweredbyyoyo-dev/system/src/Grav/Framework/RequestHandler/Traits/RequestHandlerTrait.php:45
#32 Grav\Framework\RequestHandler\RequestHandler:handle in /Applications/MAMP/htdocs/poweredbyyoyo-dev/system/src/Grav/Framework/RequestHandler/Traits/RequestHandlerTrait.php:57
#31 Grav\Framework\RequestHandler\RequestHandler:handle in /Applications/MAMP/htdocs/poweredbyyoyo-dev/system/src/Grav/Common/Processors/BackupsProcessor.php:28
#30 Grav\Common\Processors\BackupsProcessor:process in /Applications/MAMP/htdocs/poweredbyyoyo-dev/system/src/Grav/Framework/RequestHandler/Traits/RequestHandlerTrait.php:45
#29 Grav\Framework\RequestHandler\RequestHandler:handle in /Applications/MAMP/htdocs/poweredbyyoyo-dev/system/src/Grav/Framework/RequestHandler/Traits/RequestHandlerTrait.php:57
#28 Grav\Framework\RequestHandler\RequestHandler:handle in /Applications/MAMP/htdocs/poweredbyyoyo-dev/system/src/Grav/Common/Processors/TasksProcessor.php:59
#27 Grav\Common\Processors\TasksProcessor:process in /Applications/MAMP/htdocs/poweredbyyoyo-dev/system/src/Grav/Framework/RequestHandler/Traits/RequestHandlerTrait.php:45
#26 Grav\Framework\RequestHandler\RequestHandler:handle in /Applications/MAMP/htdocs/poweredbyyoyo-dev/system/src/Grav/Framework/RequestHandler/Traits/RequestHandlerTrait.php:57
#25 Grav\Framework\RequestHandler\RequestHandler:handle in /Applications/MAMP/htdocs/poweredbyyoyo-dev/system/src/Grav/Common/Processors/RequestProcessor.php:52
#24 Grav\Common\Processors\RequestProcessor:process in /Applications/MAMP/htdocs/poweredbyyoyo-dev/system/src/Grav/Framework/RequestHandler/Traits/RequestHandlerTrait.php:45
#23 Grav\Framework\RequestHandler\RequestHandler:handle in /Applications/MAMP/htdocs/poweredbyyoyo-dev/system/src/Grav/Framework/RequestHandler/Traits/RequestHandlerTrait.php:57
#22 Grav\Framework\RequestHandler\RequestHandler:handle in /Applications/MAMP/htdocs/poweredbyyoyo-dev/system/src/Grav/Common/Processors/ThemesProcessor.php:27
#21 Grav\Common\Processors\ThemesProcessor:process in /Applications/MAMP/htdocs/poweredbyyoyo-dev/system/src/Grav/Framework/RequestHandler/Traits/RequestHandlerTrait.php:45
#20 Grav\Framework\RequestHandler\RequestHandler:handle in /Applications/MAMP/htdocs/poweredbyyoyo-dev/system/src/Grav/Framework/RequestHandler/Traits/RequestHandlerTrait.php:57
#19 Grav\Framework\RequestHandler\RequestHandler:handle in /Applications/MAMP/htdocs/poweredbyyoyo-dev/system/src/Grav/Common/Processors/PluginsProcessor.php:30
#18 Grav\Common\Processors\PluginsProcessor:process in /Applications/MAMP/htdocs/poweredbyyoyo-dev/system/src/Grav/Framework/RequestHandler/Traits/RequestHandlerTrait.php:45
#17 Grav\Framework\RequestHandler\RequestHandler:handle in /Applications/MAMP/htdocs/poweredbyyoyo-dev/system/src/Grav/Framework/RequestHandler/Traits/RequestHandlerTrait.php:57
#16 Grav\Framework\RequestHandler\RequestHandler:handle in /Applications/MAMP/htdocs/poweredbyyoyo-dev/system/src/Grav/Common/Processors/InitializeProcessor.php:78
#15 Grav\Common\Processors\InitializeProcessor:process in /Applications/MAMP/htdocs/poweredbyyoyo-dev/system/src/Grav/Framework/RequestHandler/Traits/RequestHandlerTrait.php:45
#14 Grav\Framework\RequestHandler\RequestHandler:handle in /Applications/MAMP/htdocs/poweredbyyoyo-dev/system/src/Grav/Framework/RequestHandler/Traits/RequestHandlerTrait.php:57
#13 Grav\Framework\RequestHandler\RequestHandler:handle in /Applications/MAMP/htdocs/poweredbyyoyo-dev/system/src/Grav/Common/Processors/DebuggerProcessor.php:27
#12 Grav\Common\Processors\DebuggerProcessor:process in /Applications/MAMP/htdocs/poweredbyyoyo-dev/system/src/Grav/Framework/RequestHandler/Traits/RequestHandlerTrait.php:45
#11 Grav\Framework\RequestHandler\RequestHandler:handle in /Applications/MAMP/htdocs/poweredbyyoyo-dev/system/src/Grav/Framework/RequestHandler/Traits/RequestHandlerTrait.php:57
#10 Grav\Framework\RequestHandler\RequestHandler:handle in /Applications/MAMP/htdocs/poweredbyyoyo-dev/system/src/Grav/Common/Processors/ErrorsProcessor.php:27
#9 Grav\Common\Processors\ErrorsProcessor:process in /Applications/MAMP/htdocs/poweredbyyoyo-dev/system/src/Grav/Framework/RequestHandler/Traits/RequestHandlerTrait.php:45
#8 Grav\Framework\RequestHandler\RequestHandler:handle in /Applications/MAMP/htdocs/poweredbyyoyo-dev/system/src/Grav/Framework/RequestHandler/Traits/RequestHandlerTrait.php:57
#7 Grav\Framework\RequestHandler\RequestHandler:handle in /Applications/MAMP/htdocs/poweredbyyoyo-dev/system/src/Grav/Common/Processors/LoggerProcessor.php:48
#6 Grav\Common\Processors\LoggerProcessor:process in /Applications/MAMP/htdocs/poweredbyyoyo-dev/system/src/Grav/Framework/RequestHandler/Traits/RequestHandlerTrait.php:45
#5 Grav\Framework\RequestHandler\RequestHandler:handle in /Applications/MAMP/htdocs/poweredbyyoyo-dev/system/src/Grav/Framework/RequestHandler/Traits/RequestHandlerTrait.php:57
#4 Grav\Framework\RequestHandler\RequestHandler:handle in /Applications/MAMP/htdocs/poweredbyyoyo-dev/system/src/Grav/Common/Processors/ConfigurationProcessor.php:28
#3 Grav\Common\Processors\ConfigurationProcessor:process in /Applications/MAMP/htdocs/poweredbyyoyo-dev/system/src/Grav/Framework/RequestHandler/Traits/RequestHandlerTrait.php:45
#2 Grav\Framework\RequestHandler\RequestHandler:handle in /Applications/MAMP/htdocs/poweredbyyoyo-dev/system/src/Grav/Framework/RequestHandler/Traits/RequestHandlerTrait.php:57
#1 Grav\Framework\RequestHandler\RequestHandler:handle in /Applications/MAMP/htdocs/poweredbyyoyo-dev/system/src/Grav/Common/Grav.php:249
#0 Grav\Common\Grav:process in /Applications/MAMP/htdocs/poweredbyyoyo-dev/index.php:53

Hi,
I have a same problem.
have you found a solution?

Thx,

Hi,

For me the version of php was not good.
In my case, I could not update php.
So I got the admin plugin on an old Grav and copy in the one that was in prod.
check your php version.

Bye.