From: Reini U. <ru...@x-...> - 2004-04-07 23:47:07
|
aha, very interesting handlers and bugs. thanks a lot. what's your exact php version? I try to test the "db4" issue, which seems to be the nearest fit. It looks like a simple file permission problem. Do you have write permission to "pages/wiki_pagedb.db4" ? Another idea is this: Try to change the dba_open mode from "c" to "c-" or "cl". This is a known PHP bug, which I only circumvented for windows. Maybe it's a locking problem for linux also. I fixed it in lib/DbaDatabase.php: // PHP 4.3.x Windows lock bug workaround: http://bugs.php.net/bug.php?id=23975 if (isWindows() and (strlen($mode) == 1)) { $mode .= "-"; // suppress locking } while (($dbh = dba_open($this->_file, $mode, $this->_handler)) < 1) { but you can also try it in lib/WikiDB/backend/dba.php: - if (!$db->open('c')) { + if (!$db->open('c-')) { Malcolm Ross Kinsella Ryan schrieb: > On Wed, Apr 07, 2004 at 08:59:52PM +0200, Reini Urban wrote: > >>Setup a page containing >> <?php phpinfo() ?> >>browse it, and look at the output of the "dba" section. > > > Supported handlers: cdb cdb_make db4 inifile flatfile > > Results: > ======== > > cdb: > ---- > > lib/DbaDatabase.php:38: Fatal[256]: dba_open(pages/wiki_pagedb.cdb,c): Driver initialization failed for handler: cdb: Update operations are not supported > > cdb_make: > --------- > > lib/DbaDatabase.php:38: Fatal[256]: dba_open(pages/wiki_pagedb.cdb_make,c): Driver initialization failed for handler: cdb_make: Update operations are not suppor > > db4: > ---- > > lib/DbaDatabase.php:38: Fatal[256]: dba_open(pages/wiki_pagedb.db4,c): Driver initialization failed for handler: db4: Bad file descriptor > > inifile: > -------- > > Loads virgin wiki... > > [Go to HomePage] > > lib/WikiDB.php:729: Fatal[0]: <br />/tmp_amd/buzzer/export/buzzer/1/malcolmr/public_html/bushfire/lib/WikiDB.php:729: : Assertion failed <br /> > > lib/WikiDB/backend/dbaBase.php:128: Notice[8]: unserialize(): Error at offset 624 of 263 bytes > > flatfile: > -------- > > Loads virgin wiki... > > [Go to HomePage] > > Loads vigrin wiki again... etc. > > ====== > > No Joy. :( > Malcolm -- Reini Urban http://xarch.tu-graz.ac.at/home/rurban/ |