Bug #82957
closedRender Bug in typo3temp/var/Cache/Code/fluid_template
0%
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: }
Updated by SICOR KDL GmbH about 7 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
Updated by Claus Due over 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.