From: Carsten K. <car...@us...> - 2003-12-08 03:18:48
|
On Sunday, December 7, 2003, at 08:33 pm, Dan Sawyer wrote: > All, > > This error is common between the local test system and the uploaded > 'web' system; it occus on both systems. > > lib/WikiDB.php:787: Fatal[0]: <br > />/mnt/extended/downloads/phpbrkclb/lib/WikiDB.php:787: : Assertion > failed <br /> > > Thanks, > Dan Hi Dan, * Which version of PhpWiki, the nightly build or one of the releases? * What actions before the error occurred? * Which database is being used, MySQL or another one? * If one of the SQL databases, are you using PEAR or ADODB as the backend? (If you didn't change this in index.php, the default is PEAR). Email me the info so I check whether there a bug in the code. It could also be a record is corrupted in your database. Best to make a zipdump backup of all pages right away. If you can't get a backup pagedump of all pages due to this assertion error, try temporarily deleting or commenting out that line 787 in lib/WikiDB.php: function getRevisionBefore($version) { $backend = &$this->_wikidb->_backend; $pagename = &$this->_pagename; $version = $this->_coerce_to_version($version); if ($version == 0) return false; $backend->lock(); $previous = $backend->get_previous_version($pagename, $version); $revision = $this->getRevision($previous); $backend->unlock(); - assert($revision); + //assert($revision); return $revision; } Then delete the database and start a new one (or drop all the tables and recreate them with the appropriate schema file supplied in Phpwiki, same effect). Let us know what happens. Carsten |