Page MenuHomePhabricator

Fix two undefined variables in Question.php
Closed, ResolvedPublicPRODUCTION ERROR


Getting started

MediaWiki's Quiz extension is an extension that allows people to write quizzes in wikitext on wikiversity (i.e.

Install mediawiki locally. It is easiest (often) to use Vagrant for this. Enable Quiz as a role.

You can test that the extension is working by adding a sample quiz to your test wiki in wikitext. The quiz syntax is well documented here.

You can find the quiz extension in the vagrant repository by navigating to mediawiki/extensions/Quiz. If you haven't already, you will need to set up git, gerrit, and git-review, and install a gerrit hook to begin submitting commits to the Quiz extension.


Logs are reporting that two lines in the code have undefined variables. These variables should be defined:

1 Undefined variable: text in /srv/mediawiki/php-1.31.0-wmf.12/extensions/Quiz/Question.php on line 458
1 Undefined variable: rawClass in /srv/mediawiki/php-1.31.0-wmf.12/extensions/Quiz/Question.php on line 457

Event Timeline

Is someone mentoring this? If not, I m willing to mentor this task?

Aklapper renamed this task from Question.php undefined variables to Fix two undefined variables in Question.php.Dec 31 2017, 4:35 PM
Aklapper updated the task description. (Show Details)

Change 404433 had a related patch set uploaded (by Mvolz; owner: L10n-bot):
[mediawiki/extensions/Quiz@master] Fix Undefined Variable Bug

Change 404433 merged by jenkins-bot:
[mediawiki/extensions/Quiz@master] Fix Undefined Variable Bug

mmodell changed the subtype of this task from "Task" to "Production Error".Aug 28 2019, 11:09 PM