-
Problem report
-
Resolution: Unresolved
-
Trivial
-
None
-
4.4.3
-
CentOS 7.7.1908
Nginx 1.16.1
PHP 7.1.33
Session Support => enabled
Registered save handlers => files user redis rediscluster
Registered serializer handlers => php_serialize php php_binary wddx
Directive => Local Value => Master Value
session.auto_start => Off => Off
session.cache_expire => 180 => 180
session.cache_limiter => nocache => nocache
session.cookie_domain => no value => no value
session.cookie_httponly => On => On
session.cookie_lifetime => 0 => 0
session.cookie_path => / => /
session.cookie_secure => Off => Off
session.gc_divisor => 1000 => 1000
session.gc_maxlifetime => 14400 => 14400
session.gc_probability => 1 => 1
session.lazy_write => On => On
session.name => PHPSESSID => PHPSESSID
session.referer_check => no value => no value
session.save_handler => files => files
session.save_path => /tmp => /tmp
session.serialize_handler => php => php
session.sid_bits_per_character => 5 => 5
session.sid_length => 26 => 26
session.upload_progress.cleanup => On => On
session.upload_progress.enabled => On => On
session.upload_progress.freq => 1% => 1%
session.upload_progress.min_freq => 1 => 1
session.upload_progress.name => PHP_SESSION_UPLOAD_PROGRESS => PHP_SESSION_UPLOAD_PROGRESS
session.upload_progress.prefix => upload_progress_ => upload_progress_
session.use_cookies => On => On
session.use_only_cookies => On => On
session.use_strict_mode => Off => Off
session.use_trans_sid => 0 => 0
CentOS 7.7.1908 Nginx 1.16.1 PHP 7.1.33 Session Support => enabled Registered save handlers => files user redis rediscluster Registered serializer handlers => php_serialize php php_binary wddx Directive => Local Value => Master Value session.auto_start => Off => Off session.cache_expire => 180 => 180 session.cache_limiter => nocache => nocache session.cookie_domain => no value => no value session.cookie_httponly => On => On session.cookie_lifetime => 0 => 0 session.cookie_path => / => / session.cookie_secure => Off => Off session.gc_divisor => 1000 => 1000 session.gc_maxlifetime => 14400 => 14400 session.gc_probability => 1 => 1 session.lazy_write => On => On session.name => PHPSESSID => PHPSESSID session.referer_check => no value => no value session.save_handler => files => files session.save_path => /tmp => /tmp session.serialize_handler => php => php session.sid_bits_per_character => 5 => 5 session.sid_length => 26 => 26 session.upload_progress.cleanup => On => On session.upload_progress.enabled => On => On session.upload_progress.freq => 1% => 1% session.upload_progress.min_freq => 1 => 1 session.upload_progress.name => PHP_SESSION_UPLOAD_PROGRESS => PHP_SESSION_UPLOAD_PROGRESS session.upload_progress.prefix => upload_progress_ => upload_progress_ session.use_cookies => On => On session.use_only_cookies => On => On session.use_strict_mode => Off => Off session.use_trans_sid => 0 => 0
Steps to reproduce:
- Upgraded server and agent from 2.4 to 3.4, everything seemed to work fine.
- Login
- Displays error at bottom off dashboard and top or bottom of all other pages I tried.
session_start(): Setting option 'use_cookies' failed [zabbix.php:21 → require_once() → ZBase->run() → ZBase->processRequest() → CView->getOutput() → include() → local_showMessage() → CSession::keyExists() → CSession::open() → session_start() in include/classes/core/CSession.php:145] session_start(): Setting option 'use_cookies' failed [zabbix.php:21 → require_once() → ZBase->run() → ZBase->processRequest() → CView->getOutput() → include() → local_showMessage() → CSession::keyExists() → CSession::open() → session_start() in include/classes/core/CSession.php:145]
- So I tried the latest version... Upgraded server and agent from 3.4 to 4.4, everything seemed to work fine.
- Login
- Still displays error at bottom off dashboard and top or bottom of all other pages I tried.
Result:
Expected:
No session_start() errors.
I was able to disable this error message by modifying /usr/share/zabbix/include/classes/core/CSession.php and commenting out line 148, ($options = ['use_cookies' => 0]). I don't understand the use of a static variable in a private static function .