Project

General

Profile

Actions

Bug #49504

closed

t3lib_iconWorks::getSpriteIconForRecord() must be of the type array,

Added by Kevin John Busche over 11 years ago. Updated almost 11 years ago.

Status:
Closed
Priority:
Could have
Assignee:
-
Category:
Backend User Interface
Target version:
-
Start date:
2013-06-28
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
4.5
PHP Version:
5.3
Tags:
Complexity:
medium
Is Regression:
No
Sprint Focus:

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

Actions #1

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.

Actions #2

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.

Actions #3

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.

Actions

Also available in: Atom PDF