From: Steve W. <sw...@pa...> - 2001-03-06 15:39:41
|
On Mon, 5 Mar 2001, Adam Shand wrote: > i used apt-get. when i try dbm i get a blank page in my browser with just > this when i view source: > > <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> > <!-- $Id: index.php,v 1.5 2000/11/08 15:34:06 ahollosi Exp $ --> > <!-- $Id: config.php,v 1.24 2001/01/31 07:38:10 ahollosi Exp $ --> > <!-- $Id: dbmlib.php,v 1.7 2001/01/31 03:11:25 wainstead Exp $ --> > <!-- $Id: stdlib.php,v 1.21 2001/01/15 12:32:57 ahollosi Exp $ --> Aha. Well, this is some problem with either the dba_ support or the dbm support; you see, the dbm* functions are deprecated in PHP4.0 in favor of the dba_* functions, which are a more generic interface. This has caused us a lot of install problems. Did you try setting your database type to "dbm" and see if that works? If not, the next step is to set it to "dba" again, and edit dbalib.php and remove the '@' symbol from the dba_open() call: function OpenDataBase($dbname) { global $WikiDB; // hash of all the DBM file names reset($WikiDB); while (list($key, $file) = each($WikiDB)) { while (($dbi[$key] = @dba_open($file, "c", "gdbm")) < 1) { ------------------------------^ right here $numattempts++; if ($numattempts > MAX_DBM_ATTEMPTS) { ExitWiki("Cannot open database '$key' : '$file', giving up."); } sleep(1); } } return $dbi; } With the '@' removed you will get a verbose error message telling us what the problem is. ~swain --- http://wcsb.org/~swain/ "Without music to decorate it, time is just a bunch of boring production deadlines or dates by which bills must be paid." -- Frank Zappa |