Page MenuHomePhabricator

mw.title.new( pageid ) fails with Mediawiki error if pageid doesn't exist
Closed, ResolvedPublic

Description

If you call mw.title.new with a pageid that doesn't correspond to an actual page, then you get the Mediawiki error page with message:

PHP fatal error in /usr/local/apache/common-local/php-1.21wmf11/extensions/Scribunto/engines/LuaCommon/TitleLibrary.php line 60:
Argument 1 passed to Scribunto_LuaTitleLibrary::returnTitleToLua() must be an instance of Title, null given, called in /usr/local/apache/common-local/php-1.21wmf11/extensions/Scribunto/engines/LuaCommon/TitleLibrary.php on line 139 and defined


Version: unspecified
Severity: normal

Details

Reference
bz46405

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 22 2014, 1:36 AM
bzimport added a project: Scribunto.
bzimport set Reference to bz46405.

Change 95394 had a related patch set uploaded by MarkAHershberger:
(bug 46405) Fix errors in mw.title.new( pageid )

https://gerrit.wikimedia.org/r/95394

Change 95394 merged by MarkAHershberger:
(bug 46405) Fix errors in mw.title.new( pageid )

https://gerrit.wikimedia.org/r/95394

No open patches to review here (backport patch to REL_1_21 got merged), hence resetting status to RESOLVED FIXED. Backport_to_Stable flag might be set to "+" by hexmode.