Name
Name

Reputation: 139

Mediawiki API error: "Unrecognized value for parameter 'prop': extracts"

I`am using the Mediawiki API offline on my server.

I installed everything and it works but if i try a query it returns the error: "Unrecognized value for parameter 'prop': extracts" than i installed the TextExtracts extension and also the MobileFrontend extension, but it's still not working.

I tried this from the answer in this question.

My url:

api.php?action=parse&page=Paul_McCartney&prop=extracts&format=xml

error:

http://prntscr.com/9y6df7

Mediawiki versions:

http://prntscr.com/9y6d01

Upvotes: 0

Views: 1088

Answers (1)

Florian
Florian

Reputation: 2874

The TextExtracts extension implements a query Api module, so you can't use the extracts prop with the parse action. Instead of your url, you can use:

api.php?action=query&page=Paul_McCartney&prop=extracts&format=xml (see the action parameter, which changed from parse to query)

to get the extracts prop.

Upvotes: 2

Related Questions