[opensuse-web] diff view partly broken
Hello, Matthew, I'm afraid I have to shock you once more ;-) The diff view in the wiki is partly broken - I can see the diff, but I don't see the page content - instead, I see "Unable to get content". For an example, check any revision diff page, like http://en.opensuse.org/index.php?title=Firefox&action=historysubmit&diff=44285&oldid=37254 The good news is that I probably know about the reason. It looks like Mediawiki tries to load the content using api.php: http://en.opensuse.org/api.php?action=parse&prop=text|categorieshtml|languageshtml&format=xml&oldid=37254 and instead of the result, I get a "No such action" page in the default wiki layout. I guess you'll need to add another exception in your rewrite rules for api.php ;-) Interestingly, my private wiki doesn't use api.php to fetch the page content in diff view, but until now I have no idea what causes this differenct behaviour. Regards, Christian Boltz -- FRAGEBÖGEN! An die "Bedarfsträger"! DAS ist die Evaluierung! Sie fragen den Wolf, ob die Schafe schmackhaft waren, und ob sie auch nicht mehr gefressen haben als sie Hunger hatten! [Fefe in http://blog.fefe.de/?ts=b33b483f] -- To unsubscribe, e-mail: opensuse-web+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-web+owner@opensuse.org
Christian Boltz
12/6/2011 12:50 PM >>> Hello, Matthew, I'm afraid I have to shock you once more ;-)
The diff view in the wiki is partly broken - I can see the diff, but I don't see the page content - instead, I see "Unable to get content".
For an example, check any revision diff page, like http://en.opensuse.org/index.php?title=Firefox&action=historysubmit&diff=44285&oldid=37254
The good news is that I probably know about the reason. It looks like Mediawiki tries to load the content using api.php: action=parse&prop=text|categorieshtml|languageshtml&format=xml&http://en.opensuse.org/api.php?>action=parse&prop=text|categorieshtml|languageshtml&format=xml&oldid=37254 ( http://en.opensuse.org/api.php? ) and instead of the result, I get a "No such action" page in the default wiki layout.
I guess you'll need to add another exception in your rewrite rules for api.php ;-) I made that change, and now I get an XML error... not sure what's going on there.
Interestingly, my private wiki doesn't use api.php to fetch the page content in diff view, but until now I have no idea what causes this differenct behaviour. What version of MW are you on? Also, the difference may have something to do with the 10,000 extensions we have on the openSUSE wikis :) -Matt
Hello, Am Dienstag, 6. Dezember 2011 schrieb Matthew Ehle:
Christian Boltz
12/6/2011 12:50 PM >>>
Matthew, I'm afraid I have to shock you once more ;-)
The diff view in the wiki is partly broken - I can see the diff, but I don't see the page content - instead, I see "Unable to get content". ... I guess you'll need to add another exception in your rewrite rules for api.php ;-)
I made that change, and now I get an XML error... not sure what's going on there.
That's quite easy - ask xmllint ;-) It will tell you: parser error : XML declaration allowed only at the start of the document In other words: the XML declaration starts in line 2, not in line 1 of the XML - something[tm] adds a superfluous newline. Not only to the XML, it's also visible in the HTML output. Search all files for newlines before "<?php" or after "?>". My guess[1] is extensions/videoflash.php - remove the newline at the end...
Interestingly, my private wiki doesn't use api.php to fetch the page content in diff view, but until now I have no idea what causes this differenct behaviour.
What version of MW are you on?
I upgraded to 1.17 recently, to have the same version as openSUSE.
Also, the difference may have something to do with the 10,000 extensions we have on the openSUSE wikis :)
Well, I have to propose some extensions until we hit the 10,000 bar ;-) Checking the generated HTML for "Unable to get content" finds (in a <script> block): "wgRevContents": {"error": "Unable to get content.", [...] } and grep says this belongs to FlaggedRevs. That's indeed an extension I don't need on my private wiki - reviewing my own changes would be superfluous ;-) Regards, Christian Boltz [1] guessed ;-) by using "tail -n1 extensions/*.*" --
über browser?, wie wärs mit (ISDN)Telefon - ich hab da reboot und rcsmpppd restart Habe ich mir auch schon überlegt! Aber die Vorstellung war dann doch etwas komisch: "Ja, Schatz! Ich komme gleich ins Bett! Muss nur noch kurz meinen Router (unterm Tisch) anrufen, damit er runterfährt!" [> Andre Fischer und Michael Frank in suse-linux]
-- To unsubscribe, e-mail: opensuse-web+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-web+owner@opensuse.org
participants (2)
-
Christian Boltz
-
Matthew Ehle