Ad Widget

Collapse

Fatal error with screen and maps

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • FarreUma
    Junior Member
    • Nov 2008
    • 6

    #1

    Fatal error with screen and maps

    Hello,

    I have a question. I have a problem with the images in Zabbix. Icons, screen and maps throw the following error:

    Fatal error: imagecreatefromstring(): gd-png: fatal libpng error: [5C][00][0D]I: invalid chunk type in /var/www/html/zabbix/include/maps.inc.php on line 449

    I have been reading the forum, looking for a clue. The only thing I found is related to the path where the images are.

    My images_mysql.sql file and the tables has no path to the image, I just see a long list of characters.
    0x89…..

    I have written other pages to see if it was a library fault, but “imagecreatefromstring” works fine with other images.


    The file php.ini has the libraries .so in the correct directory and has also increased the memory limit up to 128M.

    I am running Zabbix 1.6.1 on Red Hat Enterprise Linux 4 64bit.

    Please, let me know if you need another info.

    Thank you in advance.
    Attached Files
    Last edited by FarreUma; 25-11-2008, 14:59.
  • Alexei
    Founder, CEO
    Zabbix Certified Trainer
    Zabbix Certified SpecialistZabbix Certified Professional
    • Sep 2004
    • 5654

    #2
    Perhaps you are using unsupported image format for this map? Just a guess.
    Alexei Vladishev
    Creator of Zabbix, Product manager
    New York | Tokyo | Riga
    My Twitter

    Comment

    • pastelcomqueijo
      Junior Member
      • Nov 2008
      • 1

      #3
      Fatal error: imagecreatefromstring()

      Folks,

      I,ve the same problem with my Zabbix (1.6 in FreeBSD server). The icons defaults and any other image that I uploaded:

      Fatal error: imagecreatefromstring(): gd-png: fatal libpng error: [5C][00][0D]I: invalid chunk type in /var/www/html/zabbix/image.php:56.

      I have written a page test to see if it was a library fault, but imagecreatefromstring works fine with other images.

      Anyone??


      Thank you in advance!!!

      A print screen:

      Last edited by pastelcomqueijo; 04-12-2008, 20:32.

      Comment

      • Jmd442
        Junior Member
        • Oct 2008
        • 5

        #4
        Hi had a similar problem when Installing it on ubuntu and fedora. I'm not sure this is the solution for you. When I compiled the src it saved the php files to one directory and when you install the binary It looks for another. If you copy the file from the default to the new directory It should work. I'm not terribly experienced with zabbix but that was the solution to my problem.

        Comment

        • MrPaveL
          Junior Member
          • Dec 2008
          • 3

          #5
          Originally posted by Jmd442
          Hi had a similar problem when Installing it on ubuntu and fedora. I'm not sure this is the solution for you. When I compiled the src it saved the php files to one directory and when you install the binary It looks for another. If you copy the file from the default to the new directory It should work. I'm not terribly experienced with zabbix but that was the solution to my problem.
          Did you actually fix this issue? I'm running zabbix on Archlinux and having same problem as two above me.
          Code:
          imagecreatefromstring() [<a href='function.imagecreatefromstring'>function.imagecreatefromstring</a>]: gd-png: fatal libpng error: [5C][30][0D]I: invalid chunk type[/home/httpd/html/zabbix/include/maps.inc.php:449]
          imagecreatefromstring() [<a href='function.imagecreatefromstring'>function.imagecreatefromstring</a>]: gd-png error: setjmp returns error condition[/home/httpd/html/zabbix/include/maps.inc.php:449]
          imagecreatefromstring() [<a href='function.imagecreatefromstring'>function.imagecreatefromstring</a>]: Passed data is not in 'PNG' format[/home/httpd/html/zabbix/include/maps.inc.php:449]
          imagecreatefromstring() [<a href='function.imagecreatefromstring'>function.imagecreatefromstring</a>]: Couldn't create GD Image Stream out of Data[/home/httpd/html/zabhttp://loccal.net/~mrpavel/image.pngbix/include/maps.inc.php:449]


          Is anyone able to help? I've tried to downgrade libpng, gd etc ... but without succes.

          Comment

          • MrPaveL
            Junior Member
            • Dec 2008
            • 3

            #6
            It seems to be problem related to mysql db.

            Comment

            • FarreUma
              Junior Member
              • Nov 2008
              • 6

              #7
              A drastic solution

              Hello again,

              Since I started this Post, I have been trying a lot of differents solutions. Neither of them worked. I don´t doubt that I am missing something, but I have decided to stop the problem.

              After a week being sick I restarted again with this problem with new energies.

              So, because my problem was with the icons stored in mysql database I decided to change it.

              The table images ( if I am not wrong) stores the info to build the icons, not the path where to find the icons.

              I changed the "createimagefromstring" back to createimagefrompng in include/maps.inc.php(line 449) and image.php(line 55).

              Afterwards I also changed the info stored in the field 'image' from the table 'images' to the full path to the icons on my zabbix server (/var/www/html/zabbix/images/sysmaps/xxx.png).

              It works for me, however, I don´t know if it will produce other problems.

              Thank you all for your replies, ideas and support.

              Farre
              Attached Files

              Comment

              • MrPaveL
                Junior Member
                • Dec 2008
                • 3

                #8
                Originally posted by FarreUma
                Hello again,

                Since I started this Post, I have been trying a lot of differents solutions. Neither of them worked. I don´t doubt that I am missing something, but I have decided to stop the problem.

                After a week being sick I restarted again with this problem with new energies.

                So, because my problem was with the icons stored in mysql database I decided to change it.

                The table images ( if I am not wrong) stores the info to build the icons, not the path where to find the icons.

                I changed the "createimagefromstring" back to createimagefrompng in include/maps.inc.php(line 449) and image.php(line 55).

                Afterwards I also changed the info stored in the field 'image' from the table 'images' to the full path to the icons on my zabbix server (/var/www/html/zabbix/images/sysmaps/xxx.png).

                It works for me, however, I don´t know if it will produce other problems.

                Thank you all for your replies, ideas and support.

                Farre
                Hi, it's not so elegant solution, when you're adding more images, but hell ... IT WORKs great, fixed mine prob too. You made up my day
                Maybe we should fill bug report about it, looks like zabbix problem after all, not the server side ...

                Anyway, thank you very much
                Pavel

                Comment

                Working...