Ad Widget

Collapse

Zabbix 6.0 PHP Fatal Error Latest Data page

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • iconicnetworks
    Member
    • Feb 2022
    • 34

    #1

    Zabbix 6.0 PHP Fatal Error Latest Data page

    Hi All,

    This has only started happening after Zabbix 6.0 upgrade. Seemingly everything else works just fine, with no issues (apart from our other topic re weird high bandwidth.)

    However when clicking on 'Latest Data' on either an item or from main menu we get a blank screen, and apache2 log shows:

    [php7:error] [pid 1066] [client x.x.x.x:61105] PHP Fatal error: Uncaught Error: Call to undefined method CMacrosResolverHelper::resolveItemNames() in /usr/share/zabbix/modules/zabbix-module-latest-data/actions/CControllerBGLatest.php:226\nStack trace:\n#0 /usr/share/zabbix/modules/zabbix-module-latest-data/actions/CControllerBGLatestView.php(163): Modules\\BGmotLD\\Actions\\CControllerBGLatest->extendData()\n#1 /usr/share/zabbix/include/classes/mvc/CController.php(465): Modules\\BGmotLD\\Actions\\CControllerBGLatestView->doAction()\n#2 /usr/share/zabbix/include/classes/core/ZBase.php(526): CController->run()\n#3 /usr/share/zabbix/include/classes/core/ZBase.php(210): ZBase->processRequest()\n#4 /usr/share/zabbix/include/config.inc.php(25): ZBase->run()\n#5 /usr/share/zabbix/zabbix.php(22): require_once('/usr/share/zabb...')\n#6 {main}\n thrown in /usr/share/zabbix/modules/zabbix-module-latest-data/actions/CControllerBGLatest.php on line 226, referer: http://zx01.r1.globserv.x.x.x/zabbix...dashboard.view

    I thought this might be PHP-JSON so updated and installed the libs, no change.

    Nothing in the zabbix_server.log file to show anything else happening at this time.

    Thanks
  • cyber
    Senior Member
    Zabbix Certified SpecialistZabbix Certified Professional
    • Dec 2006
    • 4807

    #2
    PHP version?
    requirements say:
    PHP 7.2.5 or later PHP 8.0 is not supported.
    I can see php7 in the beginning of line, but no further version....

    Comment

    • iconicnetworks
      Member
      • Feb 2022
      • 34

      #3
      Running PHP 7.4.3 currently:

      PHP 7.4.3 (cli) (built: Nov 25 2021 23:16:22) ( NTS )

      Comment

      • iconicnetworks
        Member
        • Feb 2022
        • 34

        #4
        Just for good measure here we've tried removing and reinstalling PHP 7.4 with all latest libraries, no change unfortunately.

        Comment

        • cyber
          Senior Member
          Zabbix Certified SpecialistZabbix Certified Professional
          • Dec 2006
          • 4807

          #5
          Originally posted by Dorcas
          What version of Zabbix is this with?
          And what version of PHP?
          Its all up there written down..

          Comment

          • iconicnetworks
            Member
            • Feb 2022
            • 34

            #6
            We've tried different combinations within PHP.INI including the defaults, and custom values which have worked through Version 5.4 without issue. This issue only seems to have developed post V6.0 upgrade.

            Comment

            • markfree
              Senior Member
              • Apr 2019
              • 868

              #7
              It seems the issue there is not with Zabbix frontend, but with the "zabbix-module-latest-data".
              Are you using this module from Github?

              Maybe you could open an "issue" with the module's author.

              Comment

              • chab.narong
                Junior Member
                • Feb 2022
                • 2

                #8
                Is there any good news about this issue?

                Comment

                • iconicnetworks
                  Member
                  • Feb 2022
                  • 34

                  #9
                  Hi All. A good spot by markfree caught this. It seemed even with this module disabled the problem persisted though, and after clearing web cache. We completely removed the modules directory for this data render plugin, and then restarted the web server and the default Latest Data page appeared again.

                  By way of an update too, the revised plugin does now work fully in Zabbix 6.0 https://github.com/BGmot/zabbix-module-latest-data

                  Comment

                  • okmean
                    Junior Member
                    • Feb 2022
                    • 1

                    #10
                    Im still stuck with the same problem...

                    Comment

                    Working...