Last modified: 2012-09-13 22:33:04 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 T33820, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 31820 - Backtrace on action=expandtemplates
Backtrace on action=expandtemplates
Status: RESOLVED FIXED
Product: MediaWiki
Classification: Unclassified
Parser (Other open bugs)
1.18.x
All All
: Normal major with 1 vote (vote)
: ---
Assigned To: Platonides
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2011-10-19 13:30 UTC by Marius Hoch
Modified: 2012-09-13 22:33 UTC (History)
3 users (show)

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


Attachments

Description Marius Hoch 2011-10-19 13:30:26 UTC
On bnwiki several pages including infoboxes aren't rendering (action=render returns an empty html document). Even the content outside of the template isn't showing up and there is no visible template error.

Example:
[[bn:মোহাভি মরুভূমি]]
action=parse returning an empty document:
http://bn.wikipedia.org/w/api.php?action=parse&title=%E0%A6%AE%E0%A7%8B%E0%A6%B9%E0%A6%BE%E0%A6%AD%E0%A6%BF%20%E0%A6%AE%E0%A6%B0%E0%A7%81%E0%A6%AD%E0%A7%82%E0%A6%AE%E0%A6%BF
action=expandtemplates gives a PHP error:
http://bn.wikipedia.org/w/api.php?action=expandtemplates&title=%E0%A6%AE%E0%A7%8B%E0%A6%B9%E0%A6%BE%E0%A6%AD%E0%A6%BF%20%E0%A6%AE%E0%A6%B0%E0%A7%81%E0%A6%AD%E0%A7%82%E0%A6%AE%E0%A6%BF
Comment 1 Platonides 2011-10-19 14:12:42 UTC
action=parse & action=expandtemplates need the text parameter with the content. title doesn't automatically fetch the content from the wiki. Behavior in 1.17 is the same.
In trunk expandtemplates will give an error 'The text parameter must be set'.
Comment 2 Mark A. Hershberger 2011-10-19 14:16:57 UTC
API Error:

<?xml version="1.0"?>
<api servedby="srv296">
  <error code="internal_api_error_MWException" info="Exception Caught: Internal error in ApiResult::setElement: Bad parameter" xml:space="preserve">

#0 /usr/local/apache/common-local/php-1.18/includes/api/ApiBase.php(1241): wfDebugDieBacktrace('Internal error ...')
#1 /usr/local/apache/common-local/php-1.18/includes/api/ApiResult.php(149): ApiBase::dieDebug('ApiResult::setE...', 'Bad parameter')
#2 /usr/local/apache/common-local/php-1.18/includes/api/ApiResult.php(180): ApiResult::setElement(Array, '*', NULL)
#3 /usr/local/apache/common-local/php-1.18/includes/api/ApiExpandTemplates.php(84): ApiResult::setContent(Array, NULL)
#4 /usr/local/apache/common-local/php-1.18/includes/api/ApiMain.php(692): ApiExpandTemplates->execute()
#5 /usr/local/apache/common-local/php-1.18/includes/api/ApiMain.php(358): ApiMain->executeAction()
#6 /usr/local/apache/common-local/php-1.18/includes/api/ApiMain.php(342): ApiMain->executeActionWithErrorHandling()
#7 /usr/local/apache/common-local/php-1.18/api.php(115): ApiMain->execute()
#8 /usr/local/apache/common-local/live-1.5/api.php(3): require('/usr/local/apac...')
#9 {main}

</error>
</api>
Comment 3 Marius Hoch 2011-10-19 14:48:29 UTC
(In reply to comment #1)
> action=parse & action=expandtemplates need the text parameter with the content.
> title doesn't automatically fetch the content from the wiki. Behavior in 1.17
> is the same.
> In trunk expandtemplates will give an error 'The text parameter must be set'.

That's true and I usually do it that way, but this time I did it that way cause the text={{... form which I tried first didn't work. So both ways produce empty pages, but only the title one a PHP error, dunno if that's caused by the page or is another error (but I'm sure it shouldn't be that way)
Comment 4 Platonides 2011-10-19 22:00:23 UTC
Tagged r93977 for merging to fix the backtrace.
Comment 5 Sam Reed (reedy) 2011-10-19 22:04:38 UTC
(In reply to comment #4)
> Tagged r93977 for merging to fix the backtrace.

Isn't it's prequisite also needed?
Comment 6 Marius Hoch 2012-09-13 22:33:04 UTC
Has been fixed as it seems (tested with examples out of the first comment)

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


Navigation
Links