Wikimedia

Fix a call to undefined method WikiPage::getText() in the Wikilog extension

This task is about MediaWiki's Wikilog extension.

The "Wikilog" special page at https://newtestamentwiki.org/wiki/Special:Wikilog (that's the MediaWiki installation of the user who reported this problem originally) shows an error:

2017/11/01 20:05:33 [error] 524#524: *1189401 FastCGI sent in stderr: "PHP message: PHP Fatal error: Call to undefined method WikiPage::getText() in /var/www/newtestamentwiki/web/w/extensions/Wikilog/WikilogUtils.php on line 213" while reading response header from upstream, client: 141.226.173.11, server: newtestamentwiki.org, request: "GET /wiki/Special:Wikilog HTTP/1.1", upstream: "fastcgi://unix:/var/run/php5-fpm-newtestamentwiki.sock:", host: "newtestamentwiki.org", referrer: "https://newtestamentwiki.org/wiki/Special:SpecialPages" WikiPage::getText() was deprecated a long time and removed recently. The replacement is WikiPage::getContent() which returns an implementation of Content, which should be sued to access the text.

Task tags

  • fatal
  • cleanup
  • php

Students who completed this task

Rafid Aslam

Task type

  • code Code
close

2017