Feature #58622

Clearer Exception: Array to string conversion

Added by Kay Strobach over 5 years ago. Updated over 3 years ago.

Status:
New
Priority:
Must have
Assignee:
-
Category:
Core
Target version:
-
Start date:
2014-05-08
Due date:
% Done:

0%

PHP Version:
5.5
Has patch:
No
Complexity:

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)

History

#1 Updated by Jan Greth over 3 years ago

+1

Also available in: Atom PDF