Yo,
What's up with this. Sometimes it doesn't appear, but once I login it shows up - and I am unable to logout!
I've changed my php versions from 5.6 up to 7.2. At lower version I get fewer errors, but still get these errors.
Ideas?
Warning: session_set_save_handler(): Cannot change save handler when session is active in /home/flashale/public_html/piwigo/include/functions_session.inc.php on line 39 Warning: ini_set(): Headers already sent. You cannot change the session module's ini settings at this time in /home/flashale/public_html/piwigo/include/functions_session.inc.php on line 44 Warning: ini_set(): Headers already sent. You cannot change the session module's ini settings at this time in /home/flashale/public_html/piwigo/include/functions_session.inc.php on line 45 Warning: ini_set(): A session is active. You cannot change the session module's ini settings at this time in /home/flashale/public_html/piwigo/include/functions_session.inc.php on line 46 Warning: ini_set(): Headers already sent. You cannot change the session module's ini settings at this time in /home/flashale/public_html/piwigo/include/functions_session.inc.php on line 47 Warning: session_name(): Cannot change session name when session is active in /home/flashale/public_html/piwigo/include/functions_session.inc.php on line 50 Warning: session_set_cookie_params(): Cannot change session cookie parameters when session is active in /home/flashale/public_html/piwigo/include/functions_session.inc.php on line 51 Notice: session_start(): A session had already been started - ignoring in /home/flashale/public_html/piwigo/include/common.inc.php on line 156 Warning: Cannot modify header information - headers already sent by (output started at /home/flashale/public_html/piwigo/include/functions_session.inc.php:39) in /home/flashale/public_html/piwigo/include/page_header.php on line 98
Piwigo version: 2.9.5
PHP version: 7.2
MySQL version: 5.6
Piwigo URL: https://flashalexander.com/piwigo/
TIA
Offline
~line 39 of functions_session.inc.php
session_set_save_handler( 'pwg_session_open', 'pwg_session_close', 'pwg_session_read', 'pwg_session_write', 'pwg_session_destroy', 'pwg_session_gc' );
Offline
Try Tools->Maintenance->Purge sessions
and
Reinitialise integrity check
Offline
No Joy, great tips though. I was successful at optimizing my database, but "Purge Sessions" and "Reinitialize Integrity Check" had no effect on the errors, they persist. :(
Offline
If you have extensions, I would disable them. The turn them on one-by-one until the error comes back.
Offline
Good idea, but still no joy. Hmmmm....
Offline
Looks like you have a stale session for some reason.
If you know what you're doing, you can clear out the sessions table in your database. (although the maintenance task should have done that for you - and not recommended unless you're know what you're doing - and have a backup! - can't warn enough)
Last edited by jnashpiwigo (2019-04-18 22:57:26)
Offline
Another good idea - no joy. I emptied the sessions table, no change. Gallery works great, just can't make those errors go away.
Offline
I've found the same kind of errors for other PHP applications, such a Joomla. It occured when a user updates from a PHP version to version 7.2. They fixed it with some kind of experimental changes, but as I don't reproduce the problem I dont' want to take any risk here.
Can you use a newer version of PHP? (if that's a PHP bug on a specific PHP 7.2.x version, it's not worth fixing it on Piwigo side)
Offline
Actually since you mention it PLG, I did have some hiccups when changing my PHP version too.
Upgrading PHP caused a different set of extensions to be enabled. I had to go in and turn some on myself.
Offline