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

PHP Fatal error: Uncaught Error: Call to undefined function mb_strlen

XMLWordPrintable

    • Icon: Incident report Incident report
    • Resolution: Won't fix
    • Icon: Trivial Trivial
    • None
    • 3.0.10
    • Frontend (F)
    • None
    • Sprint 16

      Installed zabbix frontend on minimal ubuntu setup with no php libs.
      Got empty 500 page without any info.
      Logs:

      [error] 22244#22244: *16 FastCGI sent in stderr: "PHP message: PHP Fatal error:  Uncaught Error: Call to undefined function mb_strlen() in /opt/zabbix/frontends/3.0.10/include/classes/user/CProfile.php:330
      Stack trace:
      #0 /opt/zabbix/frontends/3.0.10/include/classes/user/CProfile.php(214): CProfile::checkValueType('index.php', 3)
      #1 /opt/zabbix/frontends/3.0.10/include/menu.inc.php(389): CProfile::update('web.menu.login....', 'index.php', 3)
      #2 /opt/zabbix/frontends/3.0.10/include/page_header.php(127): zbx_construct_menu(Array, Array, Array)
      #3 /opt/zabbix/frontends/3.0.10/include/views/general.login.php(29): require_once('/opt/zabbix/fro...')
      #4 /opt/zabbix/frontends/3.0.10/include/classes/mvc/CView.php(139): include('/opt/zabbix/fro...')
      #5 /opt/zabbix/frontends/3.0.10/index.php(120): CView->render()
      #6 {main}
        thrown in /opt/zabbix/frontends/3.0.10/include/classes/user/CProfile.php on line 330" while reading response header from upstream, client: 192.168.1.2, server: _, request: "GET / HTTP/1.1", upstream: "fastcgi://unix:/run/php/php7.0-fpm.sock:", host: "192.168.1.2"
      

      I think, it would be better if users can see error about missing mb_strlen right on web page (maybe on the checklist page?).

      Sorry if it's duplicate, couldn't find actual one.

            Unassigned Unassigned
            ableev Ilya Ableev
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: