Page 1 of 1

ssl_error_log: PHP Warning: session_name(): Cannot change

Posted: Fri May 08, 2020 2:58 am
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

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

Posted: Fri May 08, 2020 11:55 am
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