Bug #71676
closedFatalError when using Spaceless ViewHelper
100%
Description
When using the SpacelessViewHelper, I get an error everytime I clear all caches and reload the frontend:
#1: PHP Catchable Fatal Error: Argument 2 passed to TYPO3\CMS\Fluid\ViewHelpers\SpacelessViewHelper::renderStatic() must be an instance of Closure, null given, called in typo3/sysext/fluid/Classes/ViewHelpers/SpacelessViewHelper.php on line 50 and defined in typo3/sysext/fluid/Classes/ViewHelpers/SpacelessViewHelper.php line 58
I think the render-function needs to be changed from
public function render() { return static::renderStatic($this->arguments, $this->renderChildrenClosure, $this->renderingContext); }
to
public function render() { return static::renderStatic($this->arguments, $this->buildRenderChildrenClosure(), $this->renderingContext); }
Updated by Gerrit Code Review about 9 years ago
- Status changed from New 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 https://review.typo3.org/44794
Updated by Gerrit Code Review about 9 years ago
Patch set 2 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/44794
Updated by Gerrit Code Review about 9 years ago
Patch set 3 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/44794
Updated by Gerrit Code Review about 9 years ago
Patch set 4 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/44794
Updated by Gerrit Code Review about 9 years ago
Patch set 5 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/44794
Updated by Gerrit Code Review about 9 years ago
Patch set 6 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/44794
Updated by Wouter Wolters about 9 years ago
- Status changed from Under Review to Resolved
- % Done changed from 0 to 100
Applied in changeset c31237e5ede3aa850bc4cbbe97939358339e8489.