Ad Widget

Collapse

Error on editing Graphs for Systems on ZABBIX 1.7.1

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • knumskull
    Junior Member
    • Oct 2009
    • 3

    #1

    Error on editing Graphs for Systems on ZABBIX 1.7.1

    Hello,

    i tried to edit the graphs for my Systems, but i got following error

    Code:
    Parse error: syntax error, unexpected ',' in /opt/zabbix/frontends/php/graphs.php on line 528
    PHP Code:
    $goBox->addItem(('copy_to',S_COPY_SELECTED_TO); 
    i changed this line to following

    PHP Code:
    $goBox->addItem(new CComboItem('copy_to',S_COPY_SELECTED_TO)); 
    after this it works, but i don't know, if my changed really correct.

    it would be nice, if someone could create a patch for this issue.

    best regards,
    steffen
  • xoft2003
    Junior Member
    • Nov 2009
    • 1

    #2
    Error on editing Graphs for Systems on ZABBIX 1.7.1

    Hi all,

    Actually there is a "typo" error "$goBox->addItem((":
    The following should be correct:
    PHP Code:
     $goBox->addItem('copy_to',S_COPY_SELECTED_TO); 
    Thank you,
    Last edited by xoft2003; 04-11-2009, 11:26. Reason: Update title

    Comment

    • richlv
      Senior Member
      Zabbix Certified Trainer
      Zabbix Certified SpecialistZabbix Certified Professional
      • Oct 2005
      • 3112

      #3
      this seems to be fixed in trunk already, as i can't reproduce the problem and source code does not contain such string in rev 8185
      Zabbix 3.0 Network Monitoring book

      Comment

      Working...