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

    • Icon: Problem report Problem report
    • Resolution: Won't fix
    • Icon: Trivial Trivial
    • None
    • 5.0.20, 5.4.10
    • 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

      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. 

        1. image-2022-06-17-06-46-42-763.png
          image-2022-06-17-06-46-42-763.png
          69 kB
        2. msedge_JOd6f27IGk.png
          msedge_JOd6f27IGk.png
          45 kB
        3. msedge_r7YC308MUR.png
          msedge_r7YC308MUR.png
          21 kB
        4. r198zJ.png
          r198zJ.png
          56 kB
        5. Termius_fGPP34Txcd.png
          Termius_fGPP34Txcd.png
          23 kB

            averza Andrejs Verza
            Derock Derock
            Team A
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: