Bug #90479
closedNew fluidbased PageLayoutView throws error, if backendLayout can no longer be resolved
100%
Description
How to reproduce:
- Install introduction package on master (which then automatically imports a pagetree)
- deinstall the introduction package in the extension manager
- Go to the page module and open a page.
The new fluidbased page module will now throw an error:
Call to a member function getDrawingConfiguration() on null
in line:
$backendLayout = $this->backendLayouts->getDataProviderCollection()->getBackendLayout(
$selectedCombinedIdentifier,
$this->id
);
$configuration = $backendLayout->getDrawingConfiguration();
which happens in DataProviderCollection::getBackendLayout();
Because the configured backend layout of the previously installed extension is now missing. If a backendLayout cannot be resolved, there should be either:- thrown an exception, that the backendLayout can't be resolved
- or a fallback to the "default" backend layout.
I think the latter option was the behaviour in the old PageLayoutView.
Updated by Christian Eßl over 4 years ago
- Related to Task #90348: PageLayoutView and BackendLayout should be refactored to separate rendering, processing and fetching of content added
Updated by Gerrit Code Review over 4 years ago
- Status changed from New to Under Review
Patch set 1 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/63370
Updated by Gerrit Code Review over 4 years ago
Patch set 2 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/63370
Updated by Gerrit Code Review over 4 years ago
Patch set 1 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/63388
Updated by Gerrit Code Review over 4 years ago
Patch set 3 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/63370
Updated by Christian Eßl over 4 years ago
- Status changed from Under Review to Resolved
- % Done changed from 0 to 100
Applied in changeset e7a907ec1b3043a592388fc99e37ac97259d43bf.