Fatal Error on installing
qbnflaco - January 11, 2009 - 06:56
| Project: | Graphviz Filter |
| Version: | 6.x-1.0 |
| Component: | Code |
| Category: | support request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | closed |
Jump to:
Description
I tried installing and here's what I get...
Fatal error: require_once() [function.require]: Failed opening required 'Image/GraphViz.php' (include_path='.:/usr/local/php5/lib/php:/usr/local/lib/php') in /home/qbnflaco/projects.nautilusstudios.com/sites/all/modules/graphviz_filter/cck_schema.module on line 4
I have the graphviz library installed updated the pear Graphviz.php file to point to the correct location for dot and neato.
Any help would be greatly appreciated.

#1
PHP is not able to find the GraphViz.php file. You need to install it via the `pear` console command, instead of downloading it directly. To make sure it is correctly installed, create a simple PHP page with the following code:
<?phprequire_once('Image/GraphViz.php');
?>
The fatal error above should not appear if the package is correctly installed.
#2
yeah I get this error...
Warning: require_once(Image/GraphViz.php) [function.require-once]: failed to open stream: No such file or directory in /home/qbnflaco/projects.nautilusstudios.com/test.php on line 2
Fatal error: require_once() [function.require]: Failed opening required 'Image/GraphViz.php' (include_path='.:/usr/local/php5/lib/php:/usr/local/lib/php') in /home/qbnflaco/projects.nautilusstudios.com/test.php on line 2
I installed with pear, however I'm on a shared host and I have it installed in my home folder. I think it seems to be using the default pear on the server. How I can I change it to use my home folder copy instead?
#3
If you can't contact your host admin to fix the PEAR paths, you could write a small module that calls ini_set("include_path", ...) to include your new path. I think hook_init() would be the correct place to call this.
#4
hello again, kratib
I got the same fatal error (modules/workflow_graph/workflow_graph.module on line 8) and started looking at this thread.
I really have trouble following the talk about this graphviz and pear console stuff (I'm not getting down to that technical level). I can't work out what the pear console is or how I get it. (Is this it? -- http://drupal.org/project/pear -- if so, it looks kind of abandoned.)
So I decided to uninstall graphviz_filter and image_graphviz because I don't really need them right now. I took the folders out of my sites/all/modules folder...
and ugh! Now I can't get anything on my site apart from the error message:
Fatal error: require_once() [function.require]: Failed opening required 'Image/GraphViz.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/*******/public_html/_drupal_test/sites/all/modules/workflow_graph/workflow_graph.module on line 8
I have tried reinstalling the modules in the same way as before (drag and drop into the folder). workflow_graph.module does exist.
Any idea what I've done wrong? Help!
#5
Next version of Graphviz Filter will not depend on PEAR::Image_Graphviz, although the children modules (CCK Schema, Workflow Graph) will still.
#6
Had the same issue but fixed the path with a php.ini file. Unfortunately now the error is
Fatal error: require_once() [function.require]: Failed opening required 'System.php' ...in Image/GraphViz.php
#7
You need to install PEAR using the `pear` console command (on Windows or Linux), *not* by downloading the Image_GraphViz class directly from the PEAR website. The right way to do that is by simply saying:
pear install Image_GraphVizOn Windows, you need to find the `pear` command somewhere in the PHP binaries and add its path to the PATH environment variable. On Linux, you might need to prepend `sudo` so that PEAR installs the files correctly. Please check the documentation linked from the project page.
#8
I contacted my server hosting company with my problem and they installed Image_GraphViz for me; and I can now get back into my site.
So that could be a solution for us non-techie folk :)
I just wish there was a step-by-step reminder for what to do when installing/updating modules somewhere. And if modules require a different installation process, I could be told in comprehensive and clear language.
I now have some memory error happening and can't get in to turn off any modules... *sigh*
#9
Thanks for your feedback. I'll try to make the documentation on the project page clearer and less technical.
#10
Automatically closed -- issue fixed for 2 weeks with no activity.
#11
removed to start new issue :-)