Apparently at random a small personal site developed a quirk, perhaps due to a quota issue (that was since resolved by deleting my Mozilla cache). The HomePage displays this at the top:
Bad page version (or corrupt page). Content-type: text/html
and then goes on as usual. Trying to debug it, I found that the version number of the page went from 26 to 1 so assume "bad page version" makes sense. Unfortunately I can't make heads or tails of the storage format so I don't know how to recover. Any help? I'm sure that some consider this more a feature than a bug, but it is somewhat annoying. :)
(using UseModWiki 0.92)
FahdKhan?
With 0.92 I just experienced the same problem. Searching the error message brought me here. The only solution I know is to move the existing pages to a fresh wiki and forget about the lost history. This is sad.
TakOta?
Okay here's a workaround that's somewhat nicer than moving to an entirely new wiki if just a few pages are br0ke:
Get that error when I do a search, could not figure out what pages were corrupted and did not want to play cut&paste so just comment out the line that check for the version in the script:
#if ($Page{'version'} != 3) { # &UpdatePageVersion(); #}--Johan Burati
Any suggestions?
Followup:
Well, maybe I've read the tentative workaround too quickly... I had a corrupted page and just restored the .db and also the .kp files from my backup. The page works again, no prob. Even the whole history is there again.
BUT: now I can't run maintenance anymore! The output I'm getting is:
Could not get maintain-lock at /home/apache/smpa.org/internal/cgi-bin/wiki.cgi line 3734.
The file "maintain" in my wiki folder does contain just the line of the last run before the restore:
Maintenance done at October 6, 2004 8:42
And it get's worse: I can't edit any page anymore: trying to preview an edited page gives me:
Could not get editing lock at /home/apache/smpa.org/internal/cgi-bin/wiki.cgi line 3443.
Maybe I should note that running maintenance for the first time after restore gave me a different error message, since I just did not properly set the permissions for the .db and .kp files. But then I've set the perms as required.
What the heck is wrong? --DavidAndel
I've seen this error as a result of page corruption, due to the problem described in /editlinks mangles pages in special cases.
If you think that this is the probable cause in your case, then you can find the problem page by searching for the name of the page you have just renamed, and then viewing each page that references this page in turn. The problem page will show this error when viewed.
The "Bad Page Version (or Corrupt File) problem just began happening to all of the wikis on my server. It happens when trying to edit, and the resulting page is a single line, with "Content-Type: text/html; charset=ISO-8859-1" up at the top. I am 200MB below my quota for the server. Wonder if anyone has any thoughts. Thanks.
The "Bad Page Version (or Corrupt File) problem occurs only when I submit non English symbols on page( russian ) while i work with english - all ok, but when i do russian - page 100% will be broken.
Alexander Popov ---
Update: when I insert a euro symbol as utf8 byte, this happens. Using the euro symbol as € it's OK. (I don't want to try inserting the euro utf8 symbol here... :-)
Paul Slootman