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

Unsupported operand types in CSettingsHelper:99

XMLWordPrintable

    • Icon: Problem report Problem report
    • Resolution: Duplicate
    • Icon: Trivial Trivial
    • None
    • 5.2.4
    • Frontend (F)
    • None
    • Ubuntu 18.04

      After upgrading Zabbix from 5.0 to 5.2.4, our web server error logs are filled with this error:

      2021/02/11 09:30:32 [error] 71765#71765: *4792390 FastCGI sent in stderr: "PHP message: PHP Fatal error:  Uncaught Error: Unsupported operand types in /usr/share/zabbix/include/classes/helpers/CSettingsHelper.php:99
      Stack trace:
      #0 /usr/share/zabbix/include/classes/helpers/CConfigGeneralHelper.php(47): CSettingsHelper::loadParams('max_period', false)
      #1 /usr/share/zabbix/include/classes/widgets/forms/CWidgetFormSvgGraph.php(440): CConfigGeneralHelper::get('max_period')
      #2 /usr/share/zabbix/include/classes/widgets/forms/CWidgetFormSvgGraph.php(473): CWidgetFormSvgGraph::validateTimeSelectorPeriod('now-6h', 'now')
      #3 /usr/share/zabbix/app/controllers/CControllerWidget.php(118): CWidgetFormSvgGraph->validate()
      #4 /usr/share/zabbix/include/classes/mvc/CController.php(386): CControllerWidget->checkInput()
      #5 /usr/share/zabbix/include/classes/core/ZBase.php(540): CController->run()
      #6 /usr/share/zabbix/include/classes/core/ZBase.php(207): ZBase->processRequest(Object(CRouter))
      #7 /usr/share/zabbix/include/config.inc.php(25): ZBase->run('default')
      #8 /usr/share/zabbix/zabbix.php(22): r" while reading response header from upstream, client: 10.44.60.38, server: , request: "POST /zabbix/zabbix.php?sid=089d445d606d452c&action=widget.svggraph.view HTTP/1.1", upstream: "fastcgi://unix:/run/php-pool-zabbix.socket:", host: "zabbix.domain.org", referrer: "https://zabbix.domain.org/zabbix/zabbix.php?action=dashboard.view&ddreset=1"
      

      It does not only happen for dashboards, this url is affected as well:

      /zabbix/zabbix.php?action=notifications.get&output=ajax
      

            ArtursL Arturs Lontons
            kdaudt Kevin Daudt
            Votes:
            1 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: