Liebe Community
Der Gallery Creator ist unter Contao 4 einfacher als unter Contao 3 - das finde ich super. Man braucht keine Frontend-Module mehr zu erstellen. Einfach auf der entsprechenden Seite das richtige Inhaltselement auswählen und konfigurieren. Danke für diese Verschlankung.
Ganz alles läuft in meiner Installation aber nicht rund.
1) Ich habe eine Contao 3-Seite auf Contao 4.8.5 migriert. Die Installation des Gallery Creator hat folgenden Schönheitsfehler: eine der Datenbankänderungen führt zu einem Fehler:
kann nicht ausgeführt werden und schlägt sich im Log folgendermassen nieder:Code:ALTER TABLE tl_gallery_creator_albums CHANGE thumb thumb INT UNSIGNED DEFAULT 0 NOT NULL
Grundsätzlich funktioniert der Gallery Creator trotzdem. An den folgenden Stellen holpert es aber:Code:[2019-11-19 14:29:11] request.CRITICAL: Uncaught PHP Exception Doctrine\DBAL\Exception\DriverException: "An exception occurred while executing 'ALTER TABLE tl_gallery_creator_albums CHANGE thumb thumb INT UNSIGNED DEFAULT 0 NOT NULL': SQLSTATE[22007]: Invalid datetime format: 1292 Truncated incorrect INTEGER value: ''" at /var/www/eis96pw/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/AbstractMySQLDriver.php line 106 {"exception":"[object] (Doctrine\\DBAL\\Exception\\DriverException(code: 0): An exception occurred while executing 'ALTER TABLE tl_gallery_creator_albums CHANGE thumb thumb INT UNSIGNED DEFAULT 0 NOT NULL':\n\nSQLSTATE[22007]: Invalid datetime format: 1292 Truncated incorrect INTEGER value: '' at /var/www/eis96pw/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/AbstractMySQLDriver.php:106, Doctrine\\DBAL\\Driver\\PDOException(code: 22007): SQLSTATE[22007]: Invalid datetime format: 1292 Truncated incorrect INTEGER value: '' at /var/www/eis96pw/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOConnection.php:80, PDOException(code: 22007): SQLSTATE[22007]: Invalid datetime format: 1292 Truncated incorrect INTEGER value: '' at /var/www/eis96pw/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOConnection.php:75)"} []
2) Wenn ich bei einem Album in der Albumliste im Backend auf das Icon "Bilder mittels Dateiupload hinzufügen" klicke, erhalte ich die Fehlermeldung:
Im Log noch etwas ausführlicher:Code:Could not find template "be_gc_jumploader"
3) Und schliesslich: Ich kann keine Alben mehr löschen. Wenn ich das Löschen-Icon anklicke, kommt zunächst die Warnung, dass die Bilder mitgelöscht werden, nach Bestätigung der Warnung:Code:[2019-11-19 14:35:43] request.INFO: Matched route "contao_backend". {"route":"contao_backend","route_parameters":{"_route":"contao_backend","_scope":"backend","_token_check":true,"_controller":"Contao\\CoreBundle\\Controller\\BackendController::mainAction"},"request_uri":"https://test.zmaag.ch/contao?act=edit&do=gallery_creator&id=50&mode=fileupload&ref=ilm_LWON&rt=Pwf1qBpvBPVUUzD-3W__xz4mpwkCEHgjLBCG0Qnp8AA&table=tl_gallery_creator_albums","method":"GET"} [] [2019-11-19 14:35:43] request.CRITICAL: Uncaught PHP Exception Exception: "Could not find template "be_gc_jumploader"" at /var/www/eis96pw/vendor/contao/core-bundle/src/Resources/contao/library/Contao/TemplateLoader.php line 161 {"exception":"[object] (Exception(code: 0): Could not find template \"be_gc_jumploader\" at /var/www/eis96pw/vendor/contao/core-bundle/src/Resources/contao/library/Contao/TemplateLoader.php:161)"} []
Im Log:Code:Cannot protect folder "files/bilder/schindlerstrasse_19" because one of its parent folders is public
Sind das Gallery Creator-Fehler oder liegt es an meiner Konfiguration?Code:[2019-11-19 14:39:08] request.INFO: Matched route "contao_backend". {"route":"contao_backend","route_parameters":{"_route":"contao_backend","_scope":"backend","_token_check":true,"_controller":"Contao\\CoreBundle\\Controller\\BackendController::mainAction"},"request_uri":"https://test.zmaag.ch/contao?act=delete&do=gallery_creator&id=45&ref=ilm_LWON&rt=Pwf1qBpvBPVUUzD-3W__xz4mpwkCEHgjLBCG0Qnp8AA","method":"GET"} [] [2019-11-19 14:39:08] request.CRITICAL: Uncaught PHP Exception RuntimeException: "Cannot protect folder "files/bilder/schindlerstrasse_19" because one of its parent folders is public" at /var/www/eis96pw/vendor/contao/core-bundle/src/Resources/contao/library/Contao/Folder.php line 340 {"exception":"[object] (RuntimeException(code: 0): Cannot protect folder \"files/bilder/schindlerstrasse_19\" because one of its parent folders is public at /var/www/eis96pw/vendor/contao/core-bundle/src/Resources/contao/library/Contao/Folder.php:340)"} []

Zitieren

Für Dinge die man mit html5 und css3 lösen kann, braucht man kein javascript.