fnagel / t3extblog

A record based blog extension for TYPO3 CMS. Easy to use and packed with features (incl. comments, subscriptions for comments and posts, Wordpress like subscription manager, reasonable email sending in FE and BE, GDPR ready, BE modules, Dashboard widgets, RSS, Sitemap, ...). Flexible and powerful!
http://typo3.org/extensions/repository/view/t3extblog
GNU General Public License v2.0
32 stars 18 forks source link

TYPO3 12.4 Backend post delete #277

Closed jmSirup closed 3 months ago

jmSirup commented 3 months ago

Got an Error while trying to delete a post in TYPO3 12.4 and t3extblog Version 8.0.0

at Doctrine\DBAL\Connection->convertExceptionDuringQuery(object(Doctrine\DBAL\Driver\Mysqli\Exception\ConnectionError), 'SELECT `uid` FROM `tx_t3blog_com` WHERE ((Array) AND (`tx_t3blog_com`.`deleted` = 0))', array(), array())

When I add a spread operator ... in Classes/Hooks/Tcemain.php (line 208) to $constraints then the errror doesn't occour anymore.

$queryBuilder
            ->select('uid')
            ->from($tableName)
            ->where(CompositeExpression::and(...$constraints));
fnagel commented 3 months ago

Thanks for contributing! Confirmed and fixed in latest master.