Last modified: 2008-07-28 23:01:44 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 T16965, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 14965 - API usage example for action=parse gives PHP fatal error
API usage example for action=parse gives PHP fatal error
Status: RESOLVED FIXED
Product: MediaWiki
Classification: Unclassified
API (Other open bugs)
unspecified
All All
: Normal enhancement (vote)
: ---
Assigned To: Roan Kattouw
http://en.wikipedia.org/w/api.php?act...
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2008-07-28 21:20 UTC by Gurch
Modified: 2008-07-28 23:01 UTC (History)
2 users (show)

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


Attachments

Description Gurch 2008-07-28 21:20:47 UTC
The URL http://en.wikipedia.org/w/api.php?action=parse&text={{Project:Sandbox}} gives the teal screen of death with the following error message:

PHP fatal error in /usr/local/apache/common-local/php-1.5/includes/Title.php line 3005:
Call to a member function getInterwiki() on a non-object

This URL is used as the example in the API help given by http://en.wikipedia.org/w/api.php
Comment 1 Gurch 2008-07-28 21:21:41 UTC
Meh, Bugzilla didn't linkify that properly. Those last two curly braces should be included.
Comment 2 Chad H. 2008-07-28 22:40:48 UTC
Cannot reproduce right now. That's odd.
Comment 3 Brion Vibber 2008-07-28 22:46:51 UTC
Oh-ho! This is the error message I've been trying to track down... Got the bastard reproduced locally with a copy of http://en.wikipedia.org/w/index.php?title=Wikipedia:Sandbox&action=edit&oldid=228472485 ...
Comment 4 Brion Vibber 2008-07-28 22:53:07 UTC
Added a type hint in r38157 which provides more useful error output:

Catchable fatal error: Argument 1 passed to Title::equals() must be an instance of Title, null given, called in /Library/WebServer/Documents/trunk/includes/Linker.php on line 1323 and defined in /Library/WebServer/Documents/trunk/includes/Title.php on line 3003

Regression caused by r38149, which changes Linker's section editing links creation to use $wgTitle in a comparison.
Comment 5 Brion Vibber 2008-07-28 23:01:44 UTC
I've reverted the buggy revision for now in r38158.

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


Navigation
Links