Project

General

Profile

Actions

Bug #91139

closed

Exception when ViewHelper f:format.html is used in backend context in latest master Branch

Added by Alex Kellner over 4 years ago. Updated over 4 years ago.

Status:
Closed
Priority:
Should have
Assignee:
Category:
-
Target version:
-
Start date:
2020-04-20
Due date:
% Done:

100%

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

Description

Maybe because of the commit edcef47ff87e514a53f01e4be26a22a41278de84 we're running now into:

Call to undefined method stdClass::getSite()

We're using PreviewRenderer for content elements previews. In the renderer class a fluid standalone class is used with a HTML-Template.
If the template simply contains:

<f:format.html>&gt;</f:format.html>

It will lead to this error.


Related issues 1 (1 open0 closed)

Related to TYPO3 Core - Task #91140: Improve fake Frontends in CoreAccepted2020-04-20

Actions
Actions #1

Updated by Markus Klein over 4 years ago

  • Assignee set to Markus Klein

This happens due to improper "fake frontends" being built in Backend.
I will mitigate this short-term by validating the TSFE object for the correct type.

Actions #2

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/+/64255

Actions #3

Updated by Markus Klein over 4 years ago

  • Related to Task #91140: Improve fake Frontends in Core added
Actions #4

Updated by Markus Klein over 4 years ago

  • Status changed from Under Review to Resolved
  • % Done changed from 0 to 100
Actions #5

Updated by Benni Mack over 4 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF