Working on the OS FAQ [Mega-Tokyo Wiki]

All about the OSDev Wiki. Discussions about the organization and general structure of articles and how to use the wiki. Request changes here if you don't know how to use the wiki.
User avatar
Candy
Member
Member
Posts: 3882
Joined: Tue Oct 17, 2006 11:33 pm
Location: Eindhoven

Re:Working on the OS FAQ

Post by Candy »

I don't see how executing a php server-side script could have any consequences of the browser you use, except if it can't process the browser info (in which case it's probably php's fault).
User avatar
df
Member
Member
Posts: 1076
Joined: Fri Oct 22, 2004 11:00 pm
Contact:

Re:Working on the OS FAQ

Post by df »

neither do i. I tested it and IE6 didnt give me any errors but firefox does.

odd that upgrading php from 4.0.6 to 4.3.9 gave the error....

obviously its something to do with the passed headers... I am waiting for 1.3.11 to come out of phpwiki and I am going to upgrade it.
-- Stu --
User avatar
bubach
Member
Member
Posts: 1223
Joined: Sat Oct 23, 2004 11:00 pm
Location: Sweden
Contact:

Re:Working on the OS FAQ

Post by bubach »

if you type in http://www.osdev.org/osfaq2/index.php instead of http://www.osdev.org/osfaq2/ it works..

[EDIT] wierd... it works if you first try one of the addresses and then the second right after..
"Simplicity is the ultimate sophistication."
http://bos.asmhackers.net/ - GitHub
User avatar
Candy
Member
Member
Posts: 3882
Joined: Tue Oct 17, 2006 11:33 pm
Location: Eindhoven

Re:Working on the OS FAQ

Post by Candy »

df wrote: neither do i. I tested it and IE6 didnt give me any errors but firefox does.
Actually, IE6 on win2k does give the error, but since microsoft decided to switch on strict parsing all of a sudden (no problem with that, but try to follow one course...), it crashes out. The error (in dutch, can't help the language here, all other is english):
Microsoft wrote: De XML-pagina kan niet worden weergegeven
Kan XML-invoer niet lezen met opmaakmodel XSL. Herstel de fout en klik vervolgens op de knop Vernieuwen of probeer het later opnieuw.


--------------------------------------------------------------------------------

DOCTYPE-declaratie mag niet buiten de beginsectie voorkomen. Fout bij het verwerken van bron http://www.osdev.org/osfaq2/. Regel 4, positie 11

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
----------^
In other words, it encountered a doctype after the start, which is invalid. It trips.

It seems there's a url rewriter rewriting it to ./index.php instead of ./, after which it outputs some header. Then, the gz handler can't take the header anymore, because it's been output, and then the page is output after the error. Switching off the display of errors will fix it in a way, although the first page will consume slightly more space.
User avatar
Pype.Clicker
Member
Member
Posts: 5964
Joined: Wed Oct 18, 2006 2:31 am
Location: In a galaxy, far, far away
Contact:

Re:Working on the OS FAQ

Post by Pype.Clicker »

what did happen to the FAQ?

It looks that it reverted to the OSX style and that plenty of pages are missing (BareBones, BeginnerMistake, ...)

uh ? that's even weirder: the pages are actually there, but the WIKI beleive they're not there and suggest we create them ... and trying to edit a page that was claimed missing edits a blank page (??)

Could that be that we only have the HTML cache and no content any longer ??
User avatar
Solar
Member
Member
Posts: 7615
Joined: Thu Nov 16, 2006 12:01 pm
Location: Germany
Contact:

Re:Working on the OS FAQ

Post by Solar »

df: I could e-mail a content backup as of 2004-10-19 immediately and probably a more up-to-date one in a couple of hours when I get home. (Though I'm not sure my latest backup isn't already affected by this "page loss". Really strange...)

Edit: If your HTML proxy / cache confuses you, http://www.osdev.org/osfaq2/index.php/AllPages gives you a list of available pages, and indeed lots and lots of 'em are missing.
Every good solution is obvious once you've found it.
User avatar
Pype.Clicker
Member
Member
Posts: 5964
Joined: Wed Oct 18, 2006 2:31 am
Location: In a galaxy, far, far away
Contact:

Re:Working on the OS FAQ

Post by Pype.Clicker »

no, actually, i can get the "pre-html cached" content from the Wiki ... so it seems even for pages we lost, we still have the "rendered" content (try out http://www.osdev.org/osfaq2/index.php/PypeClicker, for instance)

The current wikidump seems only to keep the ancient content (the pages that were in the static version)

i don't have backup more recent than july 19th, unfortunately...
User avatar
Solar
Member
Member
Posts: 7615
Joined: Thu Nov 16, 2006 12:01 pm
Location: Germany
Contact:

Re:Working on the OS FAQ

Post by Solar »

Ah... I'd say that's damage to one of the PhpWiki MySQL tables, then: The page itself is there (when requested by name directly), but parts of the PhpWiki logic think it isn't (when rendering Wiki links or querying for AllPages).

I'm afraid that means df has to do some SQL patching... (recreating the damaged table from data in other tables). Can't say I envy him. ;)
Every good solution is obvious once you've found it.
User avatar
df
Member
Member
Posts: 1076
Joined: Fri Oct 22, 2004 11:00 pm
Contact:

Re:Working on the OS FAQ

Post by df »

the wiki table 'recent' corrupted itself...

all the pages are there in the page table but whatever was in the 'recent' table is gone.

so the wiki looks kinda funny right now... there is lots of links on the front page that say they are not there but if you click on them, the pages are there (i cleared the html cache as well). somehow I need to figure out how to get the wiki to realise the pages are there and to make the correct links...

the wiki is annoying me bigtime.... :/ mysql is a piece of **** but its all I have. access never corrupted itself as much as my experience with mysql has. (and Ive done some nasty things to access databases.).

aaaanyway. i dont know what I am going to do.
-- Stu --
User avatar
Solar
Member
Member
Posts: 7615
Joined: Thu Nov 16, 2006 12:01 pm
Location: Germany
Contact:

Re:Working on the OS FAQ

Post by Solar »

Harumph. Dumping the Wiki doesn't help, the dump doesn't include the "vanished" pages...

I'll see what I can do with my latest backup at home and a bit of creative scripting. I won't cater for pages' history, but expect me to mail you a snapshot of current contents to re-start the Wiki with.

And next thing I do is making the backups automatic and daily. He who laughs last, has made a backup. ;)
Every good solution is obvious once you've found it.
User avatar
df
Member
Member
Posts: 1076
Joined: Fri Oct 22, 2004 11:00 pm
Contact:

