Skip to content

When PHP Session is set to autostart, an error can be reported as Cacti attempts to start it #3815

@eschoeller

Description

@eschoeller

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,

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugUndesired behaviourresolvedA fixed issue

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions