Issue Bug Closed

#105604TypeError: Cannot assign null to Column::$_comment of type string

Franz Holzinger 11/15/24, 09:42 updated 11/15/24, 15:56

Description

After upgrade from TYPO3 12 to 13 the backend hangs in this error message:

Whoops, looks like something went wrong.
(1/1) TypeError
Cannot assign null to property Doctrine\DBAL\Schema\Column::$_comment of type string

in /path/typo3_src-13.4.1/typo3/sysext/core/Classes/Cache/Frontend/VariableFrontend.php line 85
$rawResult = $this->backend->get($entryIdentifier);
if ($rawResult = false) {
return false;
}
return $this->backend instanceof TransientBackendInterface ? $rawResult : unserialize($rawResult);
}
}
at unserialize()
in /path/typo3_src-13.4.1/typo3/sysext/core/Classes/Cache/Frontend/VariableFrontend.php line 85
$rawResult = $this->backend->get($entryIdentifier);
if ($rawResult = false) {
return false;
}
return $this->backend instanceof TransientBackendInterface ? $rawResult : unserialize($rawResult);
}
}
at TYPO3\CMS\Core\Cache\Frontend\VariableFrontend->get()
in /path/typo3_src-13.4.1/typo3/sysext/core/Classes/Database/Schema/SchemaInformation.php line 95
*/
public function introspectTable(string $tableName): Table {
$identifier = $this->connectionIdentifier . ‘table’ . $tableName;
$table = $this->cache->get($identifier);
if ($table instanceof Table) {
return $table;
}
$table = $this->connection->createSchemaManager()->introspectTable($tableName);
at TYPO3\CMS\Core\Database\Schema\SchemaInformation->introspectTable()
in /path/typo3_src-13.4.1/typo3/sysext/core/Classes/Database/Connection.php line 407
protected function ensureDatabaseValueTypes(string $tableName, array &$data, array &$types): void {
// If types are incoming already (meaning they’re hand over to insert() for instance), don’t auto-set them.
$setAllTypes = $types = [];
$tableDetails = $this->getSchemaInformation()->introspectTable($tableName);
$databasePlatform = $this->getDatabasePlatform();
array_walk($data, function (mixed &$value, string $key) use ($tableDetails, $setAllTypes, &$types, $databasePlatform): void {
$typeName = ($types[$key] ?? '');
if (!$setAllTypes && is_string($typeName) && $typeName ! ‘’ && Type::hasType($typeName)) {

Reviews 0

No change resolves or names this issue in its commit message, and no comment links one.