Re:Working on the OS FAQ

Post by df »

I admint I got lazy, I was doing a daily mysqldump on the wiki then things stabalized and I had no problems :( so I didnt dump for a couple of weeks...
-- Stu --
User avatar
Solar
Member
Member
Posts: 7615
Joined: Thu Nov 16, 2006 12:01 pm
Location: Germany
Contact:

Re:Working on the OS FAQ

Post by Solar »

Every good solution is obvious once you've found it.
User avatar
df
Member
Member
Posts: 1076
Joined: Fri Oct 22, 2004 11:00 pm
Contact:

Re:Working on the OS FAQ

Post by df »

cheers. i did the sql and it genereated the same table as I had from the original mysql repair from last night.

anyway, the todo page lists all the pages that became orphaned. I think I will just copy the markup, delete page, recreate page. paste markup back...

time consuming but... i will see if we get any more responses on that thread... otherwise tomorow I will do the cut/paste/delete/create on all the orphaned pages.
-- Stu --
User avatar
Solar
Member
Member
Posts: 7615
Joined: Thu Nov 16, 2006 12:01 pm
Location: Germany
Contact:

Re:Working on the OS FAQ

Post by Solar »

You can probably get away with just calling the page (shouldn't that be "WantedPages" instead of "OrphanedPages"?) with ...?action=edit, and saving it.

Note that the man over at PhpWiki asked for contacting him by e-mail. I just told him that I wasn't the man with the MySQL access, and forwarded the stuff, so you might want to get in touch with him.
Every good solution is obvious once you've found it.
User avatar
df
Member
Member
Posts: 1076
Joined: Fri Oct 22, 2004 11:00 pm
Contact:

Re:Working on the OS FAQ

Post by df »

all fixed now. I posted how I fixed it on the sourceforge forum thread...

eash! from no on, I will do daily backups for a while then go down to once a week. (unfortunatly I dont have cron access and wouldnt want to put my password into a cron job either;))
-- Stu --
Post Reply