Ergebnis 1 bis 17 von 17

Thema: Probleme nach Installation 5.3.4

  1. #1
    Contao-Nutzer
    Registriert seit
    25.01.2015.
    Ort
    Oldenburg
    Beiträge
    201

    Standard Probleme nach Installation 5.3.4

    Hallo zusammen,
    ich hatte eigentlich das Problem bei einem Upgrade von 4.13.35 auf 5.3*.

    Um dem Problem auf die Schliche zu kommen habe ich nun aber eine komplett frische 5.3.4 Installation gemacht und nur 2 zusätzliche Plugins installiert/versucht.
    Die Datenbank will anscheinend Felder löschen, was nicht geht. Zumindest kommt immer eine Fehlermeldung.
    Die Erweiterungen sind (mmenu - Mobile Navigation für Contao 3.2.5) und (RockSolid AntiSpam 2.1.0. ) Soweit ich das sehe sollten siese Plugins für die 5er Version funktionieren.
    In dem Bild sieht man nun, das in der Datenbank USER Felder gelöscht oder geändert werden sollten. Da gibt es immer die Fehlermeldung.

    Screenshot 2024-04-10 154404.png
    Was kann ich machen?

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

    Standard

    Falls du dklemmt/contao_dk_mmenu meinst musst du dafür ^4.1 installieren.
    » sponsor me via GitHub or PayPal or Revolut

  3. #3
    Contao-Nutzer
    Registriert seit
    25.01.2015.
    Ort
    Oldenburg
    Beiträge
    201

    Standard

    Entschuldigung ich hatte die alte Version geschrieben....
    Es ist bei mm von DKlemmt die 4.1.2 Version installiert....

    Die "User" Felder bekommt die Datenbank trotzdem nicht geändert

    Screenshot 2024-04-10 155554.png
    Geändert von contaowilli (10.04.2024 um 17:10 Uhr)

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

    Standard

    Führe contao:migrate -v aus und poste die Konsolenausgabe.
    » sponsor me via GitHub or PayPal or Revolut

  5. #5
    Contao-Nutzer
    Registriert seit
    25.01.2015.
    Ort
    Oldenburg
    Beiträge
    201

    Standard

    [INFO] Creating a database dump to "backup__20240410155145.sql.gz" with the default options. Use
    --no-backup to disable this feature.


    Pending database migrations (aa5bdbe820399d43e66f84f35c90efefaa826c5cd829a952a a7934560b69ed12)
    ----------------------------------------------------------------------------------------------

    * ALTER TABLE tl_user ADD doNotCollapse TINYINT(1) DEFAULT 0 NOT NULL, ADD frontendModules BLOB DEFAULT NULL, DROP locked, DROP newsfeeds, DROP newsfeedp, DROP loginAttempts, DROP fullscreen, CHANGE showHelp showHelp TINYINT(1) DEFAULT 1 NOT NULL, CHANGE thumbnails thumbnails TINYINT(1) DEFAULT 1 NOT NULL, CHANGE useRTE useRTE TINYINT(1) DEFAULT 1 NOT NULL, CHANGE useCE useCE TINYINT(1) DEFAULT 1 NOT NULL, CHANGE pwChange pwChange TINYINT(1) DEFAULT 0 NOT NULL, CHANGE `admin` `admin` TINYINT(1) DEFAULT 0 NOT NULL, CHANGE disable disable TINYINT(1) DEFAULT 0 NOT NULL, CHANGE useTwoFactor useTwoFactor TINYINT(1) DEFAULT 0 NOT NULL

    Execute the listed database updates? [yes]:
    [0] yes
    [1] yes, with deletes
    [2] no

    Ich hatte 1 ausgewählt.



    Execute database migrations
    ---------------------------

    * ALTER TABLE tl_user ADD doNotCollapse TINYINT(1) DEFAULT 0 NOT NULL, ADD frontendModules BLOB DEFAULT NULL, DROP locked, DROP newsfeeds, DROP newsfeedp, DROP loginAttempts, DROP fullscreen, CHANGE showHelp showHelp TINYINT(1) DEFAULT 1 NOT NULL, CHANGE thumbnails thumbnails TINYINT(1) DEFAULT 1 NOT NULL, CHANGE useRTE useRTE TINYINT(1) DEFAULT 1 NOT NULL, CHANGE useCE useCE TINYINT(1) DEFAULT 1 NOT NULL, CHANGE pwChange pwChange TINYINT(1) DEFAULT 0 NOT NULL, CHANGE `admin` `admin` TINYINT(1) DEFAULT 0 NOT NULL, CHANGE disable disable TINYINT(1) DEFAULT 0 NOT NULL, CHANGE useTwoFactor useTwoFactor TINYINT(1) DEFAULT 0 NOT NULL......FAILED


    [OK] Executed 0 SQL queries.



    [ERROR] An exception occurred while executing a query: SQLSTATE[HY000]: General error: 1366
    Incorrect integer value: '' for column 'admin' at row 2
    Geändert von contaowilli (10.04.2024 um 17:06 Uhr)

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

    Standard

    Führe contao:migrate --no-interaction -v aus und poste die Konsolenausgabe.
    » sponsor me via GitHub or PayPal or Revolut

  7. #7
    Contao-Nutzer
    Registriert seit
    25.01.2015.
    Ort
    Oldenburg
    Beiträge
    201

    Standard

    /www/xxxxxx$ php vendor/bin/contao-console contao:migrate --no-interaction -v


    [INFO] Creating a database dump to "backup__20240410160727.sql.gz" with the default options. Use
    --no-backup to disable this feature.


    Pending database migrations (aa5bdbe820399d43e66f84f35c90efefaa826c5cd829a952a a7934560b69ed12)
    ----------------------------------------------------------------------------------------------

    * ALTER TABLE tl_user ADD doNotCollapse TINYINT(1) DEFAULT 0 NOT NULL, ADD frontendModules BLOB DEFAULT NULL, DROP locked, DROP newsfeeds, DROP newsfeedp, DROP loginAttempts, DROP fullscreen, CHANGE showHelp showHelp TINYINT(1) DEFAULT 1 NOT NULL, CHANGE thumbnails thumbnails TINYINT(1) DEFAULT 1 NOT NULL, CHANGE useRTE useRTE TINYINT(1) DEFAULT 1 NOT NULL, CHANGE useCE useCE TINYINT(1) DEFAULT 1 NOT NULL, CHANGE pwChange pwChange TINYINT(1) DEFAULT 0 NOT NULL, CHANGE `admin` `admin` TINYINT(1) DEFAULT 0 NOT NULL, CHANGE disable disable TINYINT(1) DEFAULT 0 NOT NULL, CHANGE useTwoFactor useTwoFactor TINYINT(1) DEFAULT 0 NOT NULL

    Execute database migrations
    ---------------------------

    * ALTER TABLE tl_user ADD doNotCollapse TINYINT(1) DEFAULT 0 NOT NULL, ADD frontendModules BLOB DEFAULT NULL, CHANGE showHelp showHelp TINYINT(1) DEFAULT 1 NOT NULL, CHANGE thumbnails thumbnails TINYINT(1) DEFAULT 1 NOT NULL, CHANGE useRTE useRTE TINYINT(1) DEFAULT 1 NOT NULL, CHANGE useCE useCE TINYINT(1) DEFAULT 1 NOT NULL, CHANGE pwChange pwChange TINYINT(1) DEFAULT 0 NOT NULL, CHANGE `admin` `admin` TINYINT(1) DEFAULT 0 NOT NULL, CHANGE disable disable TINYINT(1) DEFAULT 0 NOT NULL, CHANGE useTwoFactor useTwoFactor TINYINT(1) DEFAULT 0 NOT NULL......FAILED


    [OK] Executed 0 SQL queries.



    [ERROR] An exception occurred while executing a query: SQLSTATE[HY000]: General error: 1366
    Incorrect integer value: '' for column 'admin' at row 2

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

    Standard

    Zitat Zitat von contaowilli Beitrag anzeigen
    Execute the listed database updates? [yes]:
    [0] yes
    [1] yes, with deletes
    [2] no

    Ich hatte 1 ausgewählt.
    Da solltest du immer 0 auswählen, es sei denn du bist dir absolut sicher, dass du die entsprechenden Daten in der Datenbank nicht mehr brauchst.
    » sponsor me via GitHub or PayPal or Revolut

  9. #9
    Contao-Nutzer
    Registriert seit
    25.01.2015.
    Ort
    Oldenburg
    Beiträge
    201

    Standard

    Zitat Zitat von Spooky Beitrag anzeigen
    Da solltest du immer 0 auswählen, es sei denn du bist dir absolut sicher, dass du die entsprechenden Daten in der Datenbank nicht mehr brauchst.
    Ja, danke für den Hinweis.

    Ich habe aber noch eine Sicherung. Aber was das eigentliche Problem sein kann?
    Das habe ich nun bei mehreren verschieden Themes gehabt heute.

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

    Standard

    Vor einer Aktualisierung auf eine neue Major Version musst du grundsätzlich immer auf die neueste Minor Version aktualisieren. Also in deinem Fall musst du zuerst auf Contao 4.13.40 aktualisieren.
    » sponsor me via GitHub or PayPal or Revolut

  11. #11
    Contao-Nutzer
    Registriert seit
    25.01.2015.
    Ort
    Oldenburg
    Beiträge
    201

    Standard

    Ja, ich hatte noch gar nicht gesehen das die 4.13.40 raus war. Als ich das gesehen hatte, habe ich das nachgeholt indem ich die alte aktuelle Installation upgedatet habe und die Datenbank danach in die Prallelinstallation geschoben habe. Auch hier ist der "Tabellen User" Fehler vorhanden bzw die Tabelle kann sich nicht verändern bzw. löschen. alle anderen Migrationen klappten.

    Alte Version.png

    1 erfolgreiche Migration.png

    Bis auf die User Tabellen alles erfolgreich geändert zeigt folgendes Bild
    Google (dlh) hatte ich dazwischen auch schon aus der Datenbank gelöscht, weil es veraltet ist. Dieses Bildschirmbild ist etwas älter. Ich bin zum Schluss nur noch mit der 4.13.40 Version mit diesen beiden Plugins rübergezogen. (mmenu /Rocksolid Antispam) und hatte dann versucht upzugraden.
    geklappt 1.png
    Geändert von contaowilli (10.04.2024 um 18:01 Uhr)

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

    Standard

    Aus irgend einem Grund greift die BooleanFieldsMigration für das Feld tl_user.admin bei dir nicht.
    » sponsor me via GitHub or PayPal or Revolut

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

    Standard

    Du könntest manuell folgendes ausführen:

    Code:
    UPDATE tl_user SET admin = '0' WHERE admin = '';
    Danach die Datenbankaktualisierung wieder starten.
    » sponsor me via GitHub or PayPal or Revolut

  14. #14
    Contao-Nutzer
    Registriert seit
    25.01.2015.
    Ort
    Oldenburg
    Beiträge
    201

    Standard

    Kann ich die denn neu anlegen irgendwie?
    Im Backend geht das nicht...
    3 Backend_wenn User angelegt werden.png

    Eine frische 5er installation nehmen und die User-Tabellen daraus importieren?
    Tl_User und tl_user_group
    Allerdings ist es schon komisch, weil es bei einer ganz anderen Installation mit Kopie ähnlich war/ist.

  15. #15
    Contao-Nutzer
    Registriert seit
    25.01.2015.
    Ort
    Oldenburg
    Beiträge
    201

    Lachendes Gesicht

    [INFO] Creating a database dump to "backup__20240410171238.sql.gz" with the default options. Use
    --no-backup to disable this feature.


    Pending database migrations (aa5bdbe820399d43e66f84f35c90efefaa826c5cd829a952a a7934560b69ed12)
    ----------------------------------------------------------------------------------------------

    * ALTER TABLE tl_user ADD doNotCollapse TINYINT(1) DEFAULT 0 NOT NULL, ADD frontendModules BLOB DEFAULT NULL, DROP locked, DROP newsfeeds, DROP newsfeedp, DROP loginAttempts, DROP fullscreen, CHANGE showHelp showHelp TINYINT(1) DEFAULT 1 NOT NULL, CHANGE thumbnails thumbnails TINYINT(1) DEFAULT 1 NOT NULL, CHANGE useRTE useRTE TINYINT(1) DEFAULT 1 NOT NULL, CHANGE useCE useCE TINYINT(1) DEFAULT 1 NOT NULL, CHANGE pwChange pwChange TINYINT(1) DEFAULT 0 NOT NULL, CHANGE `admin` `admin` TINYINT(1) DEFAULT 0 NOT NULL, CHANGE disable disable TINYINT(1) DEFAULT 0 NOT NULL, CHANGE useTwoFactor useTwoFactor TINYINT(1) DEFAULT 0 NOT NULL

    Execute database migrations
    ---------------------------

    * ALTER TABLE tl_user ADD doNotCollapse TINYINT(1) DEFAULT 0 NOT NULL, ADD frontendModules BLOB DEFAULT NULL, CHANGE showHelp showHelp TINYINT(1) DEFAULT 1 NOT NULL, CHANGE thumbnails thumbnails TINYINT(1) DEFAULT 1 NOT NULL, CHANGE useRTE useRTE TINYINT(1) DEFAULT 1 NOT NULL, CHANGE useCE useCE TINYINT(1) DEFAULT 1 NOT NULL, CHANGE pwChange pwChange TINYINT(1) DEFAULT 0 NOT NULL, CHANGE `admin` `admin` TINYINT(1) DEFAULT 0 NOT NULL, CHANGE disable disable TINYINT(1) DEFAULT 0 NOT NULL, CHANGE useTwoFactor useTwoFactor TINYINT(1) DEFAULT 0 NOT NULL


    [OK] Executed 1 SQL queries.


    Pending database migrations (b82b4c59bd6ee922c3c09ce6dec61232047637981467ef992 cea7ff67a2357dc)
    ----------------------------------------------------------------------------------------------

    * ALTER TABLE tl_user DROP locked, DROP newsfeeds, DROP newsfeedp, DROP loginAttempts, DROP fullscreen

    Execute database migrations
    ---------------------------


    [OK] Executed 0 SQL queries.



    [OK] All migrations completed.

    Datenbank....png


    Jawoll die Benutzer sind wieder im Backend...
    Geändert von contaowilli (10.04.2024 um 18:18 Uhr)

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

    Standard

    Zitat Zitat von contaowilli Beitrag anzeigen
    Kann ich die denn neu anlegen irgendwie?
    Im Backend geht das nicht...
    3 Backend_wenn User angelegt werden.png

    Eine frische 5er installation nehmen und die User-Tabellen daraus importieren?
    Tl_User und tl_user_group
    Allerdings ist es schon komisch, weil es bei einer ganz anderen Installation mit Kopie ähnlich war/ist.
    » https://community.contao.org/de/show...l=1#post583305



    Zitat Zitat von contaowilli Beitrag anzeigen
    [INFO] Creating a database dump to "backup__20240410171238.sql.gz" with the default options. Use
    --no-backup to disable this feature.


    Pending database migrations (aa5bdbe820399d43e66f84f35c90efefaa826c5cd829a952a a7934560b69ed12)
    ----------------------------------------------------------------------------------------------

    * ALTER TABLE tl_user ADD doNotCollapse TINYINT(1) DEFAULT 0 NOT NULL, ADD frontendModules BLOB DEFAULT NULL, DROP locked, DROP newsfeeds, DROP newsfeedp, DROP loginAttempts, DROP fullscreen, CHANGE showHelp showHelp TINYINT(1) DEFAULT 1 NOT NULL, CHANGE thumbnails thumbnails TINYINT(1) DEFAULT 1 NOT NULL, CHANGE useRTE useRTE TINYINT(1) DEFAULT 1 NOT NULL, CHANGE useCE useCE TINYINT(1) DEFAULT 1 NOT NULL, CHANGE pwChange pwChange TINYINT(1) DEFAULT 0 NOT NULL, CHANGE `admin` `admin` TINYINT(1) DEFAULT 0 NOT NULL, CHANGE disable disable TINYINT(1) DEFAULT 0 NOT NULL, CHANGE useTwoFactor useTwoFactor TINYINT(1) DEFAULT 0 NOT NULL

    Execute database migrations
    ---------------------------

    * ALTER TABLE tl_user ADD doNotCollapse TINYINT(1) DEFAULT 0 NOT NULL, ADD frontendModules BLOB DEFAULT NULL, CHANGE showHelp showHelp TINYINT(1) DEFAULT 1 NOT NULL, CHANGE thumbnails thumbnails TINYINT(1) DEFAULT 1 NOT NULL, CHANGE useRTE useRTE TINYINT(1) DEFAULT 1 NOT NULL, CHANGE useCE useCE TINYINT(1) DEFAULT 1 NOT NULL, CHANGE pwChange pwChange TINYINT(1) DEFAULT 0 NOT NULL, CHANGE `admin` `admin` TINYINT(1) DEFAULT 0 NOT NULL, CHANGE disable disable TINYINT(1) DEFAULT 0 NOT NULL, CHANGE useTwoFactor useTwoFactor TINYINT(1) DEFAULT 0 NOT NULL


    [OK] Executed 1 SQL queries.


    Pending database migrations (b82b4c59bd6ee922c3c09ce6dec61232047637981467ef992 cea7ff67a2357dc)
    ----------------------------------------------------------------------------------------------

    * ALTER TABLE tl_user DROP locked, DROP newsfeeds, DROP newsfeedp, DROP loginAttempts, DROP fullscreen

    Execute database migrations
    ---------------------------


    [OK] Executed 0 SQL queries.



    [OK] All migrations completed.

    Datenbank....png
    Es scheint nun alles zu passen?
    » sponsor me via GitHub or PayPal or Revolut

  17. #17
    Contao-Nutzer
    Registriert seit
    25.01.2015.
    Ort
    Oldenburg
    Beiträge
    201

    Daumen hoch

    Diese Dateien wollte Contao noch löschen...
    wollte er noch löschen dann war alles paltetti.png


    Ja das war es Spooky !
    vielen vielen Dank...
    Geändert von contaowilli (10.04.2024 um 18:25 Uhr)

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
  •