You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
An exception occurred. {"exception":"[object] (Doctrine\DBAL\Exception\SyntaxErrorException(code: 0): An exception occurred while executing
'SELECT ... FROM ... WHERE tl_iso_product.language='' AND tl_iso_product.published='1' AND (tl_iso_product.start='' OR tl_iso_product.start<'1553680320') AND (tl_iso_product.stop='' OR tl_iso_product.stop>'1553680380') AND ((tl_iso_product.pid=0 AND tl_iso_product.type NOT IN (SELECT id FROM tl_iso_producttype WHERE variants='1')) OR tl_iso_product.pid>0)) AND c.page_id IN (...) GROUP BY tl_iso_product.id, translation.id'
So the error is in this part of the query: ((tl_iso_product.pid=0 AND tl_iso_product.type NOT IN (SELECT id FROM tl_iso_producttype WHERE variants='1')) OR tl_iso_product.pid>0))
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 ') AND c.page_id IN (...) GROUP BY tl_iso_product' at line 4 at /.../vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/AbstractMySQLDriver.php:99, 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 ') AND c.page_id IN (...) AND GROUP BY tl_iso_product' at line 4 at /.../vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOConnection.php:109, 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 ') AND c.page_id IN (...) AND tl_iso_product.basic=1 GROUP BY tl_iso_product' at line 4 at /.../vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOConnection.php:107)"} []
The text was updated successfully, but these errors were encountered:
Hello.
There is a sql-error when showing a product-variant-list. The syntax of the query is not correct.
Isotope-Version: 2.5.12
Contao-Version: 4.4.36
It seems that in Line 40 in ProductVariantList.php there is a closing parenthesis too much.
So the error is in this part of the query:
((tl_iso_product.pid=0 AND tl_iso_product.type NOT IN (SELECT id FROM tl_iso_producttype WHERE variants='1')) OR tl_iso_product.pid>0))
The text was updated successfully, but these errors were encountered: