Last modified: 2010-11-13 17:22:27 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T27908, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 25908 - SkinTemplate.php error
SkinTemplate.php error
Status: RESOLVED FIXED
Product: MediaWiki
Classification: Unclassified
General/Unknown (Other open bugs)
1.17.x
All All
: Normal major (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2010-11-13 09:10 UTC by James Thompson
Modified: 2010-11-13 17:22 UTC (History)
1 user (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description James Thompson 2010-11-13 09:10:35 UTC
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() ) {
Comment 1 Alexandre Emsenhuber [IAlex] 2010-11-13 17:22:27 UTC
Fixed in r76633.

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links