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

"Identifier "messages" is not defined." in "partials/messages.html.twig" at line 1 #1207

Closed
jappe66 opened this issue Dec 12, 2016 · 6 comments

Comments

@jappe66
Copy link

jappe66 commented Dec 12, 2016

I just updated all my plugins as well as the admin plugin itself to the latest versions and now I'm getting this error when trying to access admin:

0 - An exception has been thrown during the rendering of a template ("Identifier "messages" is not defined.") in "partials/messages.html.twig" at line 1.

In the log:

[2016-12-12 08:55:02] grav.CRITICAL: An exception has been thrown during the rendering of a template ("Identifier "messages" is not defined.") in "partials/messages.html.twig" at line 1. - Trace: #0 /var/www/clients/client9/web13/web/v2/vendor/twig/twig/lib/Twig/Template.php(350): Twig_Template->displayWithErrorHandling(Array, Array) #1 /var/www/clients/client9/web13/web/v2/cache/twig/7d/7dff403d142e9a2d756f252e188ee962252b1330d727c9b7ba3cbc1ae1c80556.php(304): Twig_Template->display(Array) #2 /var/www/clients/client9/web13/web/v2/vendor/twig/twig/lib/Twig/Template.php(189): __TwigTemplate_713c981bf753081f6a40091b53505b6c1775baba49cb1d114c0a80c716bb1686->block_messages(Array, Array) #3 /var/www/clients/client9/web13/web/v2/cache/twig/7d/7dff403d142e9a2d756f252e188ee962252b1330d727c9b7ba3cbc1ae1c80556.php(191): Twig_Template->displayBlock('messages', Array, Array) #4 /var/www/clients/client9/web13/web/v2/vendor/twig/twig/lib/Twig/Template.php(189): __TwigTemplate_713c981bf753081f6a40091b53505b6c1775baba49cb1d114c0a80c716bb1686->block_page(Array, Array) #5 /var/www/clients/client9/web13/web/v2/cache/twig/7d/7dff403d142e9a2d756f252e188ee962252b1330d727c9b7ba3cbc1ae1c80556.php(158): Twig_Template->displayBlock('page', Array, Array) #6 /var/www/clients/client9/web13/web/v2/vendor/twig/twig/lib/Twig/Template.php(189): __TwigTemplate_713c981bf753081f6a40091b53505b6c1775baba49cb1d114c0a80c716bb1686->block_body(Array, Array) #7 /var/www/clients/client9/web13/web/v2/cache/twig/7d/7dff403d142e9a2d756f252e188ee962252b1330d727c9b7ba3cbc1ae1c80556.php(45): Twig_Template->displayBlock('body', Array, Array) #8 /var/www/clients/client9/web13/web/v2/vendor/twig/twig/lib/Twig/Template.php(382): __TwigTemplate_713c981bf753081f6a40091b53505b6c1775baba49cb1d114c0a80c716bb1686->doDisplay(Array, Array) #9 /var/www/clients/client9/web13/web/v2/vendor/twig/twig/lib/Twig/Template.php(350): Twig_Template->displayWithErrorHandling(Array, Array) #10 /var/www/clients/client9/web13/web/v2/cache/twig/e0/e00ff3035159c99bc3f95d87ab63fa299c9c7be42969983e1a35fb1a6cdfa694.php(32): Twig_Template->display(Array, Array) #11 /var/www/clients/client9/web13/web/v2/vendor/twig/twig/lib/Twig/Template.php(382): __TwigTemplate_6ca9ecdcbf92903e60e3bc1747ec0fbc4fd17f33be5a2bcb60a97c3e1358b7ef->doDisplay(Array, Array) #12 /var/www/clients/client9/web13/web/v2/vendor/twig/twig/lib/Twig/Template.php(350): Twig_Template->displayWithErrorHandling(Array, Array) #13 /var/www/clients/client9/web13/web/v2/vendor/twig/twig/lib/Twig/Template.php(361): Twig_Template->display(Array) #14 /var/www/clients/client9/web13/web/v2/vendor/twig/twig/lib/Twig/Environment.php(357): Twig_Template->render(Array) #15 /var/www/clients/client9/web13/web/v2/system/src/Grav/Common/Twig/Twig.php(340): Twig_Environment->render('dashboard.html....', Array) #16 /var/www/clients/client9/web13/web/v2/system/src/Grav/Common/Service/OutputServiceProvider.php(18): Grav\Common\Twig\Twig->processSite(NULL) #17 /var/www/clients/client9/web13/web/v2/vendor/pimple/pimple/src/Pimple/Container.php(113): Grav\Common\Service\OutputServiceProvider->Grav\Common\Service{closure}(Object(Grav\Common\Grav)) #18 /var/www/clients/client9/web13/web/v2/system/src/Grav/Common/Processors/RenderProcessor.php(17): Pimple\Container->offsetGet('output') #19 /var/www/clients/client9/web13/web/v2/system/src/Grav/Common/Grav.php(121): Grav\Common\Processors\RenderProcessor->process() #20 /var/www/clients/client9/web13/web/v2/system/src/Grav/Common/Grav.php(358): Grav\Common\Grav->Grav\Common{closure}() #21 [internal function]: Grav\Common\Grav::Grav\Common{closure}('render', 'Render', Object(Closure)) #22 /var/www/clients/client9/web13/web/v2/system/src/Grav/Common/Grav.php(334): call_user_func_array(Object(Closure), Array) #23 /var/www/clients/client9/web13/web/v2/system/src/Grav/Common/Grav.php(122): Grav\Common\Grav->__call('measureTime', Array) #24 /var/www/clients/client9/web13/web/v2/system/src/Grav/Common/Grav.php(122): Grav\Common\Grav->measureTime('render', 'Render', Object(Closure)) #25 /var/www/clients/client9/web13/web/v2/index.php(45): Grav\Common\Grav->process() #26 {main} [] []

I have done "bin/gpm update" and "bin/composer.phar install".

I updated all of the plugins at once so I'm not sure which one triggered this but there was at least Email and Form plugins that needed to update.

@flaviocopes
Copy link
Contributor

Question, you're using the latest stable version, or are you using the testing channel?

I know I got this problem when I updated to Login (RC) but failed to update Admin too.

@jappe66
Copy link
Author

jappe66 commented Dec 13, 2016

Using the RC version. Now I'm back to stable version with no problems anymore. I should maybe stick with them :) just wanted to post this.

@flaviocopes
Copy link
Contributor

If using RCs, update all plugins by putting Grav on the testing channel (system.gpm.releases: testing) so all plugins are up to date too

@Renkineko
Copy link

Renkineko commented Jan 25, 2017

Hi, where should i save the system.gpm.releases: testing line ? Same problem than OP here, but don't know if i'm using testing or stable, i updated grav from the interface and i don't remember what i downloaded back in time :)

Thanks

EDIT: i think i found where to change it, but the error still occurs. Just changing the system.yaml isn't enough, right? What's the command i should run on the server please? :)

@flaviocopes
Copy link
Contributor

You probably don't have the latest version of login or admin. Use bin/gpm update from the command line.

@Renkineko
Copy link

Renkineko commented Jan 25, 2017

I tried that command but it just updated the themes one... :/

EDIT: well, i tried uninstall completely the admin, selfupgrade the grav system then reinstall it, but now i have other error with form_serializable failed to open stream. I'll try to fix it later, thanks for the help and the hint of bin/gpm update command :)

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

3 participants