Skip to content

Exception: Invalid QueryBuilder syntax at removing outdated entries #13

@tweigelt

Description

@tweigelt

I use the extension 2.0 within Typo3 12. While using a created link, i got a exception:

(1/1) TypeError
Cannot access offset of type string on string
in /var/www/html/vendor/typo3/cms-core/Classes/Database/Query/QueryBuilder.php line 1314
$queriedTables = [];
at TYPO3\CMS\Core\Database\Query\QueryBuilder->getQueriedTables()
in /var/www/html/vendor/typo3/cms-core/Classes/Database/Query/QueryBuilder.php line 1345
...

Analysing the code shows, that in TokenRepository.php in function removeOutdated() the syntax seems to be not correct (like expected from the Typo3 QueryBuilder doku):

Line 54: ->from(self::TABLE) must be removed
Line 58: ->executeQuery(); --> should be: ->executeStatement();

I tested this locally and it worked. Are there no problems with this in the past?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions