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

Host Mass Update - Undefined function B()

XMLWordPrintable

    • Icon: Incident report Incident report
    • Resolution: Duplicate
    • Icon: Major Major
    • None
    • 3.0.0alpha3
    • Frontend (F)
    • None
    • pre-zabbix-3.0.0alpha3-55645
      Nginx 1.9.4
      PHP 7.0.0 RC3 (PHP-FPM)
      MySQL 5.7.8

      If an Zabbix admin tryies to mass update a "Host" the following error is thrown:

      Fatal error: Uncaught Error: Call to undefined function B() in /var/www/html/zabbix.liaison.prod/include/views/configuration.host.massupdate.php:213 Stack trace: #0 /var/www/html/zabbix.liaison.prod/include/classes/mvc/CView.php(139): include() #1 /var/www/html/zabbix.liaison.prod/hosts.php(1086): CView->render() #2 {main} thrown in /var/www/html/zabbix.liaison.prod/include/views/configuration.host.massupdate.php on line 213

      Fixed the issue by removing function "B()" from line 213 in configuration.host.massupdate.php

      	->addRow([
      		(new CDiv([
      			new CLabel(
      				[(new CCheckBox('mass_replace_tpls'))->setChecked($data['mass_replace_tpls'] == 1), _('Replace')],
      				'mass_replace_tpls'
      			),
      			B(),   <=== LINE 213
      			new CLabel(
      				[(new CCheckBox('mass_clear_tpls'))->setChecked($data['mass_clear_tpls'] == 1), _('Clear when unlinking')],
      				'mass_clear_tpls'
      			)
      

            Unassigned Unassigned
            palmertree Kenneth Palmertree
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: