Project

General

Profile

Actions

Bug #82957

closed

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

Added by SICOR KDL GmbH over 6 years ago. Updated over 5 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 #1

Updated by SICOR KDL GmbH over 6 years ago

  • Due date set to 2017-10-12
  • Start date changed from 2017-11-09 to 2017-10-12
  • Follows Bug #82735: Problem with Feature: #73409 - Auto-render Assets sections added
Actions #2

Updated by Claus Due about 6 years ago

  • Status changed from New to Resolved

Fixed a while ago with https://github.com/TYPO3/Fluid/commit/9772be318df13be8cc2e5b6e46b9a510220739b9, is included in most recent TYPO3 releases v8 and up.

Actions #3

Updated by SICOR KDL GmbH about 6 years ago

Tested with 8.7.10 - works now!

Actions #4

Updated by Benni Mack over 5 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF