From: Tara S. <te...@cl...> - 2001-12-18 20:08:41
|
Hi all! My site has changed servers and I'm getting a new (unexplainable, as far=20 as the sysadmin and I are concerned) error: lib/FileFinder.php:82: Fatal[256]: DB.php: file not found lib/FileFinder.php:82: Fatal[256]: DB.php: file not found (try http://spirolattic.net/) Does anybody have an idea what the problem can be? Thanks a lot, Tara --=20 Je r=E9ponds au mieux de mes connaissances Climb to the Stars! - http://climbtothestars.org/ SpiroLattic - http://spirolattic.net/ Pompeurs Associ=E9s - http://pompage.net/ |
From: Carsten K. <car...@ma...> - 2001-12-18 21:28:41
|
Hi Tara, Yes this happened to me too, Jeff explained the problem as written in index.php. This error indicates PHPWiki can't find its PEAR libraries. (I added a couple lines specifically mentioning this error to index.php. Probably it should go in the docs too.) 1. Do a search for PEAR.php to find out where it is. On unix-ish systems this would be: locate PEAR.php 2. Add the path to this file into index.php, something like: ini_set('include_path', '.:/usr/local/whatever/share/php'); 2. Alternatively you can edit the php.ini (probably at /usr/local/lib/php. ini) file and add the path in there (if you have root access to the server) . The advantage of this is that php will be able to find it's PEAR libraries even for other non-wiki php software: ini_set('include_path', '.:/usr/local/whatever/share/php'); PhpWiki already searches a number of common directories for the PEAR libraries, so I'd like to see what directory yours was installed into. Carsten // Part Zero: If PHP needs help in finding where you installed the // rest of the PhpWiki code, you can set the include_path here. // NOTE: phpwiki uses the PEAR library of php code for SQL database // access. Your PHP is probably already configured to set include_path // so that PHP can find the pear code. If not (or if you change // include_path here) make sure you include the path to the PEAR // code in include_path. (To find the PEAR code on your system, search // for a file named 'PEAR.php'. Some common locations are: // // Unixish systems: // /usr/share/php // /usr/local/share/php // Mac OS X: // /System/Library/PHP // // The above examples are already included by PhpWiki. // You shouldn't have to change this unless you see a WikiFatalError: // lib/FileFinder.php:82: Fatal[256]: DB.php: file not found // //ini_set('include_path', '.:/where/you/installed/phpwiki'); Am Tuesday den, 18. December 2001, um 15:03, schrieb Tara Star: > Hi all! > > My site has changed servers and I'm getting a new (unexplainable, as far > as the sysadmin and I are concerned) error: > > lib/FileFinder.php:82: Fatal[256]: DB.php: file not found > > lib/FileFinder.php:82: Fatal[256]: DB.php: file not found > > (try http://spirolattic.net/) > > Does anybody have an idea what the problem can be? > > Thanks a lot, > > Tara |
From: Carsten K. <car...@ma...> - 2001-12-18 23:38:27
|
Sorry, I made a mistake in my previous instructions. The *correct* way to add a path in the php.ini file follows: include_path = ".:/usr/local/whatever/share/php"; (No changes to the rest of the instructions.) I also fixed my instructions which Adam added to the Wiki FAQ. <http://phpwiki.sourceforge.net/phpwiki/FrequentlyAskedQuestions> Carsten On Tuesday, December 18, 2001, at 04:28 pm, Carsten Klapp wrote: > > Hi Tara, > > Yes this happened to me too, Jeff explained the problem as written in > index.php. This error indicates PHPWiki can't find its PEAR libraries. > > (I added a couple lines specifically mentioning this error to index.php. > Probably it should go in the docs too.) > > 1. Do a search for PEAR.php to find out where it is. On unix-ish systems > this would be: > locate PEAR.php > 2. Add the path to this file into index.php, something like: > ini_set('include_path', '.:/usr/local/whatever/share/php'); > 2. Alternatively you can edit the php.ini (probably at /usr/local/lib/php. > ini) file and add the path in there (if you have root access to the > server) > . The advantage of this is that php will be able to find it's PEAR > libraries even for other non-wiki php software: > ini_set('include_path', '.:/usr/local/whatever/share/php'); > > PhpWiki already searches a number of common directories for the PEAR > libraries, so I'd like to see what directory yours was installed into. > > Carsten |