Join GitHub today
Warning: ini_set(): A session is active. You cannot change the session module's ini settings at this time #3898
Error message should not display.
Steps to reproduce
Try to login. The message appears immediately after the form is submitted.
I've just looked into what happens here.
First, the problem is caused by that
The concrete place where
Basically when a login is executed our access controller calls an access helper at https://github.com/zikula/core/blob/2.0/src/system/UsersModule/Controller/AccessController.php#L129 which then calls the session
So, we have two options to get rid of this problem:
to suppress the warning.
Just tried again to verify no additional bundles are involved:
Important: it is not reproducible if
I decided to suppress this warning centrally in our session storage subclass. Not the cleanest solution, but first it does not have any side-effects and second it also works if any other session access is done from the outside (e.g. by an event subscriber or a listener of a module).