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.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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.
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.
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.
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.
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.
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.