Project

General

Profile

Actions

Bug #86453

closed

Exception thrown in BE -> Template (PID 0) . TYPO3 8.7.19

Added by Ioulia Kondratovitch over 5 years ago. Updated almost 5 years ago.

Status:
Closed
Priority:
Must have
Assignee:
-
Category:
Backend User Interface
Target version:
-
Start date:
2018-09-29
Due date:
% Done:

100%

Estimated time:
TYPO3 Version:
8
PHP Version:
7.1
Tags:
Complexity:
easy
Is Regression:
Sprint Focus:

Description

Environment:

TYPO3 Version : 8.7.19
Webserver : Apache/2.4.10 (Debian)
PHP Version : 7.1.14
Database (Default) : MySQL 5.6.39
Application Context : Development/Docker
Composer mode : Enabled
Operating System : Linux 4.9.93-linuxkit-aufs
Third-party extensions: no

Problem:

BE -> Template -> PID 0 throws an exception, if the page reffered by sys_template entry doesn't exist in the database

This issue occures since in TYPO3 8.7.19

Steps to reproduce:

  1. BE -> Template: add new page.
  2. BE -> Template: create TS-Template for the new page
  3. DB -> delete the entry for the just created page directly in the database, table "pages" (keep the reffering entry in the table "sys_template"!)
  4. BE -> Template -> PID 0

Result:

Expected result: List of Templates
Actual Result: Exception

Uncaught TYPO3 Exception
Argument 2 passed to TYPO3\CMS\Core\Imaging\IconFactory::getIconForRecord() must be of the type array, null given, called in /app/vendor/typo3/cms/typo3/sysext/tstemplate/Classes/Controller/TypoScriptTemplateModuleController.php on line 602 

TypeError thrown in file
/app/vendor/typo3/cms/typo3/sysext/core/Classes/Imaging/IconFactory.php in line 137.

Comment:

This issue can easily happen at some very old TYPO3-websites with a long history


Files

01_actual_result.png (468 KB) 01_actual_result.png Ioulia Kondratovitch, 2018-09-29 20:25
02_expected_result.png (199 KB) 02_expected_result.png Ioulia Kondratovitch, 2018-09-29 20:25
00_steps_before.png (229 KB) 00_steps_before.png Ioulia Kondratovitch, 2018-09-29 21:18
cattura.png (47.2 KB) cattura.png Riccardo De Contardi, 2018-09-30 23:42
forge-86453-1.png (45.1 KB) forge-86453-1.png Ioulia Kondratovitch, 2018-10-02 10:47
forge-86453-2.png (280 KB) forge-86453-2.png Ioulia Kondratovitch, 2018-10-02 10:47
Actions

Also available in: Atom PDF