Simple Machines Community Forum

SMF Development => Bug Reports => Fixed or Bogus Bugs => Topic started by: asmith on January 31, 2016, 11:40:36 AM

Title: SMF 2.1 PHP7 session errors
Post by: asmith on January 31, 2016, 11:40:36 AM
Hello,

I tried the latest 2.1 from github. On windows 7 with php 7.0.2.
I can login and logout fine but my error log is getting filled with this:




admin
Today at 04:33 pm
127.0.0.1 
5dbba947b92746695d56c4c485936ffc
Type of error: General
2: Unknown: Failed to write session data (user). Please verify that the current setting of session.save_path is correct (C:\tmp)
http://localhost/index.php?action=login2;sa=check;member=1

admin
Today at 04:33 pm
127.0.0.1 
5dbba947b92746695d56c4c485936ffc
Type of error: General
2: Unknown: Session callback expects true/false return value
http://localhost/index.php?action=login2;sa=check;member=1

admin
Today at 04:33 pm
127.0.0.1 
a3433bf8f9545040a475afba8b310e5d
Type of error: General
4096: session_regenerate_id(): Failed to create(read) session ID: user (path: C:\tmp)
http://localhost/index.php?action=login2
File: C:/www/Web2/public/Sources/Subs-Auth.php
Line: 103

Guest
Today at 04:33 pm
127.0.0.1 
203a1a5b93f7c6f11743f0889db41e52
Type of error: General
2: Unknown: Failed to write session data (user). Please verify that the current setting of session.save_path is correct (C:\tmp)
http://localhost/index.php?

Guest
Today at 04:33 pm
127.0.0.1 
203a1a5b93f7c6f11743f0889db41e52
Type of error: General
2: Unknown: Session callback expects true/false return value
http://localhost/index.php?

admin
Today at 04:33 pm
127.0.0.1 
31ec4bdc916a616bc55098792275fafb
Type of error: General
2: session_destroy(): Trying to destroy uninitialized session
http://localhost/index.php?action=logout;e5b9cbbba=ea039aa892729cd2a4a98d5a370bad82
File: C:/www/Web2/public/Sources/LogInOut.php
Line: 667

admin
Today at 04:33 pm
127.0.0.1 
31ec4bdc916a616bc55098792275fafb
Type of error: General
4096: session_regenerate_id(): Failed to create(read) session ID: user (path: C:\tmp)
http://localhost/index.php?action=logout;e5b9cbbba=ea039aa892729cd2a4a98d5a370bad82
File: C:/www/Web2/public/Sources/Subs-Auth.php
Line: 103



I've checked the path and even changed it to make sure, but no success.
Title: Re: SMF 2.1 PHP7 session errors
Post by: vbgamer45 on January 31, 2016, 11:48:42 AM
Has been fixed for the next update/release

https://github.com/SimpleMachines/SMF2.1/commit/dd4222bc9af04355db14c5cdf0925e24ea791eaf
Title: Re: SMF 2.1 PHP7 session errors
Post by: jonmcu on October 27, 2016, 05:56:28 PM
I'm new to SMF, just installed the latest version two days ago on OS X.  My log file is full of these errors.  I've got session_path pointing to /tmp and confirmed that it is writable.

This thread indicates that it is a known defect that has been fixed and will be in the "next release".  But this was in January.  When will that release be available?
Title: Re: SMF 2.1 PHP7 session errors
Post by: Illori on October 27, 2016, 06:05:39 PM
SMF 2.1 is still in beta. SMF 2.0 is going to support php 7.0 in the future.