Datenbankfehler beim Produktaufruf

Alle sonstigen Fragen und Antworten (z. B. zu Modulen oder der allgemeinen technischen Realisierung)
Antworten
Benutzeravatar
blickma
Beiträge: 39
Registriert: 26. Jul 2016, 11:46

Datenbankfehler beim Produktaufruf

Beitrag von blickma »

Hallo,
und gleich das nächste Problem:
Beim Produktaufruf (https://shop.artelavista.com/neuheiten.html - die vier Engel in der ersten Reihe sind betroffen) erhalte ich folgende Fehlermeldung im log:

Code: Alles auswählen

[2020-11-26 09:30:13] request.INFO: Matched route "tl_page.279". {"route":"tl_page.279","route_parameters":{"_token_check":true,"_controller":"Contao\\FrontendIndex::renderPage","_scope":"frontend","_locale":"de","pageModel":"[object] (Contao\\PageModel: {})","parameters":"/product/anjinho-weiß-m","_route":"tl_page.279"},"request_uri":"https://shop.artelavista.com/wohndekor/engel/product/anjinho-wei%C3%9F-m.html","method":"GET"} []
[2020-11-26 09:30:13] security.INFO: Populated the TokenStorage with an anonymous Token. [] []
[2020-11-26 09:30:14] request.CRITICAL: Uncaught PHP Exception Doctrine\DBAL\Exception\SyntaxErrorException: "An exception occurred while executing 'SELECT `tl_ls_shop_product`.`id`, `tl_ls_shop_product`.`title_de` FROM	 `tl_ls_shop_product` WHERE ( `useGroupRestrictions` != '1'  OR `allowedGroups` LIKE '%"1"%' ) AND IFNULL(`tl_ls_shop_product`.`title_de`, '') LIKE '%%' AND `tl_ls_shop_product`.`published` LIKE '1' AND (`tl_ls_shop_product`.`id` IN (796,798,799,)) ORDER BY `tl_ls_shop_product`.`title_de` ASC': 
SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')) ORDER BY `tl_ls_shop_product`.`title_de` ASC' at line 16" at /xxx/xxx/xxx/contao_4/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/AbstractMySQLDriver.php line 83 {"exception":"[object] (Doctrine\\DBAL\\Exception\\SyntaxErrorException(code: 0): An exception occurred while executing 'SELECT\t\t\t`tl_ls_shop_product`.`id`,\n\t\t\t\t`tl_ls_shop_product`.`title_de`\n\t\t\t\t\t\t\t\n\t\t\tFROM\t\t\t`tl_ls_shop_product`\n\t\t\n\t\t\tWHERE\t\t\t\n (\n `useGroupRestrictions` != '1'\n OR `allowedGroups` LIKE '%\"1\"%'\n  )\n\n\t\t\t\t\tAND IFNULL(`tl_ls_shop_product`.`title_de`, '') LIKE '%%'\n\t\t\t\t\t\t\n\t\t\t\t\tAND `tl_ls_shop_product`.`published` LIKE '1'\n\t\t\t\t\t\t\n\t\t\t\t\tAND \t(`tl_ls_shop_product`.`id` IN (796,798,799,))\n\t\t\tORDER BY\t\t`tl_ls_shop_product`.`title_de` ASC':\n\n
SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '))\n\t\t\tORDER BY\t\t`tl_ls_shop_product`.`title_de` ASC' at line 16 at /xxx/xxx/xxx/contao_4/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/AbstractMySQLDriver.php:83, Doctrine\\DBAL\\Driver\\PDOException(code: 42000): 
SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '))\n\t\t\tORDER BY\t\t`tl_ls_shop_product`.`title_de` ASC' at line 16 at /xxx/xxx/xxx/contao_4/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOConnection.php:91, PDOException(code: 42000): 
SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '))\n\t\t\tORDER BY\t\t`tl_ls_shop_product`.`title_de` ASC' at line 16 at /xxx/xxx/xxx/contao_4/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOConnection.php:86)"} []
Interessanterweise nicht bei jedem Aufruf, aber meistens ... außerdem sind bei allen vier Produkten Cross-Seller hinterlegt, die aber auch nicht verlässlich (sprich nachvollziebar) angezeigt werden. Was kann ich tun?
Benutzeravatar
blickma
Beiträge: 39
Registriert: 26. Jul 2016, 11:46

Re: Datenbankfehler beim Produktaufruf

Beitrag von blickma »

Ergänzung: Kunde hat die Produkte inzwischen gelöscht und neu angelegt - und das Problem damit zumindest temporär behoben - trotzdem wäre es gut zu wissen, was uns die Fehlermeldung sagen will. :)
Antworten

Zurück zu „Sonstiges / Misc.“