Feature #58622

Clearer Exception: Array to string conversion

Added by Kay Strobach about 1 year ago.

Status:New Start date:2014-05-08
Priority:Must have Due date:
Assigned To:- % Done:

0%

Category:Core
Target version:-
PHP Version:5.5 Complexity:
Has patch:No

Description

If an array to string conversion happens in a FLUID Template, the Exception should state, where it happend in the FLUID context ...

Uncaught Exception in Flow
#1: Notice: Array to string conversion in /project/Packages/Framework/TYPO3.Fluid/Classes/TYPO3/Fluid/Core/Parser/SyntaxTree/AbstractNode.php line 49
More information

TYPO3\Flow\Error\Exception thrown in file
Packages/Framework/TYPO3.Flow/Classes/TYPO3/Flow/Error/ErrorHandler.php in line 77.
Reference code: 20140508101915c5df73

Go to the FORGE issue tracker and report the issue - if you think it is a bug!

71 TYPO3\Flow\Error\ErrorHandler::handleError(8, "Array to string conversion", "/project/Packages/Framework/TYPO3.Fluid/Classes/TYPO3/Fluid/Core/Parser/SyntaxTree/AbstractNode.php", 49, array|3|)

Packages/Framework/TYPO3.Fluid/Classes/TYPO3/Fluid/Core/Parser/SyntaxTree/AbstractNode.php:
00047:      $output = $output->__toString();
00048:     } else {
00049:      $output = (string) $output;
00050:     }
00051:     $subNodeOutput = $subNode->evaluate($renderingContext);

70 TYPO3\Fluid\Core\Parser\SyntaxTree\AbstractNode::evaluateChildNodes(TYPO3\Fluid\Core\Rendering\RenderingContext)

Also available in: Atom PDF