Page MenuHomePhabricator

mw.wikibase.getReferencedEntityId() fails
Open, Needs TriagePublic


Sometimes mw.wikibase.getReferencedEntityId() calls unexpectedly fail. For instance, a single

mw.wikibase.getReferencedEntityId( 'Q637739', 'P31', { 'Q7397', 'Q2095', 'Q55488' } )

call gives the German result

Lua-Fehler: Zu viele Aufrufe von „mw.wikibase.getReferencedEntityId“, nur bis zu 3 sind erlaubt.

(Too many mw.wikibase.getReferencedEntityId calls. Only three are allowed.)

I do not know what happened because it is only a single call, and there are only three P31 values. What can be done to prevent or to catch this error message?

This function restriction is not documented in the Wikibase documentation at

Event Timeline

Restricted Application added a subscriber: Aklapper. · View Herald TranscriptJun 30 2019, 9:48 AM

Missing Lua documentation is a big problem, see T225497, too.

@hoo could you have a look please?

hoo added a comment.Nov 1 2019, 11:27 AM

This is possibly related to stashed edits, we might need to reset the limit on parser init, but that needs to be tested.

Addshore added a subscriber: Addshore.

Leaving to be prioritized in the product column

@RolandUnger Do you have an example page that this is happening on?
That will help us figure out exactly what is going on here.