markocupic / gallery-creator-bundle

Manage and display photo galleries. Plugin for Contao CMS.
GNU General Public License v3.0
7 stars 2 forks source link

Contao 4.4 ausgabe im Frontend von mehr als einer Galerie #10

Closed MacKP closed 5 years ago

MacKP commented 5 years ago

Ich bin bei einer Installation (endlich) auf Contao4.4 gegangen (dadurch dann nur Version 1.0.17 da die neuen Versionen eine neuere Contao Version brauchen...). Leider bekomme ich die Erweiterung nicht mehr zum laufen, soblad mehr als eine Galerie im Frontend angezeigt werden soll:

An exception occurred while executing 'SELECT * FROM tl_gallery_creator_albums WHERE published='1' AND pid='3' GROUP BY 'id'':

SQLSTATE[42000]: Syntax error or access violation: 1055 Expression #1 of SELECT list is not in GROUP BY clause and contains nonaggregated column 'contao44lts.tl_gallery_creator_albums.id' which is not functionally dependent on columns in GROUP BY clause; this is incompatible with sql_mode=only_full_group_by

Die einzige Hilfe die ich im Internet gefunden habe, wäre die Anpassung vom MySQL-Server (https://tableplus.io/blog/2018/08/mysql-how-to-turn-off-only-full-group-by.html). Das kann ich hier leider nicht machen.

Gibt es dafür eine Lösung? Muss ich doch auf eine höhere Contao Version um das Problem mit einer aktuellen gallery-creator-bundle Version zu umgehen?

markocupic commented 5 years ago

Ciao Marc Der gute alte gallery creator kommt langsam in die Jahre. ;-) Kannst du mir mal den error log in var/logs posten? Liebe Grüsse Marko

MacKP commented 5 years ago

Hey Marko ^^

ich hab dir mal einen Auszug fertig gemacht (direkt zu dem Zeitpunkt, als ich die Seite mit dem gallery-creator aufgerufen habe):

[2019-06-30 12:37:00] request.INFO: Matched route "contao_frontend". {"route":"contao_frontend","route_parameters":{"_token_check":true,"_controller":"Contao\\CoreBundle\\Controller\\FrontendController::indexAction","_scope":"frontend","alias":"Fotostrecken","_route":"contao_frontend"},"request_uri":"http://update.fehlerhomepage.de/Fotostrecken.html","method":"GET"} [] [2019-06-30 12:37:00] security.INFO: Attempting SimplePreAuthentication. {"key":"frontend","authenticator":"Contao\\CoreBundle\\Security\\ContaoAuthenticator"} [] [2019-06-30 12:37:01] app.CRITICAL: An exception occurred. {"exception":"[object] (Doctrine\\DBAL\\Exception\\DriverException(code: 0): An exception occurred while executing 'SELECT * FROM tl_gallery_creator_albums WHERE published='1' AND pid='3' GROUP BY 'id'':\n\nSQLSTATE[42000]: Syntax error or access violation: 1055 Expression #1 of SELECT list is not in GROUP BY clause and contains nonaggregated column 'contao44lts.tl_gallery_creator_albums.id' which is not functionally dependent on columns in GROUP BY clause; this is incompatible with sql_mode=only_full_group_by at /var/www/vhosts/fehlerhomepage.de/httpdocs/contao4-4_lts/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/AbstractMySQLDriver.php:126, Doctrine\\DBAL\\Driver\\PDOException(code: 42000): SQLSTATE[42000]: Syntax error or access violation: 1055 Expression #1 of SELECT list is not in GROUP BY clause and contains nonaggregated column 'contao44lts.tl_gallery_creator_albums.id' which is not functionally dependent on columns in GROUP BY clause; this is incompatible with sql_mode=only_full_group_by at /var/www/vhosts/fehlerhomepage.de/httpdocs/contao4-4_lts/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOConnection.php:109, PDOException(code: 42000): SQLSTATE[42000]: Syntax error or access violation: 1055 Expression #1 of SELECT list is not in GROUP BY clause and contains nonaggregated column 'contao44lts.tl_gallery_creator_albums.id' which is not functionally dependent on columns in GROUP BY clause; this is incompatible with sql_mode=only_full_group_by at /var/www/vhosts/fehlerhomepage.de/httpdocs/contao4-4_lts/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOConnection.php:107)"} [] [2019-06-30 12:37:01] request.INFO: Matched route "contao_catch_all". {"route":"contao_catch_all","route_parameters":{"_scope":"frontend","_token_check":true,"_controller":"Contao\\CoreBundle\\Controller\\FrontendController::indexAction","_url_fragment":"favicon.ico","_route":"contao_catch_all"},"request_uri":"http://update.fehlerhomepage.de/favicon.ico","method":"GET"} [] [2019-06-30 12:37:01] security.INFO: Attempting SimplePreAuthentication. {"key":"frontend","authenticator":"Contao\\CoreBundle\\Security\\ContaoAuthenticator"} [] [2019-06-30 12:37:01] request.ERROR: Uncaught PHP Exception Symfony\Component\HttpKernel\Exception\NotFoundHttpException: "Page not found: http://update.fehlerhomepage.de/favicon.ico" at /var/www/vhosts/fehlerhomepage.de/httpdocs/contao4-4_lts/vendor/contao/core-bundle/src/EventListener/ExceptionConverterListener.php line 112 {"exception":"[object] (Symfony\\Component\\HttpKernel\\Exception\\NotFoundHttpException(code: 0): Page not found: http://update.fehlerhomepage.de/favicon.ico at /var/www/vhosts/fehlerhomepage.de/httpdocs/contao4-4_lts/vendor/contao/core-bundle/src/EventListener/ExceptionConverterListener.php:112, Contao\\CoreBundle\\Exception\\PageNotFoundException(code: 0): Page not found: http://update.fehlerhomepage.de/favicon.ico at /var/www/vhosts/fehlerhomepage.de/httpdocs/contao4-4_lts/vendor/contao/core-bundle/src/Resources/contao/controllers/FrontendIndex.php:64)"} []

Ja, ich sollte denen mal ein Favicon machen ^^

Wenn du noch etwas brauchst, dann gib einfach Bescheid ;-) Viele Grüße

markocupic commented 5 years ago

Hallo Marc Probier mal Version 1.0.18. Liebe Grüsse Marko

MacKP commented 5 years ago

Perfekt! Sieht gut aus mit dem Fix.

Vielen Dank!