Issue Bug Closed

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

S P 09/06/18, 13:03 updated 10/02/18, 10:28

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.

Reviews 2