- Status: Moved to Github
Hello,
If your system has its own default error page (i.e. you create a manual HTML page and assign it as the default error page for the system) then the system log will fill up with errors:
Template store key: template_3_9362ed9754cc93c8871f17f2af8c1e84_pages missing (calendar, front, pages)
#0 /home/bn1379/public_html/system/Theme/Theme.php(925): IPS\Log::log('Template store ...', 'template_store_...')
#1 /home/bn1379/public_html/applications/cms/sources/Pages/Page.php(2124): IPS\Theme->getTemplate('pages')
#2 /home/bn1379/public_html/applications/cms/sources/Pages/Page.php(598): IPS\cms\Pages\Page->output('c269ab08d0ac117...', 403, Array, '\n<div class="ip...')
#3 /home/bn1379/public_html/system/Output/Output.php(909): IPS\cms\Pages\Page::errorPage('c269ab08d0ac117...', 'We could not lo...', '2L179/1', 403, Array)
#4 /home/bn1379/public_html/applications/calendar/modules/front/calendar/event.php(93): IPS\Output->error('We could not lo...', '2L179/1', 403, '')
#5 /home/bn1379/public_html/system/Dispatcher/Dispatcher.php(169): IPS\calendar\modules\front\calendar\event->execute()
#6 /home/bn1379/public_html/index.php(16): IPS\Dispatcher->run()
#7 {main}
I believe the problem is applications/cms/sources/Pages/Page.php(2124): IPS\Theme->getTemplate('pages') which must specify the application as 'cms' as follows: IPS\Theme->getTemplate('pages', 'cms').
The reason is that IPS\cms\Pages\Page::errorPage() is called from lots of different applications and if you don't specify the application in the call to getTemplate() then it defaults to whatever application is running at the time -- in the example output it was the calendar application that was running but more often than not it is the core application and in that case the missing template would be reported as (core, front, pages) instead of (calendar, front, pages).
Thanks very much.
John
Recommended Comments