Last modified: 2014-01-01 18:16:42 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 T61085, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 59085 - Exception from line 1216 of ApiBase.php: Unrecognized value for parameter 'action': templatedata
Exception from line 1216 of ApiBase.php: Unrecognized value for parameter 'ac...
Status: RESOLVED FIXED
Product: MediaWiki extensions
Classification: Unclassified
GWToolset (Other open bugs)
REL1_22-branch
All All
: Unprioritized normal (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-12-28 20:05 UTC by Jaider Andrade Ferreira
Modified: 2014-01-01 18:16 UTC (History)
3 users (show)

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


Attachments
Another problem (attibutes selection) (99.58 KB, image/png)
2014-01-01 14:15 UTC, Jaider Andrade Ferreira
Details

Description Jaider Andrade Ferreira 2013-12-28 20:05:37 UTC
In my wiki, when I click submit, in Step 1, I get:

[5a27ac7e] /wiki/Special:GWToolset Exception from line 1216 of ...w/includes/api/ApiBase.php: Unrecognized value for parameter 'action': templatedata

Backtrace:

#0 ...w/includes/api/ApiBase.php(1095): ApiBase->dieUsage(string, string)
#1 ...w/includes/api/ApiBase.php(948): ApiBase->parseMultiValue(string, string, boolean, array)
#2 ...w/includes/api/ApiBase.php(658): ApiBase->getParameterFromSettings(string, array, boolean)
#3 ...w/includes/api/ApiMain.php(689): ApiBase->extractRequestParams()
#4 ...w/includes/api/ApiMain.php(813): ApiMain->setupExecuteAction()
#5 ...w/includes/api/ApiMain.php(349): ApiMain->executeAction()
#6 ...w/extensions/GWToolset/includes/Adapters/Php/MediawikiTemplatePhpAdapter.php(116): ApiMain->execute()
#7 ...w/extensions/GWToolset/includes/Adapters/Php/MediawikiTemplatePhpAdapter.php(77): GWToolset\Adapters\Php\MediawikiTemplatePhpAdapter->retrieveTemplateData(Title)
#8 ...w/extensions/GWToolset/includes/Models/MediawikiTemplate.php(435): GWToolset\Adapters\Php\MediawikiTemplatePhpAdapter->retrieve(array)
#9 ...w/extensions/GWToolset/includes/Models/MediawikiTemplate.php(407): GWToolset\Models\MediawikiTemplate->retrieve()
#10 ...w/extensions/GWToolset/includes/Handlers/Forms/MetadataDetectHandler.php(230): GWToolset\Models\MediawikiTemplate->getMediaWikiTemplate(string)
#11 ...w/extensions/GWToolset/includes/Handlers/Forms/FormHandler.php(176): GWToolset\Handlers\Forms\MetadataDetectHandler->processRequest()
#12 ...w/extensions/GWToolset/includes/Specials/SpecialGWToolset.php(127): GWToolset\Handlers\Forms\FormHandler->execute()
#13 ...w/extensions/GWToolset/includes/Specials/SpecialGWToolset.php(72): GWToolset\SpecialGWToolset->processRequest()
#14 ...w/includes/SpecialPage.php(631): GWToolset\SpecialGWToolset->execute(NULL)
#15 ...w/includes/SpecialPageFactory.php(488): SpecialPage->run(NULL)
#16 ...w/includes/Wiki.php(298): SpecialPageFactory::executePath(Title, RequestContext)
#17 ...w/includes/Wiki.php(602): MediaWiki->performRequest()
#18 ...w/includes/Wiki.php(467): MediaWiki->main()
#19 ...w/index.php(49): MediaWiki->run()
#20 {main}
Comment 1 Jaider Andrade Ferreira 2013-12-28 20:11:27 UTC
GWToolset 0.1.0(911f696)
MediaWiki 1.22.0 (6071399)
PHP	  5.4.17 (cgi-fcgi)
Comment 2 Gerrit Notification Bot 2013-12-28 22:30:14 UTC
Change 104319 had a related patch set uploaded by Dan-nl:
add templatedata api check

https://gerrit.wikimedia.org/r/104319
Comment 3 dan 2013-12-28 22:35:27 UTC
jaider,

thanks for the bug report. for now, you should be able to overcome this 
exception by installing:

• http://www.mediawiki.org/wiki/Extension:TemplateDatahttp://www.mediawiki.org/wiki/Extension:Scribunto

note, you should also have the following MediaWiki templates imported or
already installed from Commons:

* [Artwork] ( http://commons.wikimedia.org/wiki/Template:Artwork )
* [Book] ( http://commons.wikimedia.org/wiki/Template:Book )
* [Musical work] ( http://commons.wikimedia.org/wiki/Template:Muscial_work )
* [Photograph] ( http://commons.wikimedia.org/wiki/Template:Photograph )
* [Specimen] ( http://commons.wikimedia.org/wiki/Template:Specimen )

you can read more in the attached patchset’s INSTALL instructions.
Comment 4 Gerrit Notification Bot 2014-01-01 13:07:50 UTC
Change 104319 merged by jenkins-bot:
add templatedata api check

https://gerrit.wikimedia.org/r/104319
Comment 5 dan 2014-01-01 13:16:32 UTC
jaider,

the patch has been merged into the master branch, so you can now update your local repo and not worry about including the extensions TemplateData and Scribunto.

please close this ticket if you’re satisfied with this patch. if not, please indicate what else needs to be addressed.
Comment 6 Jaider Andrade Ferreira 2014-01-01 14:14:43 UTC
Thank you, dan,

This extension is awesome.
One thing I want to suggest (but this is a feature request) is to add the possibility to filter (or to map) by xml attributes, too. Currently, you can only map by elements. This is bad to formats like MARCXML (a standard from the library community). See, for example: 

http://www.loc.gov/standards/marcxml/Sandburg/sandburg.xml

(I will upload the print screen showing the problem).

But, thanks again and congratulations. 
This extension is very promising for external projects, too (no only Wikimedia Commons).
Comment 7 Jaider Andrade Ferreira 2014-01-01 14:15:51 UTC
Created attachment 14206 [details]
Another problem (attibutes selection)
Comment 8 dan 2014-01-01 18:10:49 UTC
jaider, your welcome.

i’m glad to hear that you like the extension and see its potential outside of Wikimedia Commons. it has a broad history and includes input by many people. here is some of the background information on the project: https://commons.wikimedia.org/wiki/Commons:GLAMToolset_project.

the feature request you made is definitely something we aim to provide in the future if and when possible; it’s similar to this feature request: https://bugzilla.wikimedia.org/show_bug.cgi?id=58490.

if you don’t mind, would you close this bug and open another as a feature request similar to bug 58490.

thanks!

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


Navigation
Links