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

Drop down menus empty due to "Template is not a constructor"

    XMLWordPrintable

Details

    • Problem report
    • Status: Closed
    • Trivial
    • Resolution: Won't fix
    • 5.0.20, 5.4.10
    • None
    • Templates (T)
    • PHP 7.4 and nginx on Ubuntu 20.04 LTS.
      Zabbix version & NGINX config: https://pastebin.com/2N21n88E
      Same issue occurs with 5.0 LTS version.
    • Team A
    • Sprint 85 (Feb 2022), Sprint 86 (Mar 2022), Sprint 87 (Apr 2022)
    • 0.5

    Description

      Steps to reproduce:

      1. Install Zabbix following the official guide (Download and install Zabbix 5.4 for Ubuntu 20.04 (Focal), MySQL, NGINX)
        1. Note: I moved the nginx config to /etc/nginx/sites-available and symlink-ed it to /etc/nginx/sites-enabled
        2. I also setup SSL and added a PHP option to increase max upload size.
        3. You can find the nginx config [here|{_}{_}https://pastebin.com/2N21n88E]
      2. Go to Database Type page
      3. Observe

      Result:
      see attachment (r198zJ.png)

      Expected:
      The database dropdown should be populated with options.

       

      Notes:

      Same issue happened when I tried to deploy the docker version of zabbix. 
      It looks like new Template is being called before template gets defined. 

      Attachments

        1. msedge_JOd6f27IGk.png
          msedge_JOd6f27IGk.png
          45 kB
        2. msedge_r7YC308MUR.png
          msedge_r7YC308MUR.png
          21 kB
        3. r198zJ.png
          r198zJ.png
          56 kB
        4. Termius_fGPP34Txcd.png
          Termius_fGPP34Txcd.png
          23 kB

        Activity

          People

            averza Andrejs Verza
            Derock Derock
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: