ssl_error_log: PHP Warning: session_name(): Cannot change

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
jweijters
Posts: 63
Joined: Thu Feb 06, 2020 3:50 am

ssl_error_log: PHP Warning: session_name(): Cannot change

Post by jweijters »

We upgraded PHP from 5.6 to 7.2.
The upgrade went fine, we checked the php.ini to sync the different parameters.

However now or ssl_error_log is filling up with these messages:

[Fri May 08 09:46:27.238751 2020] [php7:warn] [pid 2003:tid 140395904202496] [client 1.2.3.4:9703] PHP Warning: session_name(): Cannot change session name when session is active in /usr/local/nagiosxi/html/includes/utils.inc.php on line 84, referer: https://nagiosxi.anonymous.nl/nagiosxi/

I anonymised the IP and URL in the message

can you please help me getting this fixed?

kind regards,
Joris Weijters
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: ssl_error_log: PHP Warning: session_name(): Cannot chan

Post by ssax »

Looks like this is what's occurring:

https://stackoverflow.com/a/47731428

I will need to submit this to development.

If you want to get rid of the warnings, edit your /etc/php.ini and add this to the end of your error_reporting value:

Code: Select all

& ~E_NOTICE & ~E_WARNING
Then restart apache:

Code: Select all

service httpd restart
Locked