Open
Description
There may be projects where removing soft delete functionality from fe_users is a requirement. When we remove soft delete and the related deleted
column from the database, Luxletter encounters an issue when attempting to fetch the number of users in frontend groups. This typically occurs when rendering a preview of the newsletter.
Instead of displaying the actual error to users, Luxletter shows a generic validation error message. However, the underlying error is logged in the system log:
Core: Exception handler (WEB): Uncaught TYPO3 Exception: #1054: An exception occurred while executing a query: Unknown column 'deleted' in 'where clause' | Doctrine\DBAL\Exception\InvalidFieldNameException thrown in file /var/www/html/vendor/doctrine/dbal/src/Driver/API/MySQL/ExceptionConverter.php in line 67. Requested URL: https://foo.ddev.site/typo3/ajax/luxletter/wizardUserPreview?token=--AnonymizedToken--&usergroups=2
The issue originates in the UserRepository.php file, line 99, where the deleted
column is used directly within a raw SQL query.