Ergebnis 1 bis 3 von 3

Thema: Datenbank lässt sich nicht aktualisieren

  1. #1
    Contao-Fan
    Registriert seit
    03.09.2009.
    Beiträge
    313

    Standard Datenbank lässt sich nicht aktualisieren

    Hallo
    Ich habe ein Upgrade von Contao 5.1 auf 5.2 gemacht. Die Website läuft. Aber bei der Datenbank-Aktualisierung haperts.
    Im CM habe ich den Hinweis: Datenbank-Migrationen und -Backups 2 ausstehende Schema-Änderungen
    Wenn ich dann «Datenbank Prüfen» anwende dauert dieser Vorgang sehr lange bis ich einen Reload machen muss und die Systemprüfung
    abläuft. die 2 ausstehenden Schema-Änderungen bleiben.

    Hier mein Prod-log:

    Code:
    [2024-01-16T10:20:34.907987+01:00] console.CRITICAL: Error thrown while running command "list --format=json". Message: "Too few arguments to function Contao\CoreBundle\Routing\Enhancer\InputEnhancer::__construct(), 1 passed in /home/xy/www/xy/var/cache/prod/ContainerL7IxjLY/Contao_ManagerBundle_HttpKernel_ContaoKernelProdContainer.php on line 1358 and exactly 2 expected" {"exception":"[object] (ArgumentCountError(code: 0): Too few arguments to function Contao\\CoreBundle\\Routing\\Enhancer\\InputEnhancer::__construct(), 1 passed in /home/xy/www/xy/var/cache/prod/ContainerL7IxjLY/Contao_ManagerBundle_HttpKernel_ContaoKernelProdContainer.php on line 1358 and exactly 2 expected at /home/xy/www/xy/vendor/contao/core-bundle/src/Routing/Enhancer/InputEnhancer.php:29)","command":"list --format=json","message":"Too few arguments to function Contao\\CoreBundle\\Routing\\Enhancer\\InputEnhancer::__construct(), 1 passed in /home/xy/www/xy/var/cache/prod/ContainerL7IxjLY/Contao_ManagerBundle_HttpKernel_ContaoKernelProdContainer.php on line 1358 and exactly 2 expected"} []
    [2024-01-16T10:20:34.927382+01:00] php.INFO: User Deprecated: Class "Nyholm\Psr7\Factory\HttplugFactory" is deprecated since version 1.8, use "Nyholm\Psr7\Factory\Psr17Factory" instead. {"exception":"[object] (ErrorException(code: 0): User Deprecated: Class \"Nyholm\\Psr7\\Factory\\HttplugFactory\" is deprecated since version 1.8, use \"Nyholm\\Psr7\\Factory\\Psr17Factory\" instead. at /home/xy/www/xy/vendor/nyholm/psr7/src/Factory/HttplugFactory.php:18)"} []
    [2024-01-16T10:20:34.932025+01:00] php.CRITICAL: Uncaught Error: Too few arguments to function Contao\CoreBundle\Routing\Enhancer\InputEnhancer::__construct(), 1 passed in /home/xy/www/xy/var/cache/prod/ContainerL7IxjLY/Contao_ManagerBundle_HttpKernel_ContaoKernelProdContainer.php on line 1358 and exactly 2 expected {"exception":"[object] (ArgumentCountError(code: 0): Too few arguments to function Contao\\CoreBundle\\Routing\\Enhancer\\InputEnhancer::__construct(), 1 passed in /home/xy/www/xy/var/cache/prod/ContainerL7IxjLY/Contao_ManagerBundle_HttpKernel_ContaoKernelProdContainer.php on line 1358 and exactly 2 expected at /home/xy/www/xy/vendor/contao/core-bundle/src/Routing/Enhancer/InputEnhancer.php:29)"} []

  2. #2
    Community-Moderator
    Wandelndes Contao-Lexikon
    Avatar von Spooky
    Registriert seit
    12.04.2012.
    Ort
    Scotland
    Beiträge
    34.116
    Partner-ID
    10107

    Standard

    Führe auf der Konsole
    Code:
    vendor/bin/contao-console contao:migrate --no-interaction -v
    aus und poste die Konsolenausgabe.
    » sponsor me via GitHub or PayPal or Revolut

  3. #3
    Contao-Fan
    Registriert seit
    03.09.2009.
    Beiträge
    313

    Standard

    Ich habe das ganze Prozedere mit FireFox angestossen.
    Die Datenbankaktualisierung hat jetzt funktioniert :-)

    Hier noch die Konsole-Ausgabe:

    Code:
    ALTER TABLE tl_calendar_events CHANGE startTime startTime BIGINT DEFAULT NULL, CHANGE endTime endTime BIGINT DEFAULT NULL, CHANGE startDate startDate BIGINT DEFAULT NULL, CHANGE endDate endDate BIGINT DEFAULT NULL
    ALTER TABLE tl_image_size ADD imageQuality INT DEFAULT NULL, ADD preserveMetadata VARCHAR(12) DEFAULT 'default' NOT NULL, ADD preserveMetadataFields BLOB DEFAULT NULL

Aktive Benutzer

Aktive Benutzer

Aktive Benutzer in diesem Thema: 1 (Registrierte Benutzer: 0, Gäste: 1)

Lesezeichen

Lesezeichen

Berechtigungen

  • Neue Themen erstellen: Nein
  • Themen beantworten: Nein
  • Anhänge hochladen: Nein
  • Beiträge bearbeiten: Nein
  •