Last modified: 2013-11-15 11:10:08 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 T48405, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 46405 - mw.title.new( pageid ) fails with Mediawiki error if pageid doesn't exist
mw.title.new( pageid ) fails with Mediawiki error if pageid doesn't exist
Status: RESOLVED FIXED
Product: MediaWiki extensions
Classification: Unclassified
Scribunto (Other open bugs)
unspecified
All All
: Normal normal (vote)
: ---
Assigned To: Brad Jorsch
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-03-21 06:27 UTC by Robert Rohde
Modified: 2013-11-15 11:10 UTC (History)
3 users (show)

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


Attachments

Description Robert Rohde 2013-03-21 06:27:40 UTC
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
Comment 1 Brad Jorsch 2013-03-21 13:40:18 UTC
Gerrit change #55052
Comment 2 Brad Jorsch 2013-03-26 16:07:33 UTC
Change is merged.
Comment 3 Gerrit Notification Bot 2013-11-14 15:19:07 UTC
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
Comment 4 Gerrit Notification Bot 2013-11-14 15:26:19 UTC
Change 95394 merged by MarkAHershberger:
(bug 46405) Fix errors in mw.title.new( pageid )

https://gerrit.wikimedia.org/r/95394
Comment 5 Andre Klapper 2013-11-15 11:10:08 UTC
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.

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


Navigation
Links