Bug #82745
closedfluid resolving an unexpected layout file
100%
Description
We run into an Exception during rendering an Extension:
Uncaught TYPO3 Exception
Section "main" does not exist.
Actually something is going wrong during resolving the proper layout file.
Page Template
page.10 = FLUIDTEMPLATE
does use a layout "Default", with a section "content" (but no section "main")
layoutRootPaths is set properly in TS.
This is working just fine on almost all pages.
Plugin Template
plugin.tx_xxx does use a layout "Default" as well, however here we use a section "main" (but no section "content").
layoutRootPaths,and alike are set properly in TS.
However during rendering this extension for some weird(and yet unknown) reason the layout file from the page is used (which obviously is missing the section "main".
During debugging I found AbstractTemplateView of typo3fluid ll 190 through 200 responsible. $paths->getLayoutSource($layoutName) does return the proper source at first but however at some later point a wrong file will be served from cache.
The most weird thing, we use Layout Default for other extensions as well where we don't have this problem.
Templates and Layouts are all stored in a site-package (EXT:xxx-site)
Updated by Peter Niederlag over 7 years ago
- Related to Bug #76675: Layout Filename must be unique or frontend crashes added
Updated by Gerrit Code Review over 7 years ago
- Status changed from New to Under Review
Patch set 6 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/54416
Updated by Benjamin Franzke over 7 years ago
- Status changed from Under Review to Resolved
- % Done changed from 0 to 100
Applied in changeset 5c048a4c8017e4d50ab5f2343970a0fd33e4aaed.
Updated by Gerrit Code Review about 7 years ago
- Status changed from Resolved to Under Review
Patch set 1 for branch TYPO3_8-7 of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/55252
Updated by Gerrit Code Review about 7 years ago
Patch set 2 for branch TYPO3_8-7 of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/55252
Updated by Benjamin Franzke about 7 years ago
- Status changed from Under Review to Resolved
Applied in changeset dbf5f643b5fe9574eb204708b9dc77b404a26f68.