Hi There,
I'm getting an error similar to one posted in the previous thread about trouble with a PNG. I've installed the graphviz package and the PEAR extension. When trying to access CCK schema I get the following error:
* warning: fopen(/private/var/folders/Na/Nah0h+yI2Ra4+U+BYvI4o++++TM/-Tmp-/graph_QpWxW6.dot) [function.fopen]: failed to open stream: No such file or directory in /Applications/MAMP/bin/php5/lib/php/Image/GraphViz.php on line 210.
* There was an error rendering the Graphviz file using format png.
And if I try to view a node with the example code I'm not able to get a graph output, just the '[graphviz]...[graphviz/]' chunk. What might I be missing?
Thanks! This looks like an awesome module. I can't wait to try it out more fully.
All the best,
Michael
Comments
Comment #1
infojunkieThanks for your report. Can you please check if the temp file (in the case above, /private/var/folders/Na/Nah0h+yI2Ra4+U+BYvI4o++++TM/-Tmp-/graph_QpWxW6.dot) actually exists? And if it does, what are its owner, group and file permissions? The module seems unable to find that file. Note that every time you create a new node, the module will create a new temp file.
Comment #2
infojunkieI was able to reproduce the problem on MAMP. I'm debugging it to find the problem.
Comment #3
infojunkieIt's now fixed in the latest dev release (which should be available 12 hours from now when Drupal.org refreshes the releases).
But you also need to make sure that your environment is properly set up for Graphviz:
* Make sure you use the 2.21 release at http://graphviz.org/Download_macos.php. The 2.20 release did not work correctly in my environment.
* Make sure your Apache Web server is set to find the Graphviz commands. To do so, edit the file /Applications/MAMP/Library/bin/envvars and append the following line to it:
then restart Apache.
With these in place, you should be able to produce correct output. If the problem persists, we will need to hack into some files to find out what's going on. The next release of graphviz_filter will probably include diagnostic code to help out with troubleshooting.