-
Notifications
You must be signed in to change notification settings - Fork 41
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
Warning: session_start(): Failed to read session data: user (path:) #1
Comments
Check this replace
with this
works with php 7.1 |
Thanks for the solution. I learned that php 7.1 and above strictly requires the session read to return a string and not even a null value. That's why the error was raised. This code also raised an error when using registration-ID function. Because it follows a different action cycle in 7.1 and above I suspect, like read->close->read->write... I will post my code when i return to that problem soon. |
Hi I'm having the same issue with migrating from PHP 7.0 to 7.1 I'm trying to find which file has the above stated code to update the function _read. Sorry I'm new. |
I used a different approach. I don't think wintstar's code solves the issue. |
Hi. May you please share with me your solution? I'm finding it terribly
difficult to migrate php 7.0 to 7.1 thanks.
…On Mon, Jan 7, 2019, 7:34 AM tennom ***@***.*** wrote:
I used a different approach. I don't think wintstar's code solves the
issue.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#1 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AsR5t_a8vqZ07pFAAhPaLzMWq_rNELf_ks5vAz7RgaJpZM4R-AqO>
.
|
Kindly share your approach here? wintstar's code do not works for me. |
I couldn't make this code work with both the latest stable PHP7.2.2 and PHP7.1.X.
I also had the --enable-fpm with compilations. It showed this error
Warning: session_start(): Failed to read session data: user (path:)
.I also tried to override default session manager with
implements \SessionHandlerInterface
which returned same error. Then I started doubting some compatibility issues of 7.2 and 7.1 withsession_set_save_handler
, but can't find any proof and not much time dig in as of now.I could make it work with PHP7.0.X. builds with no problem!
The text was updated successfully, but these errors were encountered: