Skip to content

SQL error when soft delete from fe_users table was removed #228

Open
@soee

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.

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions