Bug #25372
closedPHP Catchable Fatal Error: t3lib_iconWorks::getSpriteIconForRecord() must be an array (workspaces situation)
0%
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