Uploaded image for project: 'ZABBIX BUGS AND ISSUES'
  1. ZABBIX BUGS AND ISSUES
  2. ZBX-18799

PHP fatal error happens if working with multiple browser tabs was made logout

    XMLWordPrintable

Details

    • Problem report
    • Status: Closed
    • Trivial
    • Resolution: Duplicate
    • 5.2.1
    • 6.0 (plan)
    • API (A), Frontend (F)
    • 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)

    Description

      Steps to reproduce:

      1. Disable guest access in Administration -> User groups, if it's enabled.
      2. Enable frontend messaging, if not enabled.
      3. Open log file of your web server (e.g., tail -f /var/log/apache2/error.log)
      4. Duplicate the browser tab
      5. Sign out in one of the browser tabs
      6. 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.

      Attachments

        Issue Links

          Activity

            People

              zabbix.dev Zabbix Development Team
              vmaksimovs Vladimirs Maksimovs
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: