Ad Widget

Collapse

Zabbix 4.0 compatible with PHP 7.3 ?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • oitss
    Member
    • Dec 2013
    • 62

    #1

    Zabbix 4.0 compatible with PHP 7.3 ?


    OEL 7.3, Zabbix 4.0.5, PHP 7.3.2 buiil by Remi

    The first attempt to load Zabbix dashboard ends with 500 Error

    [Tue Feb 26 09:16:56.233645 2019] [php7:error] [pid 17822] [client x.x.x.x:58709] PHP Fatal e
    rror: Uncaught Error: Unsupported operand types in /usr/share/zabbix/include/classes/core/ZBase.
    php:111\nStack trace:\n#0 /usr/share/zabbix/include/classes/core/ZBase.php(119): ZBase->init()\n#
    1 /usr/share/zabbix/include/config.inc.php(33): ZBase->run('default')\n#2 /usr/share/zabbix/jsrpc
    .php(42): require_once('/usr/share/zabb...')\n#3 {main}\n thrown in /usr/share/zabbix/include/cl
    asses/core/ZBase.php on line 111, referer: http://x.x.x.x /zabbix/zabbix.php?action=dashboard.
    view&ddreset=1

    The second attempt and all others proceed without any problem.

    The problem can be solved by disabling Opcache. (opcache.enable=0)
  • kloczek
    Senior Member
    • Jun 2006
    • 1771

    #2
    Originally posted by oitss
    The problem can be solved by disabling Opcache. (opcache.enable=0)
    As you see this is Opcache issue.
    Nevertheless instead using Opcache better switch to nginx and php-fpm. Instead 10-15% improved performance you will have +2 times faster webfrontend.
    http://uk.linkedin.com/pub/tomasz-k%...zko/6/940/430/
    https://kloczek.wordpress.com/
    zapish - Zabbix API SHell binding https://github.com/kloczek/zapish
    My zabbix templates https://github.com/kloczek/zabbix-templates

    Comment

    • Sasha
      Zabbix developer
      • Sep 2007
      • 60

      #3
      I reported it on the our bug tracker. For details look at ZBX-16117.
      ZABBIX Developer
      Riga, Latvia

      Comment

      • oitss
        Member
        • Dec 2013
        • 62

        #4
        Thank you ! It works for me!

        Comment

        Working...