From: Eoghan Ó C. <eog...@gm...> - 2009-09-22 23:29:12
|
I always get this error when I download a new revision from the trunk and have to make a minor change to web\sys\interface.php. I run VuFind on Windows and this used to be flagged on the Windows install documentation but seems to be gone now. To be honest I've just gone with what works and never really thought about the the why and the wherefore but, the following fixes the error for me: web\sys\interface.php: old (from trunk): require_once 'Smarty/Smarty.class.php'; fix: require_once 'Smarty/libs/Smarty.class.php'; This works on my dev laptop. I know we had to change this slightly again for it to work on our test server, but I can't access that now. I will post that tomorrow. I just reverted my web\sys\interface.php and here is the error without the above change: *Warning*: require_once(Smarty/Smarty.class.php) [function.require-once<http://localhost/vufindtrunk/function.require-once>]: failed to open stream: No such file or directory in * C:\vufindtrunk\web\sys\Interface.php* on line *21* *Fatal error*: require_once() [function.require<http://localhost/vufindtrunk/function.require>]: Failed opening required 'Smarty/Smarty.class.php' (include_path='.;C:\xampp\php\pear\') in * C:\vufindtrunk\web\sys\Interface.php* on line *21* hope this helps, Eoghan 2009/9/22 Demian Katz <dem...@vi...> > include_path is a directive in the php.ini file. If your Ubuntu > installation is structured like mine, you'll probably find it in > /etc/php5/apache2/php.ini. It's also possible to change the include path on > the fly in PHP using this function: > > > > http://us3.php.net/manual/en/function.set-include-path.php > > > > All that being said, I didn't have to make any include_path changes to get > things working on my own setup (in fact, the include_path is commented out > in my php.ini, so I guess I'm using defaults). We must have done a few > things differently along the way. > > > > Good luck, and let me know if you need any more information! > > > > - Demian > > > > *From:* Cornelison, Lee [mailto:cor...@ll...] > *Sent:* Tuesday, September 22, 2009 2:08 PM > *To:* 'vuf...@li...' > *Subject:* [VuFind-General] Question on VUfind installation & Pear paths > > > > I am setting up VuFind from scratch on Ubuntu. > > > > I installed VuFind, and can start the vufind launch script, but the basic > web-page only shows these errors: > > > > > *Warning*: require_once(Smarty/Smarty.class.php) [function.require-once<http://libwebmirror.llan.ll.mit.edu/vufind/function.require-once>]: > failed to open stream: No such file or directory in * > /usr/local/vufind/web/sys/Interface.php* on line *21 > > Fatal error*: require_once() [function.require<http://libwebmirror.llan.ll.mit.edu/vufind/function.require>]: > Failed opening required 'Smarty/Smarty.class.php' > (include_path='.:/usr/share/php:/usr/share/pear') in * > /usr/local/vufind/web/sys/Interface.php* on line *21* > > > > > > My Smarty package is installed under /usr/bin/PEAR/Smarty/ -- but the > errors in the second line above indicate that an ‘include_path’ variable is > only looking for Pear modules under /usr/share/php & /usr/share/pear > > > > Can someone tell me where this PHP include_path variable is located or > set, so that I can add the active Pear packages path? > > > > > > Lee Cornelison > > MIT Lincoln Laboratory > > > > > > > ------------------------------------------------------------------------------ > Come build with us! The BlackBerry® Developer Conference in SF, CA > is the only developer event you need to attend this year. Jumpstart your > developing skills, take BlackBerry mobile applications to market and stay > ahead of the curve. Join us from November 9-12, 2009. Register now! > http://p.sf.net/sfu/devconf > _______________________________________________ > VuFind-General mailing list > VuF...@li... > https://lists.sourceforge.net/lists/listinfo/vufind-general > > |