Roundcube Community Forum

 

[SOLVED] Session expired or invalid with PHP7.1

Started by Rhobur, July 22, 2018, 08:49:04 AM

Previous topic - Next topic

Rhobur

Issue: can't login on latest RC on Debian 9.4 with PHP7.1
Cause: session not working
After searching a lot and finding nothing to help with this error I discovered that starting with PHP7 the null values are not accepted anymore, a string has to be returned on a read function.
The fix is to change the return value of the db_read function in rcube_session.php (~ line 185) from null to ''.
Hope it helps!

JohnDoh

#1
What version of Roundcube are you running exactly? PHP 7 compatibility was introduced in version 1.2 (released in 2016). There were also compatibility fixes for 7.1 versions 1.2.3 and 1.3 according to the changelog. The code you referenced looks like its from 1.1 or earlier.
Roundcube Plugins: Contextmenu, SpamAssassin Prefs, and more...

Rhobur

He, he was 1.0.1, upgrading now to latest 1.3.6