You are not logged in.
Pages: 1
In Debug mode I get the following error when running 0.68.2 on Windows 2003 IIS. I have loaded Graphviz and rebooted. All I get is a red x and message. I paraphased it as it is long but there are multiple unable to jump PHP errors for different indexes errors.
Any ideas on where to start....
Thanks in advance. By the way this is great software...
PHP ERROR :
Warning: mysql_result() [function.mysql-result]: Unable to jump to row 0 on MySQL result index 586 in c:\Inetpub\wwwroot\glpi\inc\dbmysql.class.php on line 117
PHP ERROR :
Warning: mysql_result() [function.mysql-result]: Unable to jump to row 0 on MySQL result index 616 in c:\Inetpub\wwwroot\glpi\inc\dbmysql.class.php on line 117
PHP ERROR :
Warning: mysql_result() [function.mysql-result]: Unable to jump to row 0 on MySQL result index 619 in c:\Inetpub\wwwroot\glpi\inc\dbmysql.class.php on line 117
PHP ERROR :
Warning: shell_exec() [function.shell-exec]: Unable to execute 'dot -Tcmapx -o C:\WINDOWS\TEMP\C72.tmp C:\WINDOWS\TEMP\C70.tmp' in c:\Inetpub\wwwroot\glpi\plugins\archires\inc\plugin_archires.functions_display.php on line 626
PHP ERROR :
Warning: filesize() [function.filesize]: stat failed for C:\WINDOWS\TEMP\C72.tmp in c:\Inetpub\wwwroot\glpi\plugins\archires\inc\plugin_archires.functions_display.php on line 630
PHP ERROR :
Warning: fread() [function.fread]: Length parameter must be greater than 0. in c:\Inetpub\wwwroot\glpi\plugins\archires\inc\plugin_archires.functions_display.php on line 630
Offline
Offline
The latest 1.4
Offline
safe mode in php.ini ? on or off ? it must me 'off'
Xavier Caillaud
Blog GLPI Infotel
Offline
It is off. I just checked...
Offline
hi bryanlaw33
I had the same problem with this plugin.
For me it's a problem with userrights. The IIS user needs the right to run cmd.exe and the rights to write into the temp dir (%windir%\temp) because the plugin creates a file in the temp dir and runs dot.exe (in console mode) to get the picture with the network architecture.
It could be a security hole to give IIS user the rights to run cmd.exe but this was the only solution that worked for me.
Offline
And i think that with IIS you can test with Wingraphviz too
Xavier Caillaud
Blog GLPI Infotel
Offline
Today I saw that after Update to version 0.68.3, the plugin no longer works, even with the modification I wrote above.
I tried Wingraphwiz but it doesn't work, too.
While using graphwiz I edited the file "plugin_archires.functions_display.php" and commented out the line "unlink($graph_name);" to see the files after dot was working.
Then I renamed the .tmp file to a .png file and I could see the picture, so there is a problem while reading the file from the temp dir.
Can you imagine where the problem could be?
Offline
Offline
In debug mode no error is shown.
I think I found the problem: the plugin works well but somewhere during reading the picture from the temp dir the UTF-8 BOM (Byte order mark) is added. In Hex it is EF BB BF. This may sound very strange but Windows can't work with files that start with this bytes.
When I save the webpage, I get the the file image.png but can't open it. But when I edit this picture with a hex editor and delete the UTF-8 BOM at the beginning I can open it.
Offline
I now have used ultraedit to convert all the files used by the plugin from UTF-8 to ascii format, even the included files ($phproot . "/inc/) .
Then I only had to solve one last problem with the file "/inc/common.function.php" because on line 246 there was a newline that wasn't converted the right way and now it works fine.
It's a really nice plugin, thanx for that.
Offline
I have the solution for archires and IIS. Do you want it ?
Xavier Caillaud
Blog GLPI Infotel
Offline
Pages: 1