Error in DB Check -> Database Relations
Given a table with a field name that might be reflected as a keyword (like group), the DB Check > Database Relations tool throws an exception.
Uncaught TYPO3 Exception Call to a member function getType() on null Error thrown in file D:\Version Control\Git\TYPO3\TYPO3.CMS\master\typo3\sysext\core\Classes\Integrity\DatabaseIntegrityCheck.php in line 442.
[BUGFIX] DB Check causes PHP warnings and errors
In DatabaseIntegrityCheck the method selectNonEmptyRecordsWithFkeys
also needs to take the BLOB into account or else it will fail with
a PHP warning. Furthermore the returned tableColumns list may contain
quoted fields names if the field name can be interpreted as a keyword
for the used connection platform. This patch ensures the correct
column information is received before further processing is started.
Additionally the "Record Statics" module is fixed by checking for an
empty TCA table field which invokes an exception.
Reviewed-by: Christer V <email@example.com>
Tested-by: Christer V <firstname.lastname@example.org>
Tested-by: TYPO3com <email@example.com>
Reviewed-by: Claus Due <firstname.lastname@example.org>
Reviewed-by: Nicole Cordes <email@example.com>
Tested-by: Nicole Cordes <firstname.lastname@example.org>
Reviewed-by: Markus Klein <email@example.com>
Reviewed-by: Anders Kostending <firstname.lastname@example.org>
Reviewed-by: Christian Kuhn <email@example.com>
Tested-by: Christian Kuhn <firstname.lastname@example.org>