Ad Widget

Collapse

Screen littered with PHP deprecation notices

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • jancs
    Member
    • Jul 2014
    • 30

    #1

    Screen littered with PHP deprecation notices

    Hi!
    having fresh install of Zabbix 5.0.42 after login in Zabbix frontend I get screen littered with such messages:
    • Creation of dynamic property CTag::$attributes is deprecated [zabbix.php:21 → require_once() → ZBase->run() → ZBase->processRequest() → ZBase->processResponseFinal() → CView->getOutput() → include() → CWidget->show() → CWidget->toString() → CTag->__construct() in include/classes/html/CTag.php:34]
    • Creation of dynamic property CTag::$tagname is deprecated [zabbix.php:21 → require_once() → ZBase->run() → ZBase->processRequest() → ZBase->processResponseFinal() → CView->getOutput() → include() → CWidget->show() → CWidget->toString() → CTag->__construct() in include/classes/html/CTag.php:35]
    • Creation of dynamic property CTag::$paired is deprecated [zabbix.php:21 → require_once() → ZBase->run() → ZBase->processRequest() → ZBase->processResponseFinal() → CView->getOutput() → include() → CWidget->show() → CWidget->toString() → CTag->__construct() in include/classes/html/CTag.php:36]
    • Creation of dynamic property CScriptTag::$attributes is deprecated [zabbix.php:21 → require_once() → ZBase->run() → ZBase->processRequest() → ZBase->processResponseFinal() → CView->getOutput() → include() → CScriptTag->__construct() → CTag->__construct() in include/classes/html/CTag.php:34]
    • Creation of dynamic property CScriptTag::$tagname is deprecated [zabbix.php:21 → require_once() → ZBase->run() → ZBase->processRequest() → ZBase->processResponseFinal() → CView->getOutput() → include() → CScriptTag->__construct() → CTag->__construct() in include/classes/html/CTag.php:35]
    • Creation of dynamic property CScriptTag::$paired is deprecated [zabbix.php:21 → require_once() → ZBase->run() → ZBase->processRequest() → ZBase->processResponseFinal() → CView->getOutput() → include() → CScriptTag->__construct() → CTag->__construct() in include/classes/html/CTag.php:36]
    • Creation of dynamic property CScriptTag::$attributes is deprecated [zabbix.php:21 → require_once() → ZBase->run() → ZBase->processRequest() → ZBase->processResponseFinal() → CView->getOutput() → include() → CScriptTag->__construct() → CTag->__construct() in include/classes/html/CTag.php:34]
    • Creation of dynamic property CScriptTag::$tagname is deprecated [zabbix.php:21 → require_once() → ZBase->run() → ZBase->processRequest() → ZBase->processResponseFinal() → CView->getOutput() → include() → CScriptTag->__construct() → CTag->__construct() in include/classes/html/CTag.php:35]
    • Creation of dynamic property CScriptTag::$paired is deprecated [zabbix.php:21 → require_once() → ZBase->run() → ZBase->processRequest() → ZBase->processResponseFinal() → CView->getOutput() → include() → CScriptTag->__construct() → CTag->__construct() in include/classes/html/CTag.php:36]
    etc.
    PHP 8.3.9. How to get rid of them staying with Zabbix version 5? Downgrade of PHP, while not very welcome, is an option, if helps.
  • MRedbourne
    Senior Member
    • Feb 2023
    • 103

    #2
    2 Requirements (zabbix.com)

    Click image for larger version  Name:	image.png Views:	0 Size:	51.6 KB ID:	488257

    So, either downgrade PHP to 7.2 or upgrade Zabbix to 6.0, 6.4 or 7.0. Preference here would be to upgrade Zabbix to 7.0, given 5.0 is EOL. If you need an interim step, go to 6.0 LTS. It's under active support for another 7 months with security patches for 2yrs 7mos.

    Edit: Also -> 8 Upgrade procedure (zabbix.com)

    Zabbix 6.0.26 or higher support PHP 8.3.
    Zabbix 6.4.11 supports PHP 8.3
    Last edited by MRedbourne; 25-07-2024, 06:28.

    Comment

    • jancs
      Member
      • Jul 2014
      • 30

      #3
      I gave up trying to live with the compact version of Zabbix (v5) as php 7 can not be compiled on Slackware64-current any longer, so I installed 7.0.1. Hope, for my active lifetime it will be enough staying with 7 LTS

      Comment

      Working...