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