Hallo an alle,
ich habe meine 4.9.26 auf 4.9.36 updaten wollen, aber ein letzter Schritt läuft nicht durch. Im Contao Manager heißt es:
"Die Datenbank ist nicht aktuell. Bitte prüfe die untenstehende Konsolenausgabe und führe die Änderungen aus."
Code:
Feld tl_content.imagemargin ändern
VARCHAR(128) CHARACTER SET ascii DEFAULT '' NOT NULL COLLATE `ascii_bin`
ALTER TABLE tl_content CHANGE imagemargin imagemargin VARCHAR(128) CHARACTER SET ascii DEFAULT '' NOT NULL COLLATE `ascii_bin`
Danach heißt es jedoch:
"Die Änderungen konnten nicht angewendet werden. Möglicherweise wurde die Datenbank geändert, bitte prüfe nochmals und versuche es erneut."
Und ab da klappt kein Datenbank-Update mehr. Will ich mit dem Installtool die Datenbank updaten, kommt sogar der "Bluescreen" (naja ) "Es ist ein Fehler aufgetreten"
Was ist da zu tun, wie kann man das lösen?
update.jpg
P.S.: Falls es jemand lesen kann: Das sagt der LOG:
Code:
[2022-11-17 17:52:41] console.CRITICAL: Error thrown while running command "list --format=json". Message: "Contao\CoreBundle\Cron\Cron::__construct(): Argument #1 ($repository) must be of type Closure, Contao\CoreBundle\Repository\CronJobRepository given, called in /homepages/6/xxxxxxxxxx/htdocs/meine-ct4/var/cache/prod/ContainerZxx4qaq/getCronService.php on line 14" {"exception":"[object] (TypeError(code: 0): Contao\\CoreBundle\\Cron\\Cron::__construct(): Argument #1 ($repository) must be of type Closure, Contao\\CoreBundle\\Repository\\CronJobRepository given, called in /homepages/6/xxxxxxxxxx/htdocs/meine-ct4/var/cache/prod/ContainerZxx4qaq/getCronService.php on line 14 at /homepages/6/xxxxxxxxxx/htdocs/meine-ct4/vendor/contao/core-bundle/src/Cron/Cron.php:50)","command":"list --format=json","message":"Contao\\CoreBundle\\Cron\\Cron::__construct(): Argument #1 ($repository) must be of type Closure, Contao\\CoreBundle\\Repository\\CronJobRepository given, called in /homepages/6/xxxxxxxxxx/htdocs/meine-ct4/var/cache/prod/ContainerZxx4qaq/getCronService.php on line 14"} []
[2022-11-17 17:59:09] request.INFO: Matched route "contao_install". {"route":"contao_install","route_parameters":{"_route":"contao_install","_scope":"backend","_token_check":true,"_controller":"Contao\\InstallationBundle\\Controller\\InstallationController::installAction"},"request_uri":"https://www.olivergies.de/contao/install","method":"POST"} []
[2022-11-17 17:59:10] request.CRITICAL: Uncaught PHP Exception Doctrine\DBAL\Exception\DriverException: "An exception occurred while executing 'ALTER TABLE tl_content CHANGE imagemargin imagemargin VARCHAR(128) CHARACTER SET ascii DEFAULT '' NOT NULL COLLATE `ascii_bin`': SQLSTATE[HY000]: General error: 1366 Incorrect string value: '\xC3\x9F";s:...' for column 'imagemargin' at row 306" at /homepages/6/xxxxxxxxxx/htdocs/meine-ct4/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/AbstractMySQLDriver.php line 128 {"exception":"[object] (Doctrine\\DBAL\\Exception\\DriverException(code: 0): An exception occurred while executing 'ALTER TABLE tl_content CHANGE imagemargin imagemargin VARCHAR(128) CHARACTER SET ascii DEFAULT '' NOT NULL COLLATE `ascii_bin`':\n\nSQLSTATE[HY000]: General error: 1366 Incorrect string value: '\\xC3\\x9F\";s:...' for column 'imagemargin' at row 306 at /homepages/6/xxxxxxxxxx/htdocs/meine-ct4/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/AbstractMySQLDriver.php:128, Doctrine\\DBAL\\Driver\\PDO\\Exception(code: HY000): SQLSTATE[HY000]: General error: 1366 Incorrect string value: '\\xC3\\x9F\";s:...' for column 'imagemargin' at row 306 at /homepages/6/xxxxxxxxxx/htdocs/meine-ct4/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDO/Exception.php:18, PDOException(code: HY000): SQLSTATE[HY000]: General error: 1366 Incorrect string value: '\\xC3\\x9F\";s:...' for column 'imagemargin' at row 306 at /homepages/6/xxxxxxxxxx/htdocs/meine-ct4/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOConnection.php:141)"} []
[2022-11-17 18:17:46] request.INFO: Matched route "contao_install". {"route":"contao_install","route_parameters":{"_route":"contao_install","_scope":"backend","_token_check":true,"_controller":"Contao\\InstallationBundle\\Controller\\InstallationController::installAction"},"request_uri":"https://www.olivergies.de/contao/install","method":"POST"} []
[2022-11-17 18:17:46] request.CRITICAL: Uncaught PHP Exception Doctrine\DBAL\Exception\DriverException: "An exception occurred while executing 'ALTER TABLE tl_content CHANGE imagemargin imagemargin VARCHAR(128) CHARACTER SET ascii DEFAULT '' NOT NULL COLLATE `ascii_bin`': SQLSTATE[HY000]: General error: 1366 Incorrect string value: '\xC3\x9F";s:...' for column 'imagemargin' at row 306" at /homepages/6/xxxxxxxxxx/htdocs/meine-ct4/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/AbstractMySQLDriver.php line 128 {"exception":"[object] (Doctrine\\DBAL\\Exception\\DriverException(code: 0): An exception occurred while executing 'ALTER TABLE tl_content CHANGE imagemargin imagemargin VARCHAR(128) CHARACTER SET ascii DEFAULT '' NOT NULL COLLATE `ascii_bin`':\n\nSQLSTATE[HY000]: General error: 1366 Incorrect string value: '\\xC3\\x9F\";s:...' for column 'imagemargin' at row 306 at /homepages/6/xxxxxxxxxx/htdocs/meine-ct4/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/AbstractMySQLDriver.php:128, Doctrine\\DBAL\\Driver\\PDO\\Exception(code: HY000): SQLSTATE[HY000]: General error: 1366 Incorrect string value: '\\xC3\\x9F\";s:...' for column 'imagemargin' at row 306 at /homepages/6/xxxxxxxxxx/htdocs/meine-ct4/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDO/Exception.php:18, PDOException(code: HY000): SQLSTATE[HY000]: General error: 1366 Incorrect string value: '\\xC3\\x9F\";s:...' for column 'imagemargin' at row 306 at /homepages/6/xxxxxxxxxx/htdocs/meine-ct4/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOConnection.php:141)"} []
[2022-11-17 18:18:32] request.INFO: Matched route "contao_install". {"route":"contao_install","route_parameters":{"_route":"contao_install","_scope":"backend","_token_check":true,"_controller":"Contao\\InstallationBundle\\Controller\\InstallationController::installAction"},"request_uri":"https://www.olivergies.de/contao/install","method":"POST"} []
[2022-11-17 18:18:32] request.CRITICAL: Uncaught PHP Exception Doctrine\DBAL\Exception\DriverException: "An exception occurred while executing 'ALTER TABLE tl_content CHANGE imagemargin imagemargin VARCHAR(128) CHARACTER SET ascii DEFAULT '' NOT NULL COLLATE `ascii_bin`': SQLSTATE[HY000]: General error: 1366 Incorrect string value: '\xC3\x9F";s:...' for column 'imagemargin' at row 306" at /homepages/6/xxxxxxxxxx/htdocs/meine-ct4/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/AbstractMySQLDriver.php line 128 {"exception":"[object] (Doctrine\\DBAL\\Exception\\DriverException(code: 0): An exception occurred while executing 'ALTER TABLE tl_content CHANGE imagemargin imagemargin VARCHAR(128) CHARACTER SET ascii DEFAULT '' NOT NULL COLLATE `ascii_bin`':\n\nSQLSTATE[HY000]: General error: 1366 Incorrect string value: '\\xC3\\x9F\";s:...' for column 'imagemargin' at row 306 at /homepages/6/xxxxxxxxxx/htdocs/meine-ct4/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/AbstractMySQLDriver.php:128, Doctrine\\DBAL\\Driver\\PDO\\Exception(code: HY000): SQLSTATE[HY000]: General error: 1366 Incorrect string value: '\\xC3\\x9F\";s:...' for column 'imagemargin' at row 306 at /homepages/6/xxxxxxxxxx/htdocs/meine-ct4/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDO/Exception.php:18, PDOException(code: HY000): SQLSTATE[HY000]: General error: 1366 Incorrect string value: '\\xC3\\x9F\";s:...' for column 'imagemargin' at row 306 at /homepages/6/xxxxxxxxxx/htdocs/meine-ct4/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOConnection.php:141)"} []
"Incorrect string value: '\\xC3\\x9F";s:...'" klingt mir eher nach einem Tippfehler in irgendeiner PHP-Datei. Wie gesagt: simples Contao-Update im Contao-Manager ohne mein Zutun.