https://bugzilla.wikimedia.org/show_bug.cgi?id=33865

--- Comment #5 from Sam Reed (reedy) <s...@reedyboy.net> 2012-01-21 20:51:53 
UTC ---
Replicable on trunk (exported article and dependant pages into my dev wiki)

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

#0 /home/reedy/mediawiki/trunk/phase3/includes/api/ApiBase.php(1300):
wfDebugDieBacktrace('Internal error ...')
#1 /home/reedy/mediawiki/trunk/phase3/includes/api/ApiResult.php(144):
ApiBase::dieDebug('ApiResult::setE...', 'Bad parameter')
#2 /home/reedy/mediawiki/trunk/phase3/includes/api/ApiResult.php(175):
ApiResult::setElement(Array, '*', NULL)
#3 /home/reedy/mediawiki/trunk/phase3/includes/api/ApiParse.php(278):
ApiResult::setContent(Array, NULL)
#4 /home/reedy/mediawiki/trunk/phase3/includes/api/ApiMain.php(706):
ApiParse->execute()
#5 /home/reedy/mediawiki/trunk/phase3/includes/api/ApiMain.php(361):
ApiMain->executeAction()
#6 /home/reedy/mediawiki/trunk/phase3/includes/api/ApiMain.php(345):
ApiMain->executeActionWithErrorHandling()
#7 /home/reedy/mediawiki/trunk/phase3/api.php(117): ApiMain->execute()
#8 {main}

</error>
</api>


wikitext is indeed the bad paramter, line 278 is the $result->setContent()

        if ( isset( $prop['wikitext'] ) ) {
            $result_array['wikitext'] = array();
            $result->setContent( $result_array['wikitext'], $this->text );
            if ( !is_null( $this->pstText ) ) {
                $result_array['psttext'] = array();
                $result->setContent( $result_array['psttext'], $this->pstText
);
            }
        }

-- 
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
You are on the CC list for the bug.

_______________________________________________
Wikibugs-l mailing list
Wikibugs-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to