Project

General

Profile

Actions

Bug #64916

closed

Avoid serialization of some members of ContentObjectRenderer

Added by Markus Klein almost 10 years ago. Updated about 7 years ago.

Status:
Closed
Priority:
Must have
Assignee:
Category:
Backend API
Target version:
Start date:
2015-02-06
Due date:
% Done:

100%

Estimated time:
TYPO3 Version:
7
PHP Version:
Tags:
Complexity:
hard
Is Regression:
No
Sprint Focus:
Stabilization Sprint

Description

UserInternalContentObject is trying to serialize ContentObjectRenderer.
This leads to severe issues also uses lots of memory.

If you set up a page like this

page = PAGE
page.10 < styles.content.get
page.20 < plugin.tx_felogin_pi1

Install sysext:felogin and add static templates for CSC and felogin!

Add a "text w/image" CE to the page and add at least one image.

you'll get an Exception in FE: Serialization of closure not possible.

(In order to see the Exception you need to set the application context to Development and select the Development-preset in Install Tool.)

The reason is that if the Core is not installed via composer, a closure is registered in the SignalSlotDispatcher.
For some reason, when serializing ContentObjectRenderer, also SignalSlotDispatcher is serialized, which leads to this exception.

The solution is to remove the "hard-wires" between ContentObjectRenderer and TSFE and File(Reference).


Related issues 2 (0 open2 closed)

Related to TYPO3 Core - Bug #64376: Class aliases not respected in certain situationsClosed2015-01-20

Actions
Related to TYPO3 Core - Bug #77645: Closures in SignalSlot\Dispatcher can cause troublesClosed2016-08-26

Actions
Actions #1

Updated by Gerrit Code Review almost 10 years ago

  • Status changed from Accepted 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 http://review.typo3.org/36723

Actions #2

Updated by Gerrit Code Review almost 10 years ago

Patch set 2 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at http://review.typo3.org/36723

Actions #3

Updated by Markus Klein almost 10 years ago

  • Description updated (diff)
Actions #4

Updated by Gerrit Code Review almost 10 years ago

Patch set 3 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at http://review.typo3.org/36723

Actions #5

Updated by Gerrit Code Review almost 10 years ago

Patch set 4 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at http://review.typo3.org/36723

Actions #6

Updated by Markus Klein almost 10 years ago

  • Subject changed from Avoid serialization of TSFE with ContentObjectRenderer to Avoid serialization of some members of ContentObjectRenderer
  • Description updated (diff)
Actions #7

Updated by Markus Klein almost 10 years ago

  • Description updated (diff)
Actions #8

Updated by Helmut Hummel almost 10 years ago

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

Updated by Benjamin Serfhos over 7 years ago

  • Related to Bug #77645: Closures in SignalSlot\Dispatcher can cause troubles added
Actions #10

Updated by Riccardo De Contardi about 7 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF