Hey guys, I've been messing around with this error on my own for a bit and I've given up.
I get this alongside a login/"Welcome to Your Piwigo Gallery" page:
Warning: session_start(): Failed to read session data: user (path: /home/497/307497/tmp) in /home/497/307497/public_html/include/common.inc.php on line 149
It won't login, but if given a wrong password it will take me to the identification.php page. Tried to chmod 777 the tmp folder and then doing a clean install, but without any results. The database tables do get imported successfully.
I'm not too experienced with web servers so I pretty much poke at it until something happens.
Piwigo version: 2.8.3
PHP version: 5.2
I get this too on my local test site, after upgrading to PHP 7.1
https://bugs.php.net/bug.php?id=73616 has some information.
Problem remains in Piwigo 2.9.0b. As it is a test site, I don't care, but it should be investigated by Piwigo team.
Actually there might be a problem with our code. Can someone test this ?
in include/functions_session.inc.php , function session_read, replace
Last edited by rvelices (2016-12-21 18:46:36)
I can confirm patch works.
Not related, but another warning pops up: Got error 'PHP message: PHP Warning: A non-numeric value encountered in /(...)/include/template.class.php on line 1791\n'
On [Github] Piwigo issue #586 mirlang says rvelices patch works fine.
Actually patch does not work because it is $result and not $results
Code which does work in 2.8.4 is
$result = pwg_query($query);
Am I correct in saying PHP 7.1 is not supported at this time?