When trying to view whole topics or looking at archived topics, this happens;
"XML Parsing Error: not well-formed"
Just thought I'd tell ya.
Wow, I thought I cleared up all the bugs with XML parsing errors. Hrm. I'll have a look at it; however its more likely that I'm going to have to annoy WAHa about this one.
Thanks Anonymous.
You're not allowed to use the character & by itself in XHTML, it has to be written as &. It's converted in the name and comment text when people post, but not in the default username. So:
See I dont like this forced XHTML/XML crap, when something accidently breaks with regular HTML code wise, it may make things look bad, but the page loads. With XML, one fucking error and it wont show anything at all. Its the difference between a cut lip, and a cut throat.
I've changed the default name, but unless some lunix guru is going to tell me howto trawl a folder full of several MiB of HTML documents and clean out every appropriate "&" without spending many hours in front of grep and a text editor, it's gonna wait a while mmmmkay. If you are desperate to see a thread: http://4-ch.net/ascii/res/
If you want to disable it, a quick fix is to edit wakautils.pl
and change if($ENV{HTTP_ACCEPT}=~/application\/xhtml\+xml/)
to if(0)
. I might add an option to turn off XHTML in the next version, too.
>>4
Mildly tested solution. Um... Don't kill me if it breaks.
Put this in a script called sed.sh:
#!/bin/sh
fn=$1
sed -s 's/ \& / \& /g' $fn >$fn.tmp && mv $fn.tmp $fn
Give sed.sh execute permission. Then do this:
$ find /path/to/files -iname '*.html' -exec ./sed.sh {} \;
You might have to fix the permissions on all your HTML files afterward.
Threads in "Film & TV" are affected too, possibly because the board name is included in the page title.