-
Problem report
-
Resolution: Duplicate
-
Trivial
-
5.2.1
-
None
-
Sprint 71 (Dec 2020), Sprint 72 (Jan 2021), Sprint 73 (Feb 2021), Sprint 74 (Mar 2021), Sprint 75 (Apr 2021), Sprint 76 (May 2021), Sprint 77 (Jun 2021)
Steps to reproduce:
- Disable guest access in Administration -> User groups, if it's enabled.
- Enable frontend messaging, if not enabled.
- Open log file of your web server (e.g., tail -f /var/log/apache2/error.log)
- Duplicate the browser tab
- Sign out in one of the browser tabs
- Wait 30-60 seconds.
Result:
See log file of web server. A following error is shown:
[Tue Dec 22 14:55:43.166743 2020] [php7:error] [pid 11218] [client 192.168.0.191:57130] PHP Fatal error: Uncaught Error: Unsupported operand types in /home/vladimirs/work/branches/5.2/ui/include/classes/helpers/CSettingsHelper.php:99\nStack trace:\n#0 /home/vladimirs/work/branches/5.2/ui/include/classes/helpers/CConfigGeneralHelper.php(47): CSettingsHelper::loadParams('ok_period', false)\n#1 /home/vladimirs/work/branches/5.2/ui/app/controllers/CControllerNotificationsGet.php(32): CConfigGeneralHelper::get('ok_period')\n#2 /home/vladimirs/work/branches/5.2/ui/include/classes/mvc/CController.php(64): CControllerNotificationsGet->init()\n#3 /home/vladimirs/work/branches/5.2/ui/include/classes/core/ZBase.php(511): CController->__construct()\n#4 /home/vladimirs/work/branches/5.2/ui/include/classes/core/ZBase.php(207): ZBase->processRequest(Object(CRouter))\n#5 /home/vladimirs/work/branches/5.2/ui/include/config.inc.php(25): ZBase->run('default')\n#6 /home/vladimirs/work/branches/5.2/ui/zabbix.php(22): require_once('/home/vladimirs...')\n#7 {main}\n thrown in /home/vladimirs/work/branches/5.2/ui/include/classes/helpers/CSettingsHelper.php on line 99, referer: http://zabbix/branches/5.2/ui/zabbix.php?name=&ip=&dns=&port=&status=-1&evaltype=0&tags%5B0%5D%5Btag%5D=&tags%5B0%5D%5Boperator%5D=0&tags%5B0%5D%5Bvalue%5D=&maintenance_status=1&filter_name=&filter_show_counter=0&filter_custom_time=0&sort=name&sortorder=ASC&show_suppressed=0&action=host.view
Expected:
No fatal errors happen in this case, and also in other possible places.
- caused by
-
ZBXNEXT-82 support of 'local' config files
- Closed
- causes
-
ZBXNEXT-6387 Limit access to session_key from settings.get
- Closed
- duplicates
-
ZBX-19272 Runtime errors of CSettingsHelper
- Closed
- is duplicated by
-
ZBX-19003 Unsupported operand types in CSettingsHelper:99
- Closed