Page MenuHomePhabricator

SkinTemplate.php error
Closed, ResolvedPublic

Description

Author: jht

Description:
PHP dies with a fatal error when trying to use a skin.

This fixed it for me:

$ diff -c phase3/includes/SkinTemplate.php mediawiki-1.17/includes/

  • phase3/includes/SkinTemplate.php 2010-11-11 00:10:10.000000000 +0000
  • mediawiki-1.17/includes/SkinTemplate.php 2010-11-13 09:06:30.000000000 +0000 ***
  • 217,223 **** $tpl->setRef( 'xhtmldefaultnamespace', $wgXhtmlDefaultNamespace ); $tpl->set( 'xhtmlnamespaces', $wgXhtmlNamespaces ); $tpl->set( 'html5version', $wgHtml5Version );

! $tpl->set( 'headlinks', $out->getHeadLinks( $this->getSkinName() ) );

$tpl->set( 'csslinks', $out->buildCssLinks() );

if( $wgUseTrackbacks && $out->isArticleRelated() ) {
  • 217,223 ---- $tpl->setRef( 'xhtmldefaultnamespace', $wgXhtmlDefaultNamespace ); $tpl->set( 'xhtmlnamespaces', $wgXhtmlNamespaces ); $tpl->set( 'html5version', $wgHtml5Version );

! $tpl->set( 'headlinks', $out->getHeadLinks( $this ) );

$tpl->set( 'csslinks', $out->buildCssLinks() );

if( $wgUseTrackbacks && $out->isArticleRelated() ) {

Version: 1.17.x
Severity: major

Details

Reference
bz25908

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 21 2014, 11:19 PM
bzimport set Reference to bz25908.
bzimport added a subscriber: Unknown Object (MLST).