Broken new page layout in MediaWiki 1.18.2
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,
Make sure $wgServer and $wgCanonicalServer, as well as $wgScriptPath are set correctly.
They seem to be!… Thanks for your reply, anyway.
Try adding:
ini_set('display_errors',1); $wgShowExceptionDetails=true;
and see what your error is.
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.)
Ugh. Try refreshing your MediaWiki files except your LocalSettings.php; don't touch your database.
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…
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.)
Try upgrading PHP, and/or your webserver.
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?
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. :-(