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

Error in Contao Dev Mode #183

Open
Metis77 opened this issue Nov 26, 2020 · 3 comments
Open

Error in Contao Dev Mode #183

Metis77 opened this issue Nov 26, 2020 · 3 comments

Comments

@Metis77
Copy link

Metis77 commented Nov 26, 2020

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:
Bildschirmfoto 2020-11-26 um 09 16 34

At the same time /contao/install/ asks me to delete:
Bildschirmfoto 2020-11-26 um 09 10 50

@qzminski
Copy link
Member

I am not able to reproduce this issue. It looks like the haste extension is not installed/loaded.

@Metis77
Copy link
Author

Metis77 commented Nov 27, 2020

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.

@Metis77
Copy link
Author

Metis77 commented Dec 14, 2020

Just an update:
I am also getting this issue for Contao 4.9.10.

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

No branches or pull requests

2 participants