in2code-de/lux

SQL Error if news is not installed

Closed this issue · 1 comments

The problem (reported from Slack) on any view:

Core: Exception handler (WEB): Uncaught TYPO3 Exception: An exception occurred while executing ‘select count(*) from tx_news_domain_model_news where deleted=0’: Table ‘domain_backup.tx_news_domain_model_news’ doesn’t exist | Doctrine\DBAL\Exception\TableNotFoundException thrown in file /home/www/b80/domain-backup/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/AbstractMySQLDriver.php in line 61. Requested URL: https://www.domain/typo3/module/lux/LuxAnalysis?token=--AnonymizedToken--

I think this is related to \In2code\Lux\Domain\Repository\NewsvisitRepository::isTableFilled() called from \In2code\Lux\Domain\Repository\NewsvisitRepository::isTableFilled(). We have to not only check if the table is filled, we have to also check if the table exists before.

Fix in 31.2.3