My problem referred to on my first post is still not solved. It happens on 2 twin production websites more frequently recently.
The 2 websites, both multi-lingual, will be OK for several days, then down with various errors. I tried to clean up things here and there (had problems with ’ and ’ in frontmatter and this is sorted). I fixed permissions. I am all green in ‘Grav Potential Problems’ of the admin, I looked at previous messages on the subject, and on learn.getgrav.org (I do not master all).
How should I trace back the problem?
How can I validate it without having to wait for the next occurrence of the problem?
Hopefully, answers will help others in a similar situation.
Here are the logs of recent events, limited to the first 5 lines:
[2020-08-12 13:16:59] grav.CRITICAL: Template “grid.html.twig” is not defined. - Trace:
#0 /home/okcbncoc/public_html/system/src/Grav/Common/Service/OutputServiceProvider.php(28): Grav\Common\Twig\Twig->processSite(‘html’)
#1 /home/okcbncoc/public_html/vendor/pimple/pimple/src/Pimple/Container.php(118): Grav\Common\Service\OutputServiceProvider->Grav\Common\Service{closure}(Object(Grav\Common\Grav))
#2 /home/okcbncoc/public_html/system/src/Grav/Common/Processors/RenderProcessor.php(28): Pimple\Container->offsetGet(‘output’)
#3 /home/okcbncoc/public_html/system/src/Grav/Framework/RequestHandler/Traits/RequestHandlerTrait.php(45): Grav\Common\Processors\RenderProcessor->process(Object(Nyholm\Psr7\ServerRequest), Object(Grav\Framework\RequestHandler\RequestHandler))
#4 /home/okcbncoc/public_html/system/src/Grav/Framework/RequestHandler/Traits/RequestHandlerTrait.php(57): Grav\Framework\RequestHandler\RequestHandler->handle(Object(Nyholm\Psr7\ServerRequest))
#5 /home/okcbncoc/public_html/system/src/Grav/Common/Processors/DebuggerAssetsProcessor.php(28): Grav\Framework\RequestHandler\RequestHandler->handle(Object(Nyholm\Psr7\ServerRequest))
[2020-08-16 20:50:51] grav.CRITICAL: The header string should not be empty. - Trace:
#0 /home/okcbncoc/public_html/system/src/Grav/Common/Page/Page.php(1416): Negotiation\AbstractNegotiator->getBest(’’, Array)
#1 /home/okcbncoc/public_html/system/src/Grav/Common/Service/OutputServiceProvider.php(28): Grav\Common\Page\Page->templateFormat()
#2 /home/okcbncoc/public_html/vendor/pimple/pimple/src/Pimple/Container.php(118): Grav\Common\Service\OutputServiceProvider->Grav\Common\Service{closure}(Object(Grav\Common\Grav))
#3 /home/okcbncoc/public_html/system/src/Grav/Common/Processors/RenderProcessor.php(28): Pimple\Container->offsetGet(‘output’)
#4 /home/okcbncoc/public_html/system/src/Grav/Framework/RequestHandler/Traits/RequestHandlerTrait.php(45): Grav\Common\Processors\RenderProcessor->process(Object(Nyholm\Psr7\ServerRequest), Object(Grav\Framework\RequestHandler\RequestHandler))
#5 /home/okcbncoc/public_html/system/src/Grav/Framework/RequestHandler/Traits/RequestHandlerTrait.php(57): Grav\Framework\RequestHandler\RequestHandler->handle(Object(Nyholm\Psr7\ServerRequest))
[2020-08-19 17:14:31] grav.CRITICAL: The header string should not be empty. - Trace:
#0 /home/okcbncoc/public_html/system/src/Grav/Common/Page/Page.php(1416): Negotiation\AbstractNegotiator->getBest(’’, Array)
#1 /home/okcbncoc/public_html/system/src/Grav/Common/Service/OutputServiceProvider.php(28): Grav\Common\Page\Page->templateFormat()
#2 /home/okcbncoc/public_html/vendor/pimple/pimple/src/Pimple/Container.php(118): Grav\Common\Service\OutputServiceProvider->Grav\Common\Service{closure}(Object(Grav\Common\Grav))
#3 /home/okcbncoc/public_html/system/src/Grav/Common/Processors/RenderProcessor.php(28): Pimple\Container->offsetGet(‘output’)
#4 /home/okcbncoc/public_html/system/src/Grav/Framework/RequestHandler/Traits/RequestHandlerTrait.php(45): Grav\Common\Processors\RenderProcessor->process(Object(Nyholm\Psr7\ServerRequest), Object(Grav\Framework\RequestHandler\RequestHandler))
#5 /home/okcbncoc/public_html/system/src/Grav/Framework/RequestHandler/Traits/RequestHandlerTrait.php(57): Grav\Framework\RequestHandler\RequestHandler->handle(Object(Nyholm\Psr7\ServerRequest))
[2020-08-21 19:21:12] grav.CRITICAL: syntax error, unexpected end of file, expecting ‘]’ - Trace:
#0 /home/okcbncoc/public_html/system/src/Grav/Common/Config/CompiledBase.php(116): Grav\Common\Config\CompiledBase->loadCompiledFile(’/home/okcbncoc/…’)
#1 /home/okcbncoc/public_html/system/src/Grav/Common/Service/ConfigServiceProvider.php(137): Grav\Common\Config\CompiledBase->load()
#2 /home/okcbncoc/public_html/system/src/Grav/Common/Service/ConfigServiceProvider.php(51): Grav\Common\Service\ConfigServiceProvider::languages(Object(Grav\Common\Grav))
#3 /home/okcbncoc/public_html/vendor/pimple/pimple/src/Pimple/Container.php(118): Grav\Common\Service\ConfigServiceProvider->Grav\Common\Service{closure}(Object(Grav\Common\Grav))
#4 /home/okcbncoc/public_html/system/src/Grav/Common/Themes.php(307): Pimple\Container->offsetGet(‘languages’)
#5 /home/okcbncoc/public_html/system/src/Grav/Common/Themes.php(278): Grav\Common\Themes->loadLanguages(Object(Grav\Common\Config\Config))
[2020-08-30 10:27:43] grav.CRITICAL: syntax error, unexpected ‘’—’ (T_ENCAPSED_AND_WHITESPACE) - Trace:
#0 /home/okcbncoc/public_html/system/src/Grav/Common/Config/CompiledBase.php(116): Grav\Common\Config\CompiledBase->loadCompiledFile(’/home/okcbncoc/…’)
#1 /home/okcbncoc/public_html/system/src/Grav/Common/Service/ConfigServiceProvider.php(137): Grav\Common\Config\CompiledBase->load()
#2 /home/okcbncoc/public_html/system/src/Grav/Common/Service/ConfigServiceProvider.php(51): Grav\Common\Service\ConfigServiceProvider::languages(Object(Grav\Common\Grav))
#3 /home/okcbncoc/public_html/vendor/pimple/pimple/src/Pimple/Container.php(118): Grav\Common\Service\ConfigServiceProvider->Grav\Common\Service{closure}(Object(Grav\Common\Grav))
#4 /home/okcbncoc/public_html/system/src/Grav/Common/Themes.php(307): Pimple\Container->offsetGet(‘languages’)
#5 /home/okcbncoc/public_html/system/src/Grav/Common/Themes.php(278): Grav\Common\Themes->loadLanguages(Object(Grav\Common\Config\Config))
[2020-09-02 12:08:08] grav.CRITICAL: syntax error, unexpected ‘‘Il tipo di pagina che si trad’ (T_ENCAPSED_AND_WHITESPACE) - Trace:
#0 /home/okcbncoc/public_html/system/src/Grav/Common/Config/CompiledBase.php(116): Grav\Common\Config\CompiledBase->loadCompiledFile(’/home/okcbncoc/…’)
#1 /home/okcbncoc/public_html/system/src/Grav/Common/Service/ConfigServiceProvider.php(137): Grav\Common\Config\CompiledBase->load()
#2 /home/okcbncoc/public_html/system/src/Grav/Common/Service/ConfigServiceProvider.php(51): Grav\Common\Service\ConfigServiceProvider::languages(Object(Grav\Common\Grav))
#3 /home/okcbncoc/public_html/vendor/pimple/pimple/src/Pimple/Container.php(118): Grav\Common\Service\ConfigServiceProvider->Grav\Common\Service{closure}(Object(Grav\Common\Grav))
#4 /home/okcbncoc/public_html/system/src/Grav/Common/Themes.php(307): Pimple\Container->offsetGet(‘languages’)
#5 /home/okcbncoc/public_html/system/src/Grav/Common/Themes.php(278): Grav\Common\Themes->loadLanguages(Object(Grav\Common\Config\Config))
Thank you for help.