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

Cannot add new item on Map

    XMLWordPrintable

Details

    • Incident report
    • Status: Closed
    • Major
    • Resolution: Cannot Reproduce
    • 1.8
    • None
    • Frontend (F)
    • None

    Description

      I installed new system.
      and make new map, add items. works fine.

      update my system (yum -y upgrade)

      add item to map... did not display icon.

      httpd/error_log
      [error] [client 10.1.88.1] PHP Fatal error: imagecreatefromstring() [<a href='function.imagecreatefromstring'>function.imagecreatefromstring</a>]: gd-png: fatal libpng error: Read Error: truncated data in /usr/local/share/zabbix/imgstore.php on line 52, referer: http://10.1.88.18/zabbix/sysmap.php?sysmapid=2&sid=66755934705a89a0

      --------

      so I edit imgstore.php on line 52

      • $ico = imagecreatefromstring($image['image']);
        + $ico = imagecreatefrompng('images/sysmaps/'.$image['name'].'.png');

      ---------

      Attachments

        Activity

          People

            Unassigned Unassigned
            synec Rhee Jong Ho
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: