New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

when using PHP 7.1: Warning: session_regenerate_id(): Session callback expects true/false return value #3886

Closed
rallek opened this Issue Jan 7, 2018 · 2 comments

Comments

Projects
None yet
2 participants
@rallek
Contributor

rallek commented Jan 7, 2018

Q A
Zikula Version 2.0.4
PHP Version 7.1

Expected behavior

When changed the session storrage to database I still should be able to log in

Actual behavior

I see an error:

Symfony\Component\Debug\Exception\ContextErrorException:
Warning: session_regenerate_id(): Session callback expects true/false return value

  at vendor/symfony/symfony/src/Symfony/Component/HttpFoundation/Session/Storage/NativeSessionStorage.php:208
  at Symfony\Component\HttpFoundation\Session\Storage\NativeSessionStorage->regenerate(true, 0)
     (vendor/symfony/symfony/src/Symfony/Component/HttpFoundation/Session/Session.php:174)
  at Symfony\Component\HttpFoundation\Session\Session->migrate(true, 0)
     (system/UsersModule/Helper/AccessHelper.php:112)
  at Zikula\UsersModule\Helper\AccessHelper->login(object(UserEntity), false)
     (system/UsersModule/Controller/AccessController.php:129)
  at Zikula\UsersModule\Controller\AccessController->loginAction(object(Request))
     (vendor/symfony/symfony/src/Symfony/Component/HttpKernel/HttpKernel.php:151)
  at Symfony\Component\HttpKernel\HttpKernel->handleRaw(object(Request), 1)
     (vendor/symfony/symfony/src/Symfony/Component/HttpKernel/HttpKernel.php:68)
  at Symfony\Component\HttpKernel\HttpKernel->handle(object(Request), 1, true)
     (vendor/symfony/symfony/src/Symfony/Component/HttpKernel/Kernel.php:202)
  at Symfony\Component\HttpKernel\Kernel->handle(object(Request))
     (index.php:18)

Steps to reproduce

fresh install of 2.0.4 and change in the securrity center from session stored in files to session stored to database

@rallek rallek changed the title from Warning: session_regenerate_id(): Session callback expects true/false return value to Warning: session_regenerate_id(): Session callback expects true/false return value when using PHP7.1 Jan 7, 2018

@rallek rallek changed the title from Warning: session_regenerate_id(): Session callback expects true/false return value when using PHP7.1 to when using PHP 7.1: Warning: session_regenerate_id(): Session callback expects true/false return value Jan 7, 2018

@rallek

This comment has been minimized.

Contributor

rallek commented Jan 7, 2018

with php 5.6 it is working.

@Guite Guite added this to the 2.0.6 milestone Mar 28, 2018

@Guite Guite added the Bug label Mar 28, 2018

@Guite Guite modified the milestones: 2.0.6, 1.5.6 Mar 28, 2018

Guite added a commit that referenced this issue Mar 28, 2018

@Guite

This comment has been minimized.

Member

Guite commented Mar 28, 2018

Fixed in 67c5260

@Guite Guite closed this Mar 28, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment