Bonjour/Bonsoir,
j'ai utilisé ce post sur un forum PHP pour corriger un bug sur une de mes galeries
http://web3us.com/drupal6/how-guides/ph … ssion-data
Impossible d'ouvrir une session utilisateur
Si cela peut etre utile, le message était :
Warning: session_start(): Failed to read session data: user (path: /tmp) in /include/common.inc.php on line 149
PHP7.1 piwigo Warning: session_start(): Failed to read session data:
Submitted by manager on Tue, 2017-01-31 23:31
I got this error with php 7.1 with piwigo 2.8.5 and 2.8.6
"Warning: session_start(): Failed to read session data: user (path: ) in ./piwigo/include/common.inc.php on line 149"
So session does not start, and you can't login.
To resolve this, I have added in the file: piwigo/include/functions_session.inc.php
to the function pwg_session_read($session_id), the following to check if the data is null :
if ($result)
{
$row = pwg_db_fetch_assoc($result);
if (is_null($row['data'])) {
return '';
}
return $row['data'];
}
else
{
return '';
}
Version de Piwigo: 2.8.6
Version de PHP: 7.1
Version de MySQL: 5.5
URL Piwigo: http://