Bug #88294

TSFE->tmpl->setup is not populated when TSFE->config is loaded from cache.

Added by Sven Carstens 9 months ago. Updated 9 days ago.

Status:
Closed
Priority:
Must have
Assignee:
-
Category:
Frontend
Target version:
-
Start date:
2019-05-07
Due date:
% Done:

0%

TYPO3 Version:
10
PHP Version:
Tags:
Complexity:
Is Regression:
Sprint Focus:

Description

During TSFE building from PrepareTypoScriptFrontendRendering the TSFE is initialized via calls to
TSFE->getFromCache()
TSFE->getConfigArray()

If the TSFE->config is loaded from cache TSFE->getConfigArray() will not initialize TSFE->tmpl via TSFE->tmpl->start()

typo3/sysext/frontend/Classes/Controller/TypoScriptFrontendController.php:1828

if (empty($this->config) || is_array($this->config['INTincScript']) || $this->forceTemplateParsing) {

yields true and there is no code path to call TSFE->tmpl->start()

Subsequently TSFE->tmpl->setup stays empty and TSFE->tmpl->loaded is false.

eg. the extbase configuration is requested via typo3/sysext/extbase/Classes/Configuration/FrontendConfigurationManager.php:57 is empty and the mapping configuration for \TYPO3\CMS\Extbase\Domain\Model\FileReference is not set to 'sys_file_reference' and the default 'tx_extbase_domain_model_filereference' is used.

History

#1 Updated by Gerrit Code Review 9 months 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/+/60712

#2 Updated by Gerrit Code Review 9 months 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/+/60713

#3 Updated by Gerrit Code Review 9 months 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/+/60713

#4 Updated by Gerrit Code Review 9 months 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/+/60713

#5 Updated by Gerrit Code Review 9 months ago

Patch set 4 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/+/60713

#6 Updated by Gerrit Code Review 9 months ago

Patch set 5 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/+/60713

#7 Updated by Gerrit Code Review 9 months ago

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/c/Packages/TYPO3.CMS/+/60713

#8 Updated by Gerrit Code Review 9 months ago

Patch set 7 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/+/60713

#9 Updated by Christian Eßl 4 months ago

  • Category set to Frontend

#10 Updated by Gerrit Code Review about 2 months ago

Patch set 8 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/+/60713

#11 Updated by Benni Mack 9 days ago

  • Status changed from Under Review to Closed

As discussed, needs to be solved with custom loading in middlewares in TYPO3 v9, in TYPO3 v10 the code is more streamlined and easily possible.

Also available in: Atom PDF