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

Frontend installation page is broken if php-bcmath is missing

XMLWordPrintable

    • Icon: Problem report Problem report
    • Resolution: Duplicate
    • Icon: Trivial Trivial
    • None
    • None
    • Frontend (F)
    • None
    • PHP 7.3.4 (cli) (built: Apr 2 2019 13:48:50) ( NTS )
      Copyright (c) 1997-2018 The PHP Group
      Zend Engine v3.3.4, Copyright (c) 1998-2018 Zend Technologie

      Delete php-bcmath and try to perform frontend installation "frontends/php/setup.php", use case is new installation

      Expected:
      Warns that php-bcmath is missing

      Actual:
      Empty setup page and the error in log file:

      PHP Fatal error:  Uncaught Error: Call to undefined function bccomp() in /var/www/html/zabbix/frontends/php/include/classes/setup/CFrontendSetup.php:123
      

      Notice that since ZBX-15464 it is no longer possible to perform setup if
      php-bcmath is missing due to bccomp being used in setup process itself before checking if it exists.

      This results in following error in the log and empty setup page, also strange code to check bcmatch existence after it was already used and misleading documentation that does mention that it is required to install php-bcmath before starting installation.

            Unassigned Unassigned
            vso Vladislavs Sokurenko
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: