contao-news_categories
contao-news_categories copied to clipboard
Error in Contao Dev Mode
Contao 4.9 on php 7.4.2
If the contao dev mode is active, the following error appears, when trying to open the newslist in backend.
[2020-11-26 09:11:22] request.CRITICAL: Uncaught PHP Exception Doctrine\DBAL\Exception\InvalidFieldNameException: "An exception occurred while executing 'SELECT DISTINCT `categories` FROM tl_news WHERE pid='2'': SQLSTATE[42S22]: Column not found: 1054 Unknown column 'categories' in 'field list'" at /Users/Metis/Sites/RE eltern-zeitung.de/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/AbstractMySQLDriver.php line 79 {"exception":"[object] (Doctrine\\DBAL\\Exception\\InvalidFieldNameException(code: 0): An exception occurred while executing 'SELECT DISTINCT `categories` FROM tl_news WHERE pid='2'':\n\nSQLSTATE[42S22]: Column not found: 1054 Unknown column 'categories' in 'field list' at /Users/Metis/Sites/RE eltern-zeitung.de/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/AbstractMySQLDriver.php:79, Doctrine\\DBAL\\Driver\\PDO\\Exception(code: 42S22): SQLSTATE[42S22]: Column not found: 1054 Unknown column 'categories' in 'field list' at /Users/Metis/Sites/RE eltern-zeitung.de/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDO/Exception.php:18, PDOException(code: 42S22): SQLSTATE[42S22]: Column not found: 1054 Unknown column 'categories' in 'field list' at /Users/Metis/Sites/RE eltern-zeitung.de/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOConnection.php:125)"} []
the error in Backend is:
At the same time /contao/install/ asks me to delete:
I am not able to reproduce this issue. It looks like the haste
extension is not installed/loaded.
vendor/codefog/contao-haste
is there.
Everything works as expected, as long a I do not enable the contao dev mode.
would you like to composer install
my installation? I could grant you access to the repo.
Just an update: I am also getting this issue for Contao 4.9.10.