mazzly
Well-known member
- Affected version
- 2.2.7
Since version 2.2.7,
It might also be something further down the chain like
We've gotten 2 similar reports recently for this problem:
Templater->isKnownTemplate()
seems to throw errors during the check if the template doesn't exist, which seems counterproductive to the intended functionality.It might also be something further down the chain like
Templater->getTemplateData()
that doesn't correctly respect the $errorOnUnknown
-param?We've gotten 2 similar reports recently for this problem:
Code:
Server error log
ErrorException: Template error: [E_WARNING] include(/home/caf/public_html/internal_data/code_cache/templates/l1/s109/public/_amp_media_site_embed_wikiloops.php): failed to open stream: No such file or directory src/XF/Template/Templater.php:313
Generated by: Unknown account Sep 14, 2021 at 1:30 PM
Stack trace
#0 src/XF/Template/Templater.php(313): XF\Template\Templater->handleTemplateError(2, '[E_WARNING] inc...', '/home/caf/publi...', 313, Array)
#1 src/XF/Template/Templater.php(313): include()
#2 src/XF/Template/Templater.php(684): XF\Template\Templater->getTemplateDataFromSource('public', '_amp_media_site...')
#3 src/XF/Template/Templater.php(1569): XF\Template\Templater->getTemplateData('public', '_amp_media_site...', false)
#4 src/addons/MaZ/AMP/XF/Template/XF22/Templater.php(39): XF\Template\Templater->isKnownTemplate('_amp_media_site...')
Code:
ErrorException: Template error: [E_WARNING] include(): Failed opening '/home/nginx/domains/omitted/public/internal_data/code_cache/templates/l4/s4/public/_amp_media_site_embed_speedtest.php' for inclusion (include_path='.:/usr/local/lib/php') src/XF/Template/Templater.php:313
#0 src/XF/Template/Templater.php(313): XF\Template\Templater->handleTemplateError(2, '[E_WARNING] inc...', '/home/nginx/dom...', 313)
#1 src/XF/Template/Templater.php(313): include()
#2 src/XF/Template/Templater.php(684): XF\Template\Templater->getTemplateDataFromSource('public', '_amp_media_site...')
#3 src/XF/Template/Templater.php(1569): XF\Template\Templater->getTemplateData('public', '_amp_media_site...', false)
#4 src/addons/MaZ/AMP/XF/Template/XF22/Templater.php(39): XF\Template\Templater->isKnownTemplate('_amp_media_site...')