Last modified: 2013-06-05 14:11:28 UTC
I get an undefined offset notice in the client, when using the {{#property}} parser function to reference a property that is not used in the connected item. Notice: Undefined offset: 10 in /var/www/common/wikibase-client/extensions/Wikibase/lib/includes/ByPropertyIdArray.php on line 102 Call Stack: 0.0038 333960 1. {main}() /var/www/common/wikibase-client/index.php:0 0.0671 2665752 2. MediaWiki->run() /var/www/common/wikibase-client/index.php:59 0.0679 2666648 3. MediaWiki->main() /var/www/common/wikibase-client/includes/Wiki.php:458 0.1890 3454420 4. MediaWiki->performRequest() /var/www/common/wikibase-client/includes/Wiki.php:565 0.2545 3749072 5. MediaWiki->performAction() /var/www/common/wikibase-client/includes/Wiki.php:305 0.2561 3751200 6. ViewAction->show() /var/www/common/wikibase-client/includes/Wiki.php:439 0.2561 3751200 7. Article->view() /var/www/common/wikibase-client/includes/actions/ViewAction.php:44 0.5565 4835812 8. PoolCounterWork->execute() /var/www/common/wikibase-client/includes/Article.php:707 0.5862 4845752 9. PoolWorkArticleView->doWork() /var/www/common/wikibase-client/includes/PoolCounter.php:222 0.5863 4845840 10. WikitextContent->getParserOutput() /var/www/common/wikibase-client/includes/WikiPage.php:3427 0.5864 4846016 11. Parser->parse() /var/www/common/wikibase-client/includes/content/WikitextContent.php:300 0.5929 4862964 12. Parser->internalParse() /var/www/common/wikibase-client/includes/parser/Parser.php:386 0.5938 4864796 13. Parser->replaceVariables() /var/www/common/wikibase-client/includes/parser/Parser.php:1157 0.5986 4870520 14. PPFrame_DOM->expand() /var/www/common/wikibase-client/includes/parser/Parser.php:3101 0.5998 4876012 15. Parser->braceSubstitution() /var/www/common/wikibase-client/includes/parser/Preprocessor_DOM.php:1085 0.6070 4889580 16. Parser->callParserFunction() /var/www/common/wikibase-client/includes/parser/Parser.php:3278 0.6092 4946744 17. call_user_func_array() /var/www/common/wikibase-client/includes/parser/Parser.php:3560 0.6092 4947080 18. Wikibase\PropertyParserFunction::render() /var/www/common/wikibase-client/includes/parser/Parser.php:3560 9.0996 8830452 19. Wikibase\PropertyParserFunction->renderForEntityId() /var/www/common/wikibase-client/extensions/Wikibase/client/includes/parserhooks/PropertyParserFunction.php:199 9.1598 8859668 20. Wikibase\PropertyParserFunction->getClaimsForProperty() /var/www/common/wikibase-client/extensions/Wikibase/client/includes/parserhooks/PropertyParserFunction.php:142 9.2274 8894596 21. Wikibase\Claims->getClaimsForProperty() /var/www/common/wikibase-client/extensions/Wikibase/client/includes/parserhooks/PropertyParserFunction.php:91 9.2279 8903428 22. Wikibase\ByPropertyIdArray->getByPropertyId() /var/www/common/wikibase-client/extensions/Wikibase/DataModel/DataModel/Claim/Claims.php:182
https://gerrit.wikimedia.org/r/#/c/63710/
https://gerrit.wikimedia.org/r/63710 (Gerrit Change I7308c74e7de70b9c43da6f232270d8379ad4704b) | change APPROVED and MERGED [by Jeroen De Dauw]
Related URL: https://gerrit.wikimedia.org/r/64579 (Gerrit Change I7308c74e7de70b9c43da6f232270d8379ad4704b)
https://gerrit.wikimedia.org/r/64579 (Gerrit Change I7308c74e7de70b9c43da6f232270d8379ad4704b) | change APPROVED and MERGED [by Aude]
Verified in Wikidata demo sprint 22-6