Broken new page layout in MediaWiki 1.18.2

Jump to: navigation, search

MediaWiki 1.18.2, PHP 5.2.6, MySQL 5.0.95-log

http://www.achyra.org/linguaitaliana/Pagina_principale

(All standard extensions and “pretty URLs” enabled, $wgGroupPermissions['*']['edit'] set to false and $wgLanguageCode set to "it", but problem still there even if I disable all of that, and use "en" as default language.)

Basically, if I browse to any non-existing/“new” page (e.g., http://www.achyra.org/linguaitaliana/Lingua_italiana:Portale_comunità), the template appears broken, with all the header stripped out server-side up to half way the “navigation” section. Even if I try and create a new page [by searching for it first, otherwise I can’t even get a link for it] and save it empty, I get the same broken layout. As soon as I save it with just one character in it, the template starts working.

I’m sure it must be something trivial, but can’t figure it out… :-(

Any suggestion would be greatly appreciated.

Many thanks,

Infarinato (talk)17:16, 9 April 2012

Make sure $wgServer and $wgCanonicalServer, as well as $wgScriptPath are set correctly.

Jasper Deng (talk)18:46, 9 April 2012

They seem to be!… Thanks for your reply, anyway.

Infarinato (talk)19:24, 9 April 2012

Try adding:

ini_set('display_errors',1);
$wgShowExceptionDetails=true;

and see what your error is.

Jasper Deng (talk)19:43, 9 April 2012

Absolutely nothing, Jasper! :-/ Simply all my new pages start with some cut-off header like this:

-->
                        </div> 
                </div> 
                <!-- /header --> 
                <!-- panel --> 
                        <div id="mw-panel" class="noprint"> 
                                <!-- logo --> 
                                        <div id="p-logo">
                                                <a style="background-image: url(/mediawiki/skins/common/images/wiki.png);"
                                                href="/linguaitaliana/Pagina_principale"  title="Visita la pagina principale"></a>
                                        </div> 
                                <!-- /logo --> 
 
<!-- navigation -->

Try, e.g., http://www.achyra.org/linguaitaliana/Sdcjdhs.

(BTW, your help is much appreciated.)

Infarinato (talk)20:05, 9 April 2012

Ugh. Try refreshing your MediaWiki files except your LocalSettings.php; don't touch your database.

Jasper Deng (talk)20:06, 9 April 2012

Nope, that didn’t do it either! :-(

…But why would that happen with “not [yet] existing”/empty pages only??

There must be some variable in the template that is undefined when a page doesn’t exist yet and that the header [template] depends on…

Infarinato (talk)21:05, 9 April 2012
 

Any other ideas? I’ve upgraded to 1.19.0beta2 “just in case”, but still no joy… :-(

Anybody aware of specific incompatibilities between recent versions of MediaWiki and PHP 5.2.6 [and/or MySQL 5.0.95-log]? (Here I’ve got an instance of MediaWiki 1.6.8 and exactly the same versions of PHP and MySQL [on basically the same servers], and that problem doesn’t exist.)

Infarinato (talk)16:49, 10 April 2012

Try upgrading PHP, and/or your webserver.

Jasper Deng (talk)17:28, 10 April 2012

Something is very broken with your webserver.


The response for those pages sends no HTTP headers at all.

Maybe a broken 404 handler. If you set $wgSend404Code to false in your LocalSettings.php - does that fix your issue?

Bawolff (talk)20:08, 11 April 2012

It does! :-) Many thanks, Bawolff.

I’ll now see if I can somehow rectify this silly web server behaviour, but we’re on shared hosting, so I’m not too hopeful. :-(

Infarinato (talk)20:27, 11 April 2012