Trouble with install on a subfolder
| Project: | Graphviz Filter |
| Version: | 6.x-1.3 |
| Component: | Miscellaneous |
| Category: | support request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | closed |
Jump to:
I have read through all the issues to date regarding Graphviz module and there are several issues similar to mine. But none directly address the following problems.
I have drupal 6.10 with the GraphViz & CCK modules loaded on a subfolder on my shared host server.
In otherwords: www.myrooturl/subfolder <-- durpal & modules are installed here, not at the root url.
I tweaked line 16 in "cck_schema.module" to read: "require_once('/home/myrooturl/php/Image/GraphViz.php');" so it could find the PEAR package; otherwise it could not find it.
So now I get the following error messages when, in my Drupal Admin, I click on "content types>schema"...
* warning: fopen(/var/tmp/graph_xlgcW1.dot) [function.fopen]: failed to open stream: No such file or directory in /home/myrooturl/php/Image/GraphViz.php on line 210.
* Graphviz encountered an error while rendering to format png: sh: dot: command not found
There seems to be two problems here:
1. Line 210 can't find the right path to the .dot file <-- hopefully this is simple tweak.
2. There is something wrong causing the "sh: dot: command not found"
Please help me understand what's going on here.
Many thanks in advance.

#1
The two problems are related. Your shared host does not seem to have the Graphviz console tools installed. These tools include the `dot` command that GraphViz.php and graphviz_filter.module need to actually create an image out of the CCK schema or any other graph description.
You should ask your host's sysadmin to install the Graphviz package. Then, go to Drupal's Status report page (admin/reports/status) to check that the "Graphviz" entry is checked green.
#2
Thanks, I'll see if they can add those for me.
#3
Nothing more to be done here.