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

Undefined function gzdeflate() error

    XMLWordPrintable

    Details

    • Type: Incident report
    • Status: Open
    • Priority: Trivial
    • Resolution: Unresolved
    • Affects Version/s: 5.0.3
    • Fix Version/s: None
    • Component/s: Frontend (F), Packages (C)
    • Labels:
    • Environment:
      SUSE Linux, PHP 7.2
    • Team:
      Team A
    • Sprint:
      Sprint 67 (Aug 2020), Sprint 68 (Sep 2020), Sprint 69 (Oct 2020), Sprint 70 (Nov 2020), Sprint 71 (Dec 2020), Sprint 72 (Jan 2021), Sprint 73 (Feb 2021), Sprint 74 (Mar 2021), Sprint 75 (Apr 2021), Sprint 76 (May 2021), Sprint 77 (Jun 2021)

      Description

      Steps to reproduce:

      1. Precondition: Zlib support in PHP is not enabled
      2. Navigate to Administration -> Authentication and configure SAML settings.
      3. Logout and try to login using "Sign in with Single Sign-On (SAML)".

      Result:
      500 error.
      From PHP log:

      PHP Fatal error: Uncaught Error: Call to undefined function OneLogin\Saml2\gzdeflate() in <...>/vendor/php-saml/src/Saml2/AuthnRequest.php:188
      

      To solve the problem in SUSE Linux, separate package php-zlib must be installed.
      When installing PHP from source, it should be configured --with-zlib[=DIR].

      The error will not appear if compression of SAML requests and responses (enabled by default) is disabled using the following settings in zabbix.conf.php:

      $SSO['SETTINGS'] = [
          'compress' => [
              'requests' => false,
              'responses' => false
          ]
      ];
      

        Attachments

          Activity

            People

            Assignee:
            agriscenko Andrejs Griščenko
            Reporter:
            agriscenko Andrejs Griščenko
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Dates

              Created:
              Updated: