Closed (fixed)
Project:
Graphviz Filter
Version:
6.x-1.0
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
11 Jan 2009 at 06:56 UTC
Updated:
4 Apr 2009 at 23:12 UTC
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.
Comments
Comment #1
infojunkiePHP 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:
The fatal error above should not appear if the package is correctly installed.
Comment #2
qbnflaco commentedyeah 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?
Comment #3
infojunkieIf 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.
Comment #4
eff_shaped commentedhello 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!
Comment #5
infojunkieNext version of Graphviz Filter will not depend on PEAR::Image_Graphviz, although the children modules (CCK Schema, Workflow Graph) will still.
Comment #6
kbpair commentedHad 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
Comment #7
infojunkieYou 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:
On 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.
Comment #8
eff_shaped commentedI 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*
Comment #9
infojunkieThanks for your feedback. I'll try to make the documentation on the project page clearer and less technical.
Comment #11
mmlmitchell commentedremoved to start new issue :-)