[MediaWiki-l] OutputPage.php won't render with Cometchat

David Shaw david.shaw.x23 at gmail.com
Wed Dec 9 19:26:12 UTC 2015

Any idea why this code causes the page to render blank?
In MW/includes/OutputPage.php, starting at line 3305 we find:


public function getHeadLinksArray() {
  global $wgVersion;

  $tags = array();
  $config = $this->getConfig();

  $canonicalUrl = $this->mCanonicalUrl;

After "$canonicalUrl = $this->mCanonicalUrl;" I inserted these lines per


  $tags[‘cometchat-footer-code-link’] = Html::element( ‘link’, array(
   ‘rel’ => ‘stylesheet’,
   ‘type’ => ‘text/css’,
   ‘charset’ => ‘utf-8’,
   ‘href’ => ‘/cometchat/cometchatcss.php’,
) );
  $tags[‘cometchat-footer-code-script’] = Html::element( ‘script’, array(
   ‘type’ => ‘text/javascript’,
   ‘charset’ => ‘utf-8’,
   ‘src’ => ‘/cometchat/cometchatjs.php’,
) );

And the page won't render. There is an associated call in the Vector
template but that is displaying ok. It only blows up when I change

The folks at Cometchat say it's an issue with caching.

Thank you,


More information about the MediaWiki-l mailing list