You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I had previously upgraded from 1.2.9 to 1.2.11. Then I backed out. Now I've upgraded to 1.2.14. I'm getting a lot of these errors now:
2020-09-21 23:03:40 - ERROR PHP : A session had already been started - ignoring session_start() in file: /cacti/cacti-1.2.14-prod/lib/functions.php on line: 5546
2020-09-21 23:03:40 - CMDPHP PHP ERROR NOTICE Backtrace: (/graph_json.php[32]:include(), /include/auth.php[28]:require_once(), /include/global.php[439]:cacti_session_start(), /lib/functions.php[5546]:session_start(), CactiErrorHandler()
My php.ini :
date.timezone = America/Denver
; For Cacti spikekill
;memory_limit = 1024M ; Maximum amount of memory a script may consume
memory_limit = 2048M ; Maximum amount of memory a script may consume
max_execution_time = 90
; eric angry about files in /tmp
session.save_path = "/var/tmp/php_session_data"
;
; hide php version in http headers
expose_php = False
; 20190921 - schoelle - added to fix login problems for Cacti new install.
; strange how this was missing for years and didn't really have problems?
[session]
session.auto_start=On
Cheers,
The text was updated successfully, but these errors were encountered:
I disabled the session autostart and the messages went away. So, that's good:) Maybe a check for that setting in the installer would be worthwhile. Dunno if it's worth the hassle though. I don't think it's on by default.
TheWitness
changed the title
Ignoring session_start()
Issues with Cacti login when session_autostart is configured in php.ini
Sep 29, 2020
Correct, and good point. We should open a feature request to block it.
netniV
changed the title
Issues with Cacti login when session_autostart is configured in php.ini
When PHP Session is set to autostart, an error can be reported as Cacti attempts to start it
Nov 2, 2020
I had previously upgraded from 1.2.9 to 1.2.11. Then I backed out. Now I've upgraded to 1.2.14. I'm getting a lot of these errors now:
My php.ini :
Cheers,
The text was updated successfully, but these errors were encountered: