Project

General

Profile

Actions

Bug #86167

closed

Having a field in TCA but not in database makes the DatabaseIntegrityCheck crash

Added by Stefan P over 5 years ago. Updated over 5 years ago.

Status:
Closed
Priority:
Should have
Category:
-
Target version:
-
Start date:
2018-09-06
Due date:
% Done:

100%

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

Description

Ticket #79992 is somehow related.

sysext/core/Classes/Integrity/DatabaseIntegrityCheck.php line 443 throws a Null Pointer exception if a field is declared in TCA but not actually present in the database. I see two possible solutions here:
  1. only iterate over the intersection between TCA fields and actual database fields
  2. echo a note that there's a field declared that is not present and continue the loop with the next field

I prefer solution two, because it'd provide a nice check if there's some inconsistent/obsolete TCA configuration which should be fixed.


Related issues 2 (0 open2 closed)

Related to TYPO3 Core - Bug #86092: Do not fetch type=none fields from db in list moduleClosed2018-09-03

Actions
Related to TYPO3 Core - Bug #79992: Error in DB Check -> Database RelationsClosedNicole Cordes2017-02-24

Actions
Actions

Also available in: Atom PDF