You are not logged in.

Announcement

 Téléchargez la dernière version stable de GLPI      -     Et vous, que pouvez vous faire pour le projet GLPI ? :  Contribuer
 Download last stable version of GLPI                      -     What can you do for GLPI ? :  Contribute

#1 2007-01-19 22:42:15

bryanlaw33
Member
Registered: 2007-01-19
Posts: 6

Network Architecture Plugin problem

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

#2 2007-01-20 00:45:52

tsmr
GLPI-DEV
From: Rennes
Registered: 2005-08-26
Posts: 11,632
Website

Re: Network Architecture Plugin problem

version of archires ?


Xavier Caillaud
Blog GLPI Infotel

Offline

#3 2007-01-22 15:06:12

bryanlaw33
Member
Registered: 2007-01-19
Posts: 6

Re: Network Architecture Plugin problem

The latest 1.4

Offline

#4 2007-01-22 15:45:41

tsmr
GLPI-DEV
From: Rennes
Registered: 2005-08-26
Posts: 11,632
Website

Re: Network Architecture Plugin problem

safe mode in php.ini ? on or off ? it must me 'off'


Xavier Caillaud
Blog GLPI Infotel

Offline

#5 2007-01-22 16:09:11

bryanlaw33
Member
Registered: 2007-01-19
Posts: 6

Re: Network Architecture Plugin problem

It is off. I just checked...

Offline

#6 2007-01-23 22:43:33

the_magician
Member
Registered: 2007-01-23
Posts: 4

Re: Network Architecture Plugin problem

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

#7 2007-01-23 23:37:08

tsmr
GLPI-DEV
From: Rennes
Registered: 2005-08-26
Posts: 11,632
Website

Re: Network Architecture Plugin problem

And i think that with IIS you can test with Wingraphviz too


Xavier Caillaud
Blog GLPI Infotel

Offline

#8 2007-01-24 15:33:37

the_magician
Member
Registered: 2007-01-23
Posts: 4

Re: Network Architecture Plugin problem

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

#9 2007-01-24 17:22:58

tsmr
GLPI-DEV
From: Rennes
Registered: 2005-08-26
Posts: 11,632
Website

Re: Network Architecture Plugin problem

and in debug mode ?


Xavier Caillaud
Blog GLPI Infotel

Offline

#10 2007-01-25 16:40:55

the_magician
Member
Registered: 2007-01-23
Posts: 4

Re: Network Architecture Plugin problem

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

#11 2007-01-25 18:09:02

the_magician
Member
Registered: 2007-01-23
Posts: 4

Re: Network Architecture Plugin problem

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

#12 2007-05-25 11:28:48

tsmr
GLPI-DEV
From: Rennes
Registered: 2005-08-26
Posts: 11,632
Website

Re: Network Architecture Plugin problem

I have the solution for archires and IIS. Do you want it ? tongue big_smile


Xavier Caillaud
Blog GLPI Infotel

Offline

Board footer

Powered by FluxBB