Last modified: 2009-03-20 11:41:11 UTC
A query that works without a normal query or with export=true fails when using exportnowrap=true Compare http://en.wikipedia.org/w/api.php?action=query&prop=revisions&titles=Main%20Page&rvlimit=5&rvprop=timestamp%7Cuser%7Ccomment&format=xmlfm http://en.wikipedia.org/w/api.php?action=query&prop=revisions&titles=Main%20Page&rvlimit=5&rvprop=timestamp%7Cuser%7Ccomment&format=xmlfm&export=true http://en.wikipedia.org/w/api.php?action=query&prop=revisions&titles=Main%20Page&rvlimit=5&rvprop=timestamp%7Cuser%7Ccomment&format=xmlfm&exportnowrap=true The message I receive is: Internal error Internal error in ApiFormatRaw::getMimeType: No MIME type set for raw formatter Backtrace: #0 /usr/local/apache/common-local/php-1.5/includes/api/ApiBase.php(846): wfDebugDieBacktrace('Internal error ...') #1 /usr/local/apache/common-local/php-1.5/includes/api/ApiFormatRaw.php(44): ApiBase::dieDebug('ApiFormatRaw::g...', 'No MIME type se...') #2 /usr/local/apache/common-local/php-1.5/includes/api/ApiFormatBase.php(112): ApiFormatRaw->getMimeType() #3 /usr/local/apache/common-local/php-1.5/includes/api/ApiMain.php(455): ApiFormatBase->initPrinter(true) #4 /usr/local/apache/common-local/php-1.5/includes/api/ApiMain.php(290): ApiMain->printResult(true) #5 /usr/local/apache/common-local/php-1.5/includes/api/ApiMain.php(245): ApiMain->executeActionWithErrorHandling() #6 /usr/local/apache/common-local/php-1.5/api.php(77): ApiMain->execute() #7 /usr/local/apache/common-local/live-1.5/api.php(3): require('/usr/local/apac...') #8 {main}
&exportnowrap should only be used in conjunction with &export, not by itself. Of course a lone &exportnowrap should just be ignored rather than causing these errors, fixed that in r47827.
*** Bug 18026 has been marked as a duplicate of this bug. ***
I still get the error with r48562. http://radioscanningtw.jidanni.org/api.php?action=query&list=allpages&aplimit=1&export&exportnowrap http://radioscanningtw.jidanni.org/index.php?title=Special:Version
I mean to say I still get the error, and I'm up to r48562.
Reopening, as still seen at r48623.
(In reply to comment #5) > Reopening, as still seen at r48623. > Fixed in r48629