Announcement

#1 2019-04-18 17:20:19

FlashBuddy
Member
Fort Collins, Colorado
2018-09-13
14

functions_session.inc.php

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?

Code:

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

 

#2 2019-04-18 17:31:04

FlashBuddy
Member
Fort Collins, Colorado
2018-09-13
14

Re: functions_session.inc.php

~line 39 of functions_session.inc.php

Code:

session_set_save_handler(
    'pwg_session_open',
    'pwg_session_close',
    'pwg_session_read',
    'pwg_session_write',
    'pwg_session_destroy',
    'pwg_session_gc'
  );

Offline

 

#3 2019-04-18 19:26:45

executive
Member
2017-08-16
1214

Re: functions_session.inc.php

Try Tools->Maintenance->Purge sessions
and
Reinitialise integrity check

Offline

 

#4 2019-04-18 19:40:17

FlashBuddy
Member
Fort Collins, Colorado
2018-09-13
14

Re: functions_session.inc.php

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

 

#5 2019-04-18 20:09:18

executive
Member
2017-08-16
1214

Re: functions_session.inc.php

If you have extensions, I would disable them. The turn them on one-by-one until the error comes back.

Offline

 

#6 2019-04-18 22:43:07

FlashBuddy
Member
Fort Collins, Colorado
2018-09-13
14

Re: functions_session.inc.php

Good idea, but still no joy. Hmmmm....

Offline

 

#7 2019-04-18 22:56:41

jnashpiwigo
Piwigo Team
2014-10-21
254

Re: functions_session.inc.php

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

 

#8 2019-04-18 23:51:48

FlashBuddy
Member
Fort Collins, Colorado
2018-09-13
14

Re: functions_session.inc.php

Another good idea - no joy. I emptied the sessions table, no change. Gallery works great, just can't make those errors go away.

Offline

 

#9 2019-04-19 10:17:57

plg
Piwigo Team
Nantes, France, Europe
2002-04-05
13786

Re: functions_session.inc.php

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

 

#10 2019-04-19 10:43:37

executive
Member
2017-08-16
1214

Re: functions_session.inc.php

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

 

Board footer

Powered by FluxBB

github twitter newsletter Donate Piwigo.org © 2002-2024 · Contact