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

Server error in v1.0.11 #8

Open
jmcgaha opened this issue Aug 15, 2019 · 5 comments
Open

Server error in v1.0.11 #8

jmcgaha opened this issue Aug 15, 2019 · 5 comments
Assignees

Comments

@jmcgaha
Copy link
Contributor

jmcgaha commented Aug 15, 2019

Today I upgraded the production server from v1.0.10 to v1.0.11 and we noticed the error below when we tried to access a Draft.

I was able to downgrade to v1.0.10 and the error went away.
I'm fairly certain it has to do with the Diff code that was added as that seems to have some effects with templating.

Let me know if you think you can fix this or perhaps do we need to temporarily remove the dif feature?

An Error occurred while handling another error: craft\web\twig\TemplateLoaderException: Unable to find the template “guide/_user_guide/user_guide_modal”. in /chroot/home/lynnedu/lynn.edu/vendor/craftcms/cms/src/web/twig/TemplateLoader.php:125 Stack trace: #0 /chroot/home/lynnedu/lynn.edu/vendor/craftcms/cms/src/web/twig/TemplateLoader.php(78): craft\web\twig\TemplateLoader->_resolveTemplate('guide/_user_gui...') #1 /chroot/home/lynnedu/lynn.edu/vendor/twig/twig/src/Environment.php(299): craft\web\twig\TemplateLoader->getCacheKey('guide/_user_gui...') #2 /chroot/home/lynnedu/lynn.edu/vendor/twig/twig/src/Environment.php(381): Twig\Environment->getTemplateClass('guide/_user_gui...') #3 /chroot/home/lynnedu/lynn.edu/vendor/craftcms/cms/src/web/twig/Environment.php(44): Twig\Environment->loadTemplate('guide/_user_gui...', NULL) #4 /chroot/home/lynnedu/lynn.edu/vendor/twig/twig/src/Environment.php(359): craft\web\twig\Environment->loadTemplate('guide/_user_gui...') #5 /chroot/home/lynnedu/lynn.edu/vendor/twig/twig/src/Environment.php(318): Twig\Environment->load('guide/_user_gui...') #6 /chroot/home/lynnedu/lynn.edu/vendor/craftcms/cms/src/web/View.php(343): Twig\Environment->render('guide/_user_gui...', Array) #7 /chroot/home/lynnedu/lynn.edu/vendor/wbrowar/guide/src/services/GuideService.php(307): craft\web\View->renderTemplate('guide/_user_gui...', Array) #8 /chroot/home/lynnedu/lynn.edu/vendor/wbrowar/guide/src/Guide.php(289): wbrowar\guide\services\GuideService->renderUserGuideTemplate('guide/_user_gui...', Object(craft\elements\Entry)) #9 [internal function]: wbrowar\guide\Guide->wbrowar\guide\{closure}(Object(yii\base\Event)) #10 /chroot/home/lynnedu/lynn.edu/vendor/yiisoft/yii2/base/Event.php(312): call_user_func(Object(Closure), Object(yii\base\Event)) #11 /chroot/home/lynnedu/lynn.edu/vendor/yiisoft/yii2/base/Component.php(636): yii\base\Event::trigger('craft\\web\\View', 'endBody', Object(yii\base\Event)) #12 /chroot/home/lynnedu/lynn.edu/vendor/yiisoft/yii2/web/View.php(158): yii\base\Component->trigger('endBody') #13 /chroot/home/lynnedu/lynn.edu/vendor/craftcms/cms/src/web/View.php(888): yii\web\View->endBody() #14 /chroot/home/lynnedu/lynn.edu/vendor/yiisoft/yii2/views/errorHandler/exception.php(538): craft\web\View->endBody() #15 /chroot/home/lynnedu/lynn.edu/vendor/yiisoft/yii2/base/View.php(348): require('/chroot/home/ly...') #16 /chroot/home/lynnedu/lynn.edu/vendor/yiisoft/yii2/base/View.php(257): yii\base\View->renderPhpFile('/chroot/home/ly...', Array) #17 /chroot/home/lynnedu/lynn.edu/vendor/yiisoft/yii2/web/ErrorHandler.php(269): yii\base\View->renderFile('/chroot/home/ly...', Array, Object(craft\web\ErrorHandler)) #18 /chroot/home/lynnedu/lynn.edu/vendor/yiisoft/yii2/web/ErrorHandler.php(126): yii\web\ErrorHandler->renderFile('@yii/views/erro...', Array) #19 /chroot/home/lynnedu/lynn.edu/vendor/craftcms/cms/src/web/ErrorHandler.php(137): yii\web\ErrorHandler->renderException(Object(craft\web\twig\TemplateLoaderException)) #20 /chroot/home/lynnedu/lynn.edu/vendor/yiisoft/yii2/base/ErrorHandler.php(111): craft\web\ErrorHandler->renderException(Object(craft\web\twig\TemplateLoaderException)) #21 /chroot/home/lynnedu/lynn.edu/vendor/craftcms/cms/src/web/ErrorHandler.php(68): yii\base\ErrorHandler->handleException(Object(craft\web\twig\TemplateLoaderException)) #22 [internal function]: craft\web\ErrorHandler->handleException(Object(craft\web\twig\TemplateLoaderException)) #23 {main} Previous exception: craft\web\twig\TemplateLoaderException: Unable to find the template “@lynn-event-address” in "craft3/_pages/events/_eventDetails.twig" at line 17. in /chroot/home/lynnedu/lynn.edu/vendor/craftcms/cms/src/web/twig/TemplateLoader.php:125 Stack trace: #0 /chroot/home/lynnedu/lynn.edu/vendor/craftcms/cms/src/web/twig/TemplateLoader.php(78): craft\web\twig\TemplateLoader->_resolveTemplate('@lynn-event-add...') #1 /chroot/home/lynnedu/lynn.edu/vendor/twig/twig/src/Environment.php(299): craft\web\twig\TemplateLoader->getCacheKey('@lynn-event-add...') #2 /chroot/home/lynnedu/lynn.edu/vendor/twig/twig/src/Environment.php(381): Twig\Environment->getTemplateClass('@lynn-event-add...') #3 /chroot/home/lynnedu/lynn.edu/vendor/craftcms/cms/src/web/twig/Environment.php(44): Twig\Environment->loadTemplate('@lynn-event-add...', NULL) #4 /chroot/home/lynnedu/lynn.edu/vendor/twig/twig/src/Template.php(335): craft\web\twig\Environment->loadTemplate('@lynn-event-add...', NULL) #5 /chroot/home/lynnedu/lynn.edu/storage/runtime/compiled_templates/77/7740fb8aed6147d33460e63284826b15be070b76a90fd0d061720c6cf539ee07.php(59): Twig\Template->loadTemplate('@lynn-event-add...', 'craft3/_pages/e...', 17) #6 /chroot/home/lynnedu/lynn.edu/vendor/twig/twig/src/Template.php(407): __TwigTemplate_1627b71e7282db7f132aaa2e6e25887eef7c4f333c1facefeea4f8cd31cdd6b7->doDisplay(Array, Array) #7 /chroot/home/lynnedu/lynn.edu/vendor/craftcms/cms/src/web/twig/Template.php(52): Twig\Template->displayWithErrorHandling(Array, Array) #8 /chroot/home/lynnedu/lynn.edu/vendor/twig/twig/src/Template.php(380): craft\web\twig\Template->displayWithErrorHandling(Array, Array) #9 /chroot/home/lynnedu/lynn.edu/vendor/craftcms/cms/src/web/twig/Template.php(34): Twig\Template->display(Array, Array) #10 /chroot/home/lynnedu/lynn.edu/storage/runtime/compiled_templates/33/33ef52d11b95b16eb39827b201c9226e60f2f7548f15995431aa54844151b86a.php(61): craft\web\twig\Template->display(Array) #11 /chroot/home/lynnedu/lynn.edu/vendor/twig/twig/src/Template.php(407): __TwigTemplate_bd2dbfc34b095bf2d030650dbd704261c52b5e0bc867ad43264df5b9f10587d2->doDisplay(Array, Array) #12 /chroot/home/lynnedu/lynn.edu/vendor/craftcms/cms/src/web/twig/Template.php(52): Twig\Template->displayWithErrorHandling(Array, Array) #13 /chroot/home/lynnedu/lynn.edu/vendor/twig/twig/src/Template.php(380): craft\web\twig\Template->displayWithErrorHandling(Array, Array) #14 /chroot/home/lynnedu/lynn.edu/vendor/craftcms/cms/src/web/twig/Template.php(34): Twig\Template->display(Array, Array) #15 /chroot/home/lynnedu/lynn.edu/vendor/twig/twig/src/Template.php(392): craft\web\twig\Template->display(Array) #16 /chroot/home/lynnedu/lynn.edu/vendor/twig/twig/src/TemplateWrapper.php(45): Twig\Template->render(Array, Array) #17 /chroot/home/lynnedu/lynn.edu/vendor/twig/twig/src/Environment.php(318): Twig\TemplateWrapper->render(Array) #18 /chroot/home/lynnedu/lynn.edu/vendor/craftcms/cms/src/web/View.php(343): Twig\Environment->render('craft3/_pages/e...', Array) #19 /chroot/home/lynnedu/lynn.edu/vendor/therefinery/lynnworkflow/src/services/Service.php(229): craft\web\View->renderTemplate('craft3/_pages/e...', Array) #20 /chroot/home/lynnedu/lynn.edu/vendor/therefinery/lynnworkflow/src/services/Service.php(177): therefinery\lynnworkflow\services\Service->_templateEntry(Object(craft\elements\Entry), 'cp') #21 /chroot/home/lynnedu/lynn.edu/vendor/therefinery/lynnworkflow/src/services/Service.php(121): therefinery\lynnworkflow\services\Service->prepareForDiff(Array) #22 /chroot/home/lynnedu/lynn.edu/vendor/therefinery/lynnworkflow/src/services/Service.php(75): therefinery\lynnworkflow\services\Service->_renderEntrySidebarPanel(Array, Object(therefinery\lynnworkflow\elements\Workflow), Object(craft\elements\User)) #23 /chroot/home/lynnedu/lynn.edu/vendor/craftcms/cms/src/web/View.php(1275): therefinery\lynnworkflow\services\Service->renderEntrySidebar('<span class="st...') #24 /chroot/home/lynnedu/lynn.edu/storage/runtime/compiled_templates/a8/a85ebe6ff5ac29f4608cfb5eef3ad8524e1780fd027a11664429148598984769.php(644): craft\web\View->invokeHook('cp.entries.edit...', '<span class="st...') #25 /chroot/home/lynnedu/lynn.edu/vendor/twig/twig/src/Template.php(184): __TwigTemplate_7a0add47678d3acfef7abef1cd2f4f00e8a62a74a78b3cab3e8c0797bc497a88->block_details('<span class="st...', Array) #26 /chroot/home/lynnedu/lynn.edu/vendor/twig/twig/src/Template.php(256): Twig\Template->displayBlock('details', Array, Array, true) #27 /chroot/home/lynnedu/lynn.edu/storage/runtime/compiled_templates/4d/4d654fdb435fee0628f1b87f8c4ee2ec8e51c6e352966b29ece2f341d3f485d9.php(95): Twig\Template->renderBlock('details', Array, Array) #28 /chroot/home/lynnedu/lynn.edu/vendor/twig/twig/src/Template.php(407): __TwigTemplate_bbb39d498d4f8376e27e7acd6d250067778ee5cdf863208613a43ca02e88eb6b->doDisplay(Array, Array) #29 /chroot/home/lynnedu/lynn.edu/vendor/craftcms/cms/src/web/twig/Template.php(52): Twig\Template->displayWithErrorHandling(Array, Array) #30 /chroot/home/lynnedu/lynn.edu/vendor/twig/twig/src/Template.php(380): craft\web\twig\Template->displayWithErrorHandling(Array, Array) #31 /chroot/home/lynnedu/lynn.edu/vendor/craftcms/cms/src/web/twig/Template.php(34): Twig\Template->display(Array, Array) #32 /chroot/home/lynnedu/lynn.edu/storage/runtime/compiled_templates/a8/a85ebe6ff5ac29f4608cfb5eef3ad8524e1780fd027a11664429148598984769.php(81): craft\web\twig\Template->display(Array, Array) #33 /chroot/home/lynnedu/lynn.edu/vendor/twig/twig/src/Template.php(407): __TwigTemplate_7a0add47678d3acfef7abef1cd2f4f00e8a62a74a78b3cab3e8c0797bc497a88->doDisplay(Array, Array) #34 /chroot/home/lynnedu/lynn.edu/vendor/craftcms/cms/src/web/twig/Template.php(52): Twig\Template->displayWithErrorHandling(Array, Array) #35 /chroot/home/lynnedu/lynn.edu/vendor/twig/twig/src/Template.php(380): craft\web\twig\Template->displayWithErrorHandling(Array, Array) #36 /chroot/home/lynnedu/lynn.edu/vendor/craftcms/cms/src/web/twig/Template.php(34): Twig\Template->display(Array, Array) #37 /chroot/home/lynnedu/lynn.edu/vendor/twig/twig/src/Template.php(392): craft\web\twig\Template->display(Array) #38 /chroot/home/lynnedu/lynn.edu/vendor/twig/twig/src/TemplateWrapper.php(45): Twig\Template->render(Array, Array) #39 /chroot/home/lynnedu/lynn.edu/vendor/twig/twig/src/Environment.php(318): Twig\TemplateWrapper->render(Array) #40 /chroot/home/lynnedu/lynn.edu/vendor/craftcms/cms/src/web/View.php(343): Twig\Environment->render('entries/_edit', Array) #41 /chroot/home/lynnedu/lynn.edu/vendor/craftcms/cms/src/web/View.php(393): craft\web\View->renderTemplate('entries/_edit', Array) #42 /chroot/home/lynnedu/lynn.edu/vendor/craftcms/cms/src/web/Controller.php(166): craft\web\View->renderPageTemplate('entries/_edit', Array) #43 /chroot/home/lynnedu/lynn.edu/vendor/craftcms/cms/src/controllers/EntriesController.php(396): craft\web\Controller->renderTemplate('entries/_edit', Array) #44 [internal function]: craft\controllers\EntriesController->actionEditEntry('events', 76233, 4116, NULL, NULL, Object(craft\models\EntryDraft)) #45 /chroot/home/lynnedu/lynn.edu/vendor/yiisoft/yii2/base/InlineAction.php(57): call_user_func_array(Array, Array) #46 /chroot/home/lynnedu/lynn.edu/vendor/yiisoft/yii2/base/Controller.php(157): yii\base\InlineAction->runWithParams(Array) #47 /chroot/home/lynnedu/lynn.edu/vendor/craftcms/cms/src/web/Controller.php(110): yii\base\Controller->runAction('edit-entry', Array) #48 /chroot/home/lynnedu/lynn.edu/vendor/yiisoft/yii2/base/Module.php(528): craft\web\Controller->runAction('edit-entry', Array) #49 /chroot/home/lynnedu/lynn.edu/vendor/craftcms/cms/src/web/Application.php(297): yii\base\Module->runAction('entries/edit-en...', Array) #50 /chroot/home/lynnedu/lynn.edu/vendor/yiisoft/yii2/web/Application.php(103): craft\web\Application->runAction('entries/edit-en...', Array) #51 /chroot/home/lynnedu/lynn.edu/vendor/craftcms/cms/src/web/Application.php(286): yii\web\Application->handleRequest(Object(craft\web\Request)) #52 /chroot/home/lynnedu/lynn.edu/vendor/yiisoft/yii2/base/Application.php(386): craft\web\Application->handleRequest(Object(craft\web\Request)) #53 /chroot/home/lynnedu/lynn.edu/html/index.php(23): yii\base\Application->run() #54 {main}

@criticalmash
Copy link
Collaborator

Hi @jmcgaha, I'm on vacation right now till Tuesday, Aug 20th. I can look at it after that.

@criticalmash
Copy link
Collaborator

Hi @jmcgaha I'm trying to recreate this error. Can you tell me what page you were working with when you saw this error? The plugin might have tried to diff a page with missing templates.

@jmcgaha
Copy link
Contributor Author

jmcgaha commented Aug 21, 2019

It was viewing any draft.
To quickly create one, open any entry in craft, in the top right, click the little arrow next to the save button and do "Save as Draft".

@criticalmash
Copy link
Collaborator

Quick question, the guide/_user_guide/user_guide_modal template is only called from the control panel, right? This issue appears to be related to the template mode (site vs cp). The plugin is suppose to switch to site mode before rendering content for the diff, but if the user guide templates are being called the switch must be failing somehow.

@jmcgaha
Copy link
Contributor Author

jmcgaha commented Aug 21, 2019

Correct, that plugin helps provide instructions for how to use the cp.

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

2 participants