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

Unable to edit or add host: Error: cannot call methods on autocomplete prior to initialization; attempted to call method 'off'

XMLWordPrintable

    • Sprint 64 (May 2020), Sprint 65 (Jun 2020)
    • 2

      On 5.0~rc1 I'm unable to edit or add host. Both Firefox and Chromium throw the following Javascript error to dev console:

      Error: cannot call methods on autocomplete prior to initialization; attempted to call method 'off'
      
      jsLoader.php?ver=5.0.0rc1&lang=en_GB&showGuiMessaging=1:306 Uncaught Error: cannot call methods on autocomplete prior to initialization; attempted to call method 'off'
          at Function.error (jsLoader.php?ver=5.0.0rc1&lang=en_GB&showGuiMessaging=1:306)
          at HTMLInputElement.<anonymous> (jsLoader.php?ver=5.0.0rc1&lang=en_GB&showGuiMessaging=1:10612)
          at Function.each (jsLoader.php?ver=5.0.0rc1&lang=en_GB&showGuiMessaging=1:355)
          at jQuery.fn.init.each (jsLoader.php?ver=5.0.0rc1&lang=en_GB&showGuiMessaging=1:190)
          at jQuery.fn.init.$.fn.<computed> [as autocomplete] (jsLoader.php?ver=5.0.0rc1&lang=en_GB&showGuiMessaging=1:10602)
          at new jQuery.fn.init (jsLoader.php?ver=5.0.0rc1&lang=en_GB&showGuiMessaging=1:2958)
          at jQuery (jsLoader.php?ver=5.0.0rc1&lang=en_GB&showGuiMessaging=1:140)
          at makeMultiSelectInput (jsLoader.php?ver=5.0.0rc1&lang=en_GB&files[0]=multiselect.js&files[1]=textareaflexible.js&files[2]=class.cviewswitcher.js&files[3]=class.cverticalaccordion.js&files[4]=inputsecret.js&files[5]=macrovalue.js&files[6]=servercheck.js:468)
          at HTMLDivElement.<anonymous> (jsLoader.php?ver=5.0.0rc1&lang=en_GB&files[0]=multiselect.js&files[1]=textareaflexible.js&files[2]=class.cviewswitcher.js&files[3]=class.cverticalaccordion.js&files[4]=inputsecret.js&files[5]=macrovalue.js&files[6]=servercheck.js:381)
          at Function.each (jsLoader.php?ver=5.0.0rc1&lang=en_GB&showGuiMessaging=1:355)
          at jQuery.fn.init.each (jsLoader.php?ver=5.0.0rc1&lang=en_GB&showGuiMessaging=1:190)
          at jQuery.fn.init.$.fn.multiSelect (jsLoader.php?ver=5.0.0rc1&lang=en_GB&files[0]=multiselect.js&files[1]=textareaflexible.js&files[2]=class.cviewswitcher.js&files[3]=class.cverticalaccordion.js&files[4]=inputsecret.js&files[5]=macrovalue.js&files[6]=servercheck.js:322)
          at HTMLDocument.<anonymous> (hosts.php?form=update&hostid=10104:842)
          at mightThrow (jsLoader.php?ver=5.0.0rc1&lang=en_GB&showGuiMessaging=1:3535)
          at process (jsLoader.php?ver=5.0.0rc1&lang=en_GB&showGuiMessaging=1:3603)
      

      This error makes it impossible to change current tab to 'Tags', 'Macros', 'Inventory', etc.

      This is under PHP7.3.

            talbergs Mārtiņš Tālbergs (Inactive)
            onlyjob Dmitry Smirnov
            Team B
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated:
              Resolved: