Issue Bug Closed

#107974Missing session in CLI mode could cause problems

Albrecht Köhnlein 11/04/25, 10:10 updated 11/05/25, 01:11

Description

I know, there is no real sense for sessions in CLI mode.

On the other hand, I ran into a scenario when an extension hooks into DataHandler and tries to write flash messages to the session. This resulted in the following exception:

> Uncaught TYPO3 Exception Call to a member function set() on null thrown in file /var/www/html/vendor/typo3/cms-core/Classes/Authentication/AbstractUserAuthentication.php in line 1062

Reviews 1

History 34

  1. Garvin Hicking commented and changed status Under Review Closed <span data-processor="relativetime" data-value="2025-11-04T11:13:23+00:00" > 11/04/25, 11:13 </span>

    Will/should be resolved via patches like https://github.com/web-vision/deepltranslate-glossary/pull/18/files to address this in extension-scope. Thanks so much for the effort, hope you understand :D