Page 1 of 1

Can't get relationship graphs to work

Posted: 16 Feb 2005, 20:14
by mmchenry
I can't seem to get relationship graphs to work. Has anyone else had any luck with this?

Here's my config:
Windows Server 2003
PHP 4.3.10
Mantis 0.19.2
WinGraphviz 1.02.25

Here's what I've done:
  • Installed WinGraphviz
    Confirmed that it works with the test script from the WinGraphviz website
    Enabled relationship graphs in config.inc.php

Now the relationship graph links show up and the pages load without error but no graph is displayed. The box where the graph should be is displayed with the graph title, links and legend, but the graph itself is missing.

I added some debug code to graphviz_api.php and it seems like the COM() call is failing (returning null). However, as mentioned, the VB test script is able to create wingraphviz objects without problem.

Any thoughts?

Thanks,
Mitch McHenry

Posted: 24 Feb 2005, 08:08
by sly
I've found same and other problems with WinGraphViz, so I've opted to use GraphViz (exe program) instead of WinGraphViz (COM object) which is more fixed and recent.

To do that is very simple:

- Download and install last GraphViz package for Windows from:
http://www.graphviz.org/pub/graphviz/CU ... 3.0530.exe

- Modifiy in /config_inc.php following lines:

$g_enable_relationship = ON;
$g_dot_tool = 'C:\GraphViz\GraphViz\bin\dot.exe';
$g_neato_tool = 'C:\Programmi\Utility\GraphViz\GraphViz\bin\neato.exe';

- Modify line 280 of /core/graphviz_api.php from:

if ( 'WIN' == substr( PHP_OS, 0, 3 ) ) {

to

if ( '_WIN_' == substr( PHP_OS, 0, 3 ) ) {


In this way you use GraphViz instead of WinGraphViz which have a lot of bugs in arrow direciton drawing and other things...

Good work
Silverio Diquigiovanni

Posted: 24 Feb 2005, 16:13
by mmchenry
Thanks for the help, but still no luck. The proc_open and passthru functions both fail. I'm sure it's some combination of file permissions and IIS6 security, but I can't figure it out.

What version of Windows/IIS are you using? Did you do anything special with permissions or IIS config?

Posted: 23 Mar 2005, 12:16
by jravasi

Posted: 26 Apr 2005, 20:23
by mmchenry
I've got a little closer to getting this one working. PHP 4.3.11 seems to have fixed the some of the COM() problems, but I can still only get the graphs to work if I make the IUSR account (used for annonymous access in IIS) a member of Administrators. Otherwise, PHP reports an access violation.

So I assume it's some file permission or security rights issue, but I can't figure out exactly what the problem is. IUSR has read+execute permissions to the WinGraphviz.dll itself, so I don't think that's the issue. Is there a right that must be granted to IUSR to allow it to instantiate COM objects? Does WinGraphviz create temp files anywhere?

Config:
PHP 4.3.11
Server 2003+IIS6
ISAPI
Mantis 0.19.2 and 1.0.0a2

I also added this note to http://bugs.mantisbt.org/view.php?id=5037