Ad Widget

Collapse

zabbix 5.2.5 and php 7.4 PHP Fatal error: Uncaught Error: Unsupported operand types

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Frederico
    Junior Member
    • Jun 2010
    • 9

    #1

    zabbix 5.2.5 and php 7.4 PHP Fatal error: Uncaught Error: Unsupported operand types

    Running zabbix 5.2.5 with php 7.4 i have this error

    [Sun Mar 07 08:21:42.102311 2021] [php7:error] [pid 6286] [client XXX.XXX.XXX:42874] PHP Fatal error: Uncaught Error: Unsupported operand types in /srv/www/zabbix-5.2.5/include/classes/helpers/CSettingsHelper.php:99\nStack trace:\n#0 /srv/www/zabbix-5.2.5/include/classes/helpers/CConfigGeneralHelper.php(47): CSettingsHelper::loadParams()\n#1 /srv/www/zabbix-5.2.5/app/controllers/CControllerNotificationsGet.php(32): CConfigGeneralHelper::get()\n#2 /srv/www/zabbix-5.2.5/include/classes/mvc/CController.php(64): CControllerNotificationsGet->init()\n#3 /srv/www/zabbix-5.2.5/include/classes/core/ZBase.php(515): CController->__construct()\n#4 /srv/www/zabbix-5.2.5/include/classes/core/ZBase.php(211): ZBase->processRequest()\n#5 /srv/www/zabbix-5.2.5/include/config.inc.php(25): ZBase->run()\n#6 /srv/www/zabbix-5.2.5/zabbix.php(22): require_once('/srv/www/zabbix...')\n#7 {main}\n thrown in /srv/www/zabbix-5.2.5/include/classes/helpers/CSettingsHelper.php on line 99, referer: https://srv-mon-01.ispti.com.br/zabb...dashboard.view

    php7.4 -v
    PHP 7.4.16 (cli) (built: Mar 5 2021 08:36:10) ( NTS )
    Copyright (c) The PHP Group
    Zend Engine v3.4.0, Copyright (c) Zend Technologies
    with Zend OPcache v7.4.16, Copyright (c), by Zend Technologies

    Not the same, but i try follow

    without success

    Try disable opcache.enable=0
    and change "opcache.optimization_level" parameter to 0x7FFFBFDF


    Any ideias or solutions ?

  • Frederico
    Junior Member
    • Jun 2010
    • 9

    #2
    Sorry, an error returned when posting. I redid the post and duplicated it

    Comment

    • ebkjiud
      Junior Member
      • Mar 2021
      • 1

      #3

      Comment

      • Frederico
        Junior Member
        • Jun 2010
        • 9

        #4
        Sorry the long time ... but this not work ..

        Running zabbix 5.4beta3 with same error .....

        try php 7.2, 7.3 and 7.4 .16
        All with
        opcache.enable Off Off
        opcache.enable_cli Off Off
        opcache.enable_file_override Off Off
        PHP Fatal error: Uncaught Error: Unsupported operand types in /srv/www/zabbix-5.4.0beta3/include/classes/helpers/CSettingsHelper.php:101\nStack trace:\n#0 /srv/www/zabbix-5.4.0beta3/include/classes/helpers/CConfigGeneralHelper.php(47): CSettingsHelper::loadParams('ok_period', false)\n#1 /srv/www/zabbix-5.4.0beta3/app/controllers/CControllerNotificationsGet.php(32): CConfigGeneralHelper::get('ok_period')\n#2 /srv/www/zabbix-5.4.0beta3/include/classes/mvc/CController.php(64): CControllerNotificationsGet->init()\n#3 /srv/www/zabbix-5.4.0beta3/include/classes/core/ZBase.php(533): CController->__construct()\n#4 /srv/www/zabbix-5.4.0beta3/include/classes/core/ZBase.php(215): ZBase->processRequest(Object(CRouter))\n#5 /srv/www/zabbix-5.4.0beta3/include/config.inc.php(25): ZBase->run('default')\n#6 /srv/www/zabbix-5.4.0beta3/zabbix.php(22): require_once('/srv/www/zabbix...')\n#7 {main}\n thrown in /srv/www/zabbix-5.4.0beta3/include/classes/helpers/CSettingsHelper.php on line 101, referer: https://srv-mon-01.ispti.com.br/zabb...dashboard.view


        Any ideias ?

        Zabbix 5.0.5 with php 7.4.12 is working ok

        Comment

        Working...