Menu

Revision corrupt? - how?

Help
Anonymous
2004-02-26
2012-10-11
  • Anonymous

    Anonymous - 2004-02-26

    I have installed PHPWiki on a Linux platform, using flatfiles database.  It's working, apparently fine.  After many chnages in a short period of time to a page, repeted saves I'm guessing, the  page history becomes corrupt.  But first, I get this error after saving:

    lib/WikiDB.php:705: Notice[1024]: Optimizing backend

    I get different errors in the future, although the chnages are saved.  The Page History no longer works and the Recent Changes no longer works, for the site.

    Error after chnages in future, and at PageHistory:
    lib/WikiDB.php:787: Fatal[0]: <br />/usr/www/httpd/htdocs/phpwiki/lib/WikiDB.php:787: : Assertion failed <br />

    After RecentEdits and RecentChanges:
    lib/WikiDB/backend/dumb/MostRecentIter.php (In template 'browse') (In template 'body') (In template 'html'):28: Fatal[0]: <br />/usr/www/httpd/htdocs/phpwiki/lib/WikiDB/backend/dumb/MostRecentIter.php:28: : Assertion failed <br />

    Removing the page, clears the site problems, but..i lose the page.  :-(

    Why does this happen?  How can I fix it? 

    THANKS!

    - Liz

     
    • Jason Potkanski

      Jason Potkanski - 2004-02-27

      lib/WikiDB.php:705: Notice[1024]: Optimizing backend

      This isn't an error, just a notice that PhpWiki is gonna do some cleanup. You'll see it one out of every 50 edits.

      I get different errors in the future, although the chnages are saved. The Page History no longer works and the Recent Changes no longer works, for the site.

      Error after chnages in future, and at PageHistory:
      lib/WikiDB.php:787: Fatal[0]: <br />/usr/www/httpd/htdocs/phpwiki/lib/WikiDB.php:787: : Assertion failed <br />

      After RecentEdits and RecentChanges:
      lib/WikiDB/backend/dumb/MostRecentIter.php (In template 'browse') (In template 'body') (In template 'html'):28: Fatal[0]: <br />/usr/www/httpd/htdocs/phpwiki/lib/WikiDB/backend/dumb/MostRecentIter.php:28: : Assertion failed <br />

      I'm not sure what version you are running. But I'll try my best to help.

      First, turn on debug in index.php (Move the 0 to one) Then purge the html cache of your pages. You can also do this in PhpWikiAdministration. I think this feature is in 1.3.5 and higher.

      Second, did you make the error of storing your flatfiles in /tmp? That is asking for corruption.

      I imagine the bug is from committing an edit before the last one has finished, as there is no easy way to lock a flatfile, causing corruption.

      I would also consider the flat file stuff in 1.3 a bit toward the experimental side, I hope nothing extremely important is in there.

      I'll keep this short: Use the ADODB or SQL methods to connect to a mysql backend, or gdbm for a simple db database, or baring that then use flatfile! (Said the wise man)

      That still doesn't fix the problem however. :) Try and fill in these blanks:
      PhpWiki Version:
      Apache Version:
      Php Version:
      Linux Flavor+ Version: (Mandrake 9.1, Redhat, SUSE, etc)

      I may ask you to send your install to me to find the bug as well.

      -Jtp

       
      • Reini Urban

        Reini Urban - 2004-04-10

        flat file is really a very poor version and barely supported.
        dba/gdbm or mysql are the easiest.

         

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.