Skip to content
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

ZAuthModule/Entity/Repository/UserVerificationRepository.php (line 64) #4657

Closed
paustian opened this issue May 24, 2021 · 0 comments
Closed
Labels
Milestone

Comments

@paustian
Copy link
Member

Q A
Zikula Version 3.0.3
PHP Version 7.3.5

Expected Behavior

Not throw an error

Current Behavior

It throws the following error:
Failed to start the session because headers have already been sent by "/home/paust1/public_html/sixthedition/vendor/symfony/symfony/src/Symfony/Component/HttpFoundation/Response.php" at line 381.

And
zauth-module/Entity/Repository/UserVerificationRepository.php (line 64)
DateTime::__construct() expects parameter 1 to be string, null given

Fixing the second error fixes the first

Possible Solution

Line 64 of UserVerificationRepostitory is:

$staleRecordUTC = new DateTime(null, new DateTimeZone('UTC'));
10:48
It should be:
$staleRecordUTC = new DateTime("now", new DateTimeZone('UTC'));

Steps to Reproduce

I found this bug after an install of 3.0.3

@paustian paustian added the Bug label May 24, 2021
@Guite Guite added this to the 3.1.0 milestone May 24, 2021
@Guite Guite closed this as completed in a000db6 May 24, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants