Project

General

Profile

Actions

Bug #82957

closed

Render Bug in typo3temp/var/Cache/Code/fluid_template

Added by SICOR KDL GmbH about 7 years ago. Updated about 6 years ago.

Status:
Closed
Priority:
Must have
Assignee:
-
Category:
Fluid
Target version:
-
Start date:
2017-10-12
Due date:
2017-10-12
% Done:

0%

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

Description

Hello there,

for the Template: EXT:news\Resources\Private\Templates\News\List.xml

which has this in the header:

<rss version="2.0"
xmlns:content="http://purl.org/rss/1.0/modules/content/"
xmlns:atom="http://www.w3.org/2005/Atom"
xmlns:f="http://typo3.org/ns/TYPO3/CMS/Fluid/ViewHelpers"
xmlns:n="http://typo3.org/ns/GeorgRinger/News/ViewHelpers">

it generates this:

public function addCompiledNamespaces(\TYPO3Fluid\Fluid\Core\Rendering\RenderingContextInterface $renderingContext) {
$renderingContext->getViewHelperResolver()->addNamespaces(array (
'core' =>
array (
0 => 'TYPO3\\CMS\\Core\\ViewHelpers',
),
'f' =>
array (
0 => 'TYPO3Fluid\\Fluid\\ViewHelpers',
1 => 'TYPO3\\CMS\\Fluid\\ViewHelpers',
),
'formvh' =>
array (
0 => 'TYPO3\\CMS\\Form\\ViewHelpers',
),
'content' => NULL,
'atom' => NULL,
'n' =>
array (
0 => 'GeorgRinger\\News\\ViewHelpers',
),
));
}

Which later crashes here, when this is called with the "content" or "atom" null pointers:

/var/www/typo3_system/typo3_sources/typo3_src-8.7.8/vendor/typo3fluid/fluid/src/Core/ViewHelper/ViewHelperResolver.php:
00090: } elseif (is_array($phpNamespace)) {
00091: $this->namespaces[$identifier] = array_unique(array_merge($this->namespaces[$identifier], $phpNamespace));
00092: } elseif (!in_array($phpNamespace, $this->namespaces[$identifier])) {
00093: $this->namespaces[$identifier][] = $phpNamespace;
00094: }


Related issues 1 (0 open1 closed)

Follows TYPO3 Core - Bug #82735: Problem with Feature: #73409 - Auto-render Assets sectionsClosed2017-10-11

Actions
Actions

Also available in: Atom PDF