Jump to content

Topic on Project:Support desk/Flow

Pages with apostrophes in title broken

3
Summary by Ciencia Al Poder

Extension not compatible with 1.27, I've reported that on the extension's talk page.

Hsekiu (talkcontribs)

We recently upgraded from 1.26.3 to 1.27.0 and recently noticed page's with apostrophe's in the title have been broken and we receive the following error:

Fatal error: Call to a member function getLocalURL() on null in /home/crygaia/public_html/wiki/w/includes/skins/Skin.php on line 1051

Opening up the file in question gives this section:

static function makeSpecialUrl( $name, $urlaction = '', $proto = null ) {

$title = SpecialPage::getSafeTitleFor( $name );

if ( is_null( $proto ) ) {

return $title->getLocalURL( $urlaction );

} else {

return $title->getFullURL( $urlaction, false, $proto );

}

}

I don't see anything particularly wrong with it, so I'm confused as to why this is suddenly happening. You can see an example here. Any help would be appreciated.

Ciencia Al Poder (talkcontribs)

It's trying to create a link to a special page. This may be a problem with one of the extensions you're using. Can you try disabling all extensions and see if the error disappears? Then enable one by one until you find which one is causing the error.

Hsekiu (talkcontribs)