Author: a.steffan
Description:
Hello, there occurs a grave error when I try to open a special page like "Letzte Änderungen" (Recent changes) or "Zufällige Seite" (Random article) and the setting $wgGroupPermissions['*']['read'] is set to false ($wgGroupPermissions['*']['read'] = false;).
The page loading fails and throw following error:
Invalid special page name ""
Backtrace:
#0 /services/www/wwwroot/mscwiki/current/current/includes/Title.php(1307): SpecialPage::getTitleFor(false)
#1 /services/www/wwwroot/mscwiki/current/current/includes/Wiki.php(133): Title->userCanRead()
#2 /services/www/wwwroot/mscwiki/current/current/includes/Wiki.php(43): MediaWiki->preliminaryChecks(Object(Title), Object(StubObject), Object(WebRequest))
#3 /services/www/wwwroot/mscwiki/current/current/index.php(89): MediaWiki->initialize(Object(Title), Object(StubObject), Object(User), Object(WebRequest))
#4 {main}
To get the mediawiki running I had to modify the Title.php:
I modified the includes/Title.php
I added this line
$name = str_replace(" ",'_',$name);
above this one.
list( $name, /* $subpage */) = SpecialPage::resolveAliasWithSubpage( $name );
Version: 1.11.x
Severity: critical
OS: Linux