Project

General

Profile

Actions

Bug #57294

closed

pageRenderer was resetted after render call

Added by Stefan Froemken over 10 years ago. Updated over 4 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
Backend API
Target version:
-
Start date:
2014-03-25
Due date:
% Done:

100%

Estimated time:
TYPO3 Version:
6.2
PHP Version:
5.4
Tags:
Complexity:
easy
Is Regression:
No
Sprint Focus:

Description

Hello Core-Team,

I found following lines in DocumentTemplate.php:

$str = $this->pageRenderer->render(PageRenderer::PART_HEADER);
$this->JScodeLibArray = array();
$this->JScode = ($this->extJScode = '');
$this->JScodeArray = array();
$this->endOfPageJsBlock = $this->pageRenderer->render(PageRenderer::PART_FOOTER);

As you can see pageRenderer->render was called two times with different arguments.
But in pageRenderer->render you call $this->reset();
So...second call for Footer has no data to render.

$this->reset() was called from __constructor(). So in my opinion we should remove this line.

Stefan


Related issues 3 (0 open3 closed)

Related to TYPO3 Core - Bug #57920: PageRenderer do not unset() class membersClosed2014-04-15

Actions
Related to TYPO3 Core - Bug #58010: No backend login possible after Update 6.2.0 > 6.2.1ClosedMarkus Klein2014-04-17

Actions
Related to TYPO3 Core - Bug #60213: pageRenderer->addJsFooterFile doesn't work as expectedClosed2014-07-09

Actions
Actions

Also available in: Atom PDF