Hello.
I created a new MediaWiki using my old database.
But after that I have displaying pages in wrong way.
like here: http://wiki.westeros.pl/index.php?title=Wojna_Pi%C4%99ciu_Kr%C3%B3l%C3%B3w
Could anybody help me?
Hello.
I created a new MediaWiki using my old database.
But after that I have displaying pages in wrong way.
like here: http://wiki.westeros.pl/index.php?title=Wojna_Pi%C4%99ciu_Kr%C3%B3l%C3%B3w
Could anybody help me?
This is usually caused by an unclosed HTML element (div, table, etc), or even a closing element that has no matching start element (effectively closing too early a previous element of the page. Check the HTML codes of the page or templates.
Not sure. In my old database that page was OK.
I check all and all looks OK.
Look on that page too http://wiki.westeros.pl/index.php?title=Szablon:Navbox_generic/doc
If you inspect the generated HTML (better if you download the page as raw, since browser may auto-correct mismatched tags and change the original HTML) you'll see that it outputs several encoded HTML because it's not generating it properly (search for <)
I think those
and tags shoud be using wiki tables instead.Yeah. So what should I do?
Install some extension?
Looks like that bug: https://phabricator.wikimedia.org/T38059
I copy that page http://wiki.westeros.pl/index.php?title=Wojna_Pi%C4%99ciu_Kr%C3%B3l%C3%B3w from that site (Mediawiki 1.24.1) http://awoiaf.westeros.org/index.php/War_of_the_Five_Kings
And there evrything is OK.
I've exported the page of wiki.westeros.pl on my test 1.23 wiki and it rendered broken as well
I resolved that issue.
I added $wgUseTidy=true; in LocalSetting.php. It works, thanks a lot
Note that tidy fixes the ouput of broken markup - it does not fix the cause of the problem: The broken markup itself. Also, tidy can cause a number of interesting rendering bugs.