Menu

Icons not showed correctly

Help
2011-05-04
2012-12-15
  • Marc Franquesa

    Marc Franquesa - 2011-05-04

    I just installed php-cmdb and the apps work well, but I cannot see any icon.

    I tried both IE8 and Firefox browsers on Linux and Windows and the only that says something is Firefox that states "The image contains errors and cannot be displayed".

    PHP-CMDB is running on a LAMP using Debian Stable (Squeeze) and PHP 5.3.3 with GD support. I see the cached versions of the images on /tmp and they are good PNG files, but when the images are sent to the browser via view_icon.php something goes wrong.

     
  • Michael Scheibe

    Michael Scheibe - 2011-05-05

    I have not tested php-cmdb on php 5.3. Please have a look onto the logs of your web-server (apache) for errors or warnings of the php engine. Maybe you have to activate the error reporting in /etc/php.ini, to see erors and warnings.

     
  • Marc Franquesa

    Marc Franquesa - 2011-05-05

    Sorry, but I have error reporting enabled on apache logs (E_ALL and E_DEPRECATED) and doesn't appear any error on the log about cmdb.

     
  • Michael Scheibe

    Michael Scheibe - 2011-05-05

    I have installed a small system with debian 6.0.1, apache, php (inkl. gd) and mysql. I installed php-cmdb 0.6.5 as descriped in the documentation. And sorry, all works fine.

    So please check your installation. Have a look on php-cmdb in the menu "Administration / Setup Check". All checks should be ok.

    Than please give a step-by-step description, so I can reproduce the error.

     
  • Marc Franquesa

    Marc Franquesa - 2011-05-23

    Okey.

    As the cached files on /tmp/ are good PNG icons I belive that the problem may be in some of the web servers configuration or response headers. So, I downloaded the 'invalid' icon and hex-compared with the cached ones.

    I found that all of them (the cached and the web downloaded) are almost the same except in that the invalid icons have and extra '0A' byte as the first byte of the file. If I remove the first byte then the file is a correct PNG file.

    Do you know or have any hint on what can cause this behaviour?

    Thanks.

     
  • Michael Scheibe

    Michael Scheibe - 2011-05-26

    The extra '0A' is a good hint. Please have a look into your config.inc.php: it must close with '?>' and without any other character following. I presume, there is a line feed.
    The best way is, to delete the '?>' at the end. It was usual in the past, but it's a source of trouble.

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.