View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0007678 | OXID eShop (all versions) | 8. --- Twig engine --- | public | 2024-06-19 12:20 | 2024-06-25 15:55 |
Reporter | Steven | Assigned To | |||
Priority | normal | Severity | tweak | Reproducibility | always |
Status | closed | Resolution | duplicate | ||
Product Version | 7.1.0 | ||||
Summary | 0007678: Template render error always says template not found | ||||
Description | The method OxidEsales\EshopCommunity\Core\ShopControl::processTemplateRenderError always says "Template ... not found" no matter what the actual error is. Fortunately the oxideshop.log shows additional information but the displayed debug message only shows the "Template ... not found" message. This is very confusing and complicates the process of debugging any template errors. | ||||
Steps To Reproduce | Add any error to a template. Example: {% setfoo a = 'a' %} Then check log: OXID Logger.ERROR: Template "page/shop/start" not found ["[object] (Twig\\Error\\SyntaxError(code: 0): Unexpected \"setfoo\" tag (expecting closing tag for the \"apply\" tag defined near line 4). at /var/www/oxideshop/source/Application/views/apex/tpl/layout/base.html.twig:78) (...) | ||||
Tags | No tags attached. | ||||
Theme | Not defined | ||||
Browser | Not defined | ||||
PHP Version | Not defined | ||||
Database Version | Not defined | ||||