Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Produkt-Filter Bedingung #2043

Closed
SGehle opened this issue May 21, 2019 · 2 comments
Closed

Produkt-Filter Bedingung #2043

SGehle opened this issue May 21, 2019 · 2 comments
Labels
Milestone

Comments

@SGehle
Copy link

SGehle commented May 21, 2019

Wie genau Funktioniert die Bedingung beim Produkt-Filter?
Wenn ich z.B. tl_iso_product.pid != 0 eingebe bekomme ich folgenden Fehler:
Contao 4.4.39 - Isotope 2.5.12

{"exception":"[object] (Doctrine\\DBAL\\Exception\\InvalidFieldNameException(code: 0): An exception occurred while executing 'SELECT DISTINCT p1.size AS options\n FROM tl_iso_product p1\n LEFT OUTER JOIN tl_iso_product p2 ON p1.pid=p2.id\n WHERE\n p1.language=''\n AND p1.size!=''\n \n AND p1.published='1'\n AND (p1.start='' OR p1.start<'1558434720')\n AND (p1.stop='' OR p1.stop>'1558434780')\n AND (\n p1.pid=0 OR (\n p2.published='1'\n AND (p2.start='' OR p2.start<'1558434720')\n AND (p2.stop='' OR p2.stop>'1558434780')\n )\n )\n AND (\n p1.id IN (\n SELECT pid\n FROM tl_iso_product_category\n WHERE page_id IN (114,204)\n )\n OR p1.pid IN (\n SELECT pid\n FROM tl_iso_product_category\n WHERE page_id IN (114,204)\n )\n )\n AND (\n p2.type IN (3)\n )\n AND tl_iso_product.pid != 0':\n\nSQLSTATE[42S22]: Column not found: 1054 Unknown column 'tl_iso_product.pid' in 'where clause' at /homepages/15/d697471085/htdocs/contao18/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/AbstractMySQLDriver.php:80, Doctrine\\DBAL\\Driver\\PDOException(code: 42S22): SQLSTATE[42S22]: Column not found: 1054 Unknown column 'tl_iso_product.pid' in 'where clause' at /homepages/15/d697471085/htdocs/contao18/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOConnection.php:109, PDOException(code: 42S22): SQLSTATE[42S22]: Column not found: 1054 Unknown column 'tl_iso_product.pid' in 'where clause' at /homepages/15/d697471085/htdocs/contao18/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOConnection.php:107)"}

@aschempp aschempp added the bug label May 29, 2019
@aschempp aschempp added this to the 2.5.13 milestone May 29, 2019
@aschempp
Copy link
Member

Der Produkt-Filter hatte noch falsche Tabellen-Aliase verwendet. In 2.5.13 sollte es mit deinem Query gehen.

@SGehle
Copy link
Author

SGehle commented Jul 6, 2019

Vielen Dank @aschempp - funktioniert nun korrekt!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants