Bug #49504
closedt3lib_iconWorks::getSpriteIconForRecord() must be of the type array,
0%
Description
In Typo3 4.5.25, it is not possible to open some CEs in the Web-Tree-View.
This might be closely related to #25372, and #25164, since after implementing #25164, the error appeared. tt_news might also be a related figure, since is the only CE that creates this error.
Error output as followed
PHP Catchable Fatal Error: Argument 2 passed to t3lib_iconWorks::getSpriteIconForRecord() must be of the type array, null given, called in typo3_src-4.5.25/t3lib/class.t3lib_treeview.php on line 633 and defined in typo3_src-4.5.25/t3lib/class.t3lib_iconworks.php line 761
Updated by Jigal van Hemert over 11 years ago
- Status changed from New to Accepted
- Priority changed from Should have to Could have
- Complexity set to medium
This needs to be handled in various cases. It should be handled in the code that calls this function, but that is a bit of a utopia. Enforcing that the parameter is an array will lead to fatal errors. Only possibility is to check inside the function if the parameter is usable.
Updated by Ernesto Baschny about 11 years ago
- Status changed from Accepted to Needs Feedback
- Is Regression set to No
I don't see how the mentioned #25164 is related to this.
The mentioned error could also be some extension wrongly calling the API call getSpriteIconForRecord.
This "array" in the signature is there since 4.4.1 and 4.5.0. Only "4.4.0" ever had a "wrong signature".
If this problem you mention happens in workspaces mode and the Web>Page view, please let's continue that in #25372, because this is the topic there.
Updated by Alexander Opitz almost 11 years ago
- Status changed from Needs Feedback to Closed
No feedback within the last 90 days => closing this ticket.
If you think that this is the wrong decision or experience this issue again, then please write to the mailing list typo3.teams.bugs with issue number and an explanation or open a new ticket and add a relation to this ticket number.