Update von Contao 5.3.46 auf 5.7 schlägt fehl
Hallo,
ich wollte eben eine Contao 5.3.46 Seite mittels Contao-Manager auf die aktuelle Contao 5.7 Version anheben.
Leider schlug diese im Zuge des Install-Prozesses fehl.
Als ersten Schritt zur Fehlerbehebung habe ich ein Datenbank-Backup, dass ich vor dem Upgrade gezogen habe, eingespielt und den Cache gelöscht.
Hier kommt folgende Consolen-Meldung (Contao manager):
Code:
$ /usr/local/php8.4/bin/php -q -dmax_execution_time=0 -dmemory_limit=-1 -ddisplay_errors=0 -ddisplay_startup_errors=0 -derror_reporting=0 -dallow_url_fopen=1 -ddisable_functions= -ddate.timezone=Europe/Berlin /home/artjrqco/c53.artett.at/vendor/contao/manager-bundle/bin/contao-console cache:clear --env=prod --no-warmup
// Clearing the cache for the prod environment with debug false
[OK] Cache for the "prod" environment (debug=false) was successfully cleared.
# Process terminated with exit code 0
# Result: OK
$ /usr/local/php8.4/bin/php -q -dmax_execution_time=0 -dmemory_limit=-1 -ddisplay_errors=0 -ddisplay_startup_errors=0 -derror_reporting=0 -dallow_url_fopen=1 -ddisable_functions= -ddate.timezone=Europe/Berlin /home/artjrqco/c53.artett.at/vendor/contao/manager-bundle/bin/contao-console cache:warmup --env=prod
// Warming up the cache for the prod environment with debug false
10:56:12 CRITICAL [console] Error thrown while running command "cache:warmup --env=prod". Message: "Doctrine\DBAL\Schema\Column::setLength(): Argument #1 ($length) must be of type ?int, string given, called in /home/artjrqco/c53.artett.at/vendor/doctrine/dbal/src/Schema/Column.php on line 103" ["exception" => TypeError { …},"command" => "cache:warmup --env=prod","message" => "Doctrine\DBAL\Schema\Column::setLength(): Argument #1 ($length) must be of type ?int, string given, called in /home/artjrqco/c53.artett.at/vendor/doctrine/dbal/src/Schema/Column.php on line 103"]
In Column.php line 116:
Doctrine\DBAL\Schema\Column::setLength(): Argument #1 ($length) must be of
type ?int, string given, called in /home/artjrqco/c53.artett.at/vendor/doct
rine/dbal/src/Schema/Column.php on line 103
cache:warmup [--no-optional-warmers]
# Process terminated with exit code 255
# Result: Unknown error
In der Log-Datei steht als letzter Eintrag:
Code:
[2026-06-09T11:05:41.156489+02:00] request.INFO: Matched route "tl_page.112.root". {"route":"tl_page.112.root","route_parameters":{"_controller":"Contao\\CoreBundle\\Controller\\Page\\RegularPageController","_scope":"frontend","_locale":"de","_format":"html","_canonical_route":"tl_page.112","parameters":"","pageModel":{"Contao\\PageModel":[]},"_route":"tl_page.112.root","_route_object":{"Symfony\\Component\\Routing\\Route":[]}},"request_uri":"https://update.artett.at/","method":"GET"} {"request_uri":"https://update.artett.at/","request_method":"GET"}
[2026-06-09T11:05:41.238911+02:00] request.CRITICAL: Uncaught PHP Exception LogicException: "Unknown layout type """ at AbstractPageController.php line 53 {"exception":"[object] (LogicException(code: 0): Unknown layout type \"\" at /home/artjrqco/c53.artett.at/vendor/contao/core-bundle/src/Controller/Page/AbstractPageController.php:53)"} {"request_uri":"https://update.artett.at/","request_method":"GET"}
[2026-06-09T11:05:41.367155+02:00] messenger.INFO: Stopping worker. {"transport_names":["contao_prio_high"]} {"request_uri":"https://update.artett.at/","request_method":"GET"}
Im Backend steht die Fehlermeldung:
An exception has been thrown during the rendering of a template ("An exception occurred while executing a query: SQLSTATE[42S02]: Base table or view not found: 1146 Table 'usrdb_artjrqco.tl_job' doesn't exist") in "@Contao/backend/chrome/header_menu.html.twig" at line 8.
IM Contao-Manager steht trotz Einspielung der alten Datenbank weiterhin der Hinweis auf 4 ausstehende Datenbank-Migrationen.
Die Composer.json hat aber diesen Inhalt:
Code:
{
"type": "project",
"require": {
"contao/calendar-bundle": "5.3.*",
"contao/comments-bundle": "5.3.*",
"contao/conflicts": "*@dev",
"contao/faq-bundle": "5.3.*",
"contao/listing-bundle": "5.3.*",
"contao/manager-bundle": "5.3.*",
"contao/news-bundle": "5.3.*",
"contao/newsletter-bundle": "5.3.*",
"markocupic/contao-altcha-antispam": "^0.7.0",
"premium-contao-themes/theme_updater": "^5.0"
},
"extra": {
"public-dir": "public",
"contao-component-dir": "assets"
},
"scripts": {
"post-install-cmd": [
"@php vendor/bin/contao-setup"
],
"post-update-cmd": [
"@php vendor/bin/contao-setup"
]
},
"config": {
"allow-plugins": true
}
}
Also kein Hinweis auf Contao 5.7.
Installiertes Theme ist PCT in der aktuellen Version (sowohl für 5.3.46 a.a. 5.7. freigegeben)
Bitte um Hlfestellung, wie ich zumindest wieder auf den alten Zustand komme.