Last modified: 2012-04-16 09:16:01 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 T33169, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 31169 - Paraminfo for upload module is broken
Paraminfo for upload module is broken
Status: RESOLVED FIXED
Product: MediaWiki
Classification: Unclassified
API (Other open bugs)
unspecified
All All
: Unprioritized major (vote)
: ---
Assigned To: Nobody - You can work on this!
http://de.wikipedia.org/w/api.php?act...
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2011-09-26 18:13 UTC by Bergi
Modified: 2012-04-16 09:16 UTC (History)
5 users (show)

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


Attachments
proposed patch (558 bytes, patch)
2011-09-26 18:16 UTC, Bergi
Details

Description Bergi 2011-09-26 18:13:51 UTC
Trying to call paraminfo for the upload module returns a technical error:

PHP fatal error in /usr/local/apache/common-local/php-1.17/includes/api/ApiUpload.php line 497: 
 Call to undefined method ApiUpload::getRequireOnlyOneParameterErrorMessages()

I'm not sure what this method should do (rarely documented in ApiBase) and I'm not an PHP expert, but I guess its about line 582 (see applied patch).
Comment 1 Bergi 2011-09-26 18:16:29 UTC
Created attachment 9103 [details]
proposed patch
Comment 2 Sam Reed (reedy) 2011-09-26 18:16:56 UTC
http://en.wikipedia.org/w/api.php?action=paraminfo&modules=upload


http://test2.wikipedia.org/w/api.php?action=paraminfo&modules=upload


It's already fixed in 1.18

I've got a feeling I might've backported it
Comment 3 Sam Reed (reedy) 2011-09-26 18:19:16 UTC
(In reply to comment #1)
> Created attachment 9103 [details]
> proposed patch

Nope, this isn't the fix, the parent method isn't a static method
Comment 5 Sam Reed (reedy) 2011-09-26 18:22:49 UTC
r98153
Comment 6 Bergi 2011-09-26 18:30:53 UTC
Thanks, that was fast :-)

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


Navigation
Links