Page MenuHomePhabricator

ArticlePlaceholder fails at items with references: "attempt to call method 'getCurrentFrame' (a nil value)."
Closed, ResolvedPublic

Description

The MediaWiki extension ArticlePlaceholder have problems to render a page if the connected Wikidata item have references.

The error message presented is (in Esperanto):
"Lua-eraro en mw/ext/articlePlaceholder/referenceRenderer.lua, linio 38: attempt to call method 'getCurrentFrame' (a nil value)."

See examples:

https://eo.wikipedia.org/wiki/Speciala%C4%B5o:AboutTopic/Q600147 (with references)

flago_de_Madrido_-_Vikipedio_2019-10-21_19-29-06.jpg (808×1 px, 438 KB)

https://eo.wikipedia.org/wiki/Speciala%C4%B5o:AboutTopic/Q60068754 (without references)

The_Harding_Sugar_Reagent_-_Vi2019-10-21_19-29-21.jpg (2×1 px, 719 KB)

Event Timeline

Restricted Application added a subscriber: Aklapper. · View Herald Transcript
Aklapper renamed this task from ArticlePlaceholder fails at items with references to ArticlePlaceholder fails at items with references: "attempt to call method 'getCurrentFrame' (a nil value).".Oct 22 2019, 6:44 AM

This was caused by 1617bb3deb4e6f761caf3a7bfbee338bfbfe502a upstream, needs further investigating.

Change 546331 had a related patch set uploaded (by Hoo man; owner: Hoo man):
[mediawiki/extensions/ArticlePlaceholder@master] Don't rely on mw:getCurrentFrame()

https://gerrit.wikimedia.org/r/546331

Change 546331 merged by jenkins-bot:
[mediawiki/extensions/ArticlePlaceholder@master] Don't rely on mw:getCurrentFrame()

https://gerrit.wikimedia.org/r/546331

hoo claimed this task.
hoo moved this task from Incoming to Done on the ArticlePlaceholder board.
hoo removed a project: Patch-For-Review.