Project

General

Profile

Actions

Bug #25372

closed

PHP Catchable Fatal Error: t3lib_iconWorks::getSpriteIconForRecord() must be an array (workspaces situation)

Added by Ulrich over 13 years ago. Updated over 10 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
Workspaces
Target version:
-
Start date:
2011-03-22
Due date:
% Done:

0%

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

Description

In Typo3 4.5.2, it is not possible to open some pages in the Web-Page-View.

This is the error message:
PHP Catchable Fatal Error: Argument 2 passed to t3lib_iconWorks::getSpriteIconForRecord() must be an array, null given, called in typo3/sysext/cms/layout/class.tx_cms_layout.php on line 686 and defined in t3lib/class.t3lib_iconworks.php line 762

On the contrary, one can open the same pages in the Web-List-View. Also, other pages in the same page tree can easily be opened.

The above mentioned problem could be fixed by adding the following to line 686 of typo3/sysext/cms/layout/class.tx_cms_layout.php:
if (!is_array($lpRecord)) $lpRecord = array($lpRecord);

It happens in an environment with to defined languages and three workspaces. It is not possible to open the pages in the Live-Workspace and the "Entwurfsarbeitsumgebung"-Workspace. But in the Draft-Workspace, one can open the page.
(issue imported from #M18010)


Files

25372.diff (1.42 KB) 25372.diff Fedir RYKHTIK, 2011-09-07 15:28

Related issues 3 (0 open3 closed)

Related to TYPO3 Core - Bug #39197: Pagetree Filtering can't handle records moved in draft - errors and blanksClosed2012-07-23

Actions
Related to TYPO3 Core - Bug #21084: Pages in Workspaces are not editable anymore, course of a "PHP Catchable Fatal Error"ClosedSusanne Moog2010-08-09

Actions
Is duplicate of TYPO3 Core - Bug #25409: t3lib_iconWorks::getSpriteIconForRecord() isn't workspace awareClosed2011-03-28

Actions
Actions

Also available in: Atom PDF