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

Undefined function gzdeflate() error

    XMLWordPrintable

Details

    • Incident report
    • Status: Open
    • Trivial
    • Resolution: Unresolved
    • 5.0.3
    • None
    • Frontend (F), Packages (C)
    • SUSE Linux, PHP 7.2
    • Team A
    • 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), Sprint 78 (Jul 2021), Sprint 79 (Aug 2021), Sprint 80 (Sep 2021), Sprint 81 (Oct 2021), Sprint 82 (Nov 2021), Sprint 83 (Dec 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

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

            Dates

              Created:
              Updated: