[Wikidata-bugs] [Maniphest] [Commented On] T170039: Pages display Lua error in mw.wikibase.entity.lua

2017-08-08 Thread Johnuniq
Johnuniq added a comment.
Using Special:Search for "data.schemaVersion must be a number" (with quotes) shows many of the mw.wikibase.entity.lua at line 37: data.schemaversion must be a number, got nil instead problems. That applies at enwiki (330 pages listed), but itwiki wins with over 5700 pages. Possibly the problem pages are noticed and purged more quickly at enwiki.TASK DETAILhttps://phabricator.wikimedia.org/T170039EMAIL PREFERENCEShttps://phabricator.wikimedia.org/settings/panel/emailpreferences/To: JohnuniqCc: Dvorapa, Mr.Ibrahem, Ladsgroup, eranroz, IKhitron, Kipod, zhuyifei1999, PokestarFan, hoo, Anomie, gerritbot, thiemowmde, Salgo60, AnotherLadsgroup, RolandUnger, Larske, Arbnos, daniel, putnik, Framawiki, Zebulon84, Thibaut120094, TerraCodes, Jay8g, Liuxinyu970226, aude, Vachovec1, Zdzislaw, ValterVB, Agabi10, Ankry, Jarekt, Lydia_Pintscher, matej_suchanek, JohnBlackburne, Aklapper, Johnuniq, Cosine02, Lordiis, GoranSMilovanovic, Adik2382, Th3d3v1ls, Ramalepe, Liugev6, QZanden, Lewizho99, JJMC89, Maathavan, SundanceRaphael, Johan, Izno, Luke081515, Nirmos, Cwek, Wikidata-bugs, Dinoguy1000, jayvdb, MrStradivarius, Arlolra, TheDJ, Jackmcbarn, Mbch331___
Wikidata-bugs mailing list
Wikidata-bugs@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikidata-bugs


[Wikidata-bugs] [Maniphest] [Commented On] T170039: Pages display Lua error in mw.wikibase.entity.lua

2017-07-25 Thread Johnuniq
Johnuniq added a comment.
The new error message was mentioned at en:WP:VPT and I replied that it is part of the "what exactly the problem is" patch mentioned by hoo above. I also noted that I recently purged articles with script errors, and it is currently adding about four articles per hour.TASK DETAILhttps://phabricator.wikimedia.org/T170039EMAIL PREFERENCEShttps://phabricator.wikimedia.org/settings/panel/emailpreferences/To: JohnuniqCc: eranroz, IKhitron, Kipod, zhuyifei1999, PokestarFan, hoo, Anomie, gerritbot, thiemowmde, Salgo60, AnotherLadsgroup, RolandUnger, Larske, Arbnos, daniel, putnik, Framawiki, Zebulon84, Thibaut120094, TerraCodes, Jay8g, Liuxinyu970226, aude, Vachovec1, Zdzislaw, ValterVB, Agabi10, Ankry, Jarekt, Lydia_Pintscher, matej_suchanek, JohnBlackburne, Aklapper, Johnuniq, Cosine02, Lordiis, GoranSMilovanovic, Adik2382, Th3d3v1ls, Ramalepe, Liugev6, QZanden, Lewizho99, JJMC89, Maathavan, Johan, Izno, Luke081515, Cwek, Wikidata-bugs, Dinoguy1000, jayvdb, MrStradivarius, Arlolra, TheDJ, Jackmcbarn, Mbch331___
Wikidata-bugs mailing list
Wikidata-bugs@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikidata-bugs


[Wikidata-bugs] [Maniphest] [Commented On] T170039: Pages display Lua error in mw.wikibase.entity.lua

2017-07-17 Thread Johnuniq
Johnuniq added a comment.
Any comments about my guess in the initial report? I speculated that php.getEntityId in mw.wikibase.lua sometimes returns junk due to a timeout when it tries to establish a network connection with the Wikidata database (that I know nothing about).

On the other hand, I saw something yesterday that made me wonder if mw.title.new in mw.title.lua sometimes has a problem when it executes php.newTitle (see en:WP:VPT). I see that mw.wikibase.lua uses mw.title.getCurrentTitle, if that is a clue about a possible failure point.TASK DETAILhttps://phabricator.wikimedia.org/T170039EMAIL PREFERENCEShttps://phabricator.wikimedia.org/settings/panel/emailpreferences/To: JohnuniqCc: Larske, Arbnos, daniel, putnik, Framawiki, Zebulon84, Thibaut120094, TerraCodes, Jay8g, Liuxinyu970226, aude, Vachovec1, Zdzislaw, ValterVB, Agabi10, Ankry, Jarekt, Lydia_Pintscher, matej_suchanek, JohnBlackburne, Aklapper, Johnuniq, Cosine02, GoranSMilovanovic, QZanden, JJMC89, Johan, Izno, Luke081515, Cwek, Wikidata-bugs, Dinoguy1000, jayvdb, MrStradivarius, Anomie, Arlolra, TheDJ, Jackmcbarn, Mbch331___
Wikidata-bugs mailing list
Wikidata-bugs@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikidata-bugs


[Wikidata-bugs] [Maniphest] [Edited] T170039: Pages display Lua error in mw.wikibase.entity.lua

2017-07-10 Thread Johnuniq
Johnuniq updated the task description. (Show Details)
CHANGES TO TASK DESCRIPTION...* [[ https://en.wikipedia.org/wiki/Nanluoguxiang_Station | enwiki ]] + [[ https://en.wikipedia.org/wiki/Stephen_King%27s_F13 | 2 ]] + [[ https://en.wikipedia.org/wiki/Ribemont-sur-Ancre | 3 ]] + [[ https://en.wikipedia.org/wiki/Tosa,_K%C5%8Dchi | 4 ]] + [[ https://en.wikipedia.org/wiki/Strup%C4%8Dice | 5 ]] + [[ https://en.wikipedia.org/wiki/Dai_County | 6 ]] + [[ https://en.wikipedia.org/wiki/Antonios_Katinaris | 7 ]] + [[ https://en.wikipedia.org/wiki/Wakuya_Station | 8 ]]
* [[ https://zh.wikipedia.org/wiki/%E5%AF%BC%E5%BC%B9%E6%8C%87%E6%8C%A5%E5%AE%98 | zhwiki4%A7%E8%BE%9B%E5%BA%97%E9%95%87 | zhwiki ]] + [[ https://zh.wikipedia.org/wiki/%E4%BC%AF%E5%AB%A9 | 2 ]] + [[ https://zh.wikipedia.org/wiki/%E4%B9%8C%E5%85%B0%E5%8A%AA%E5%A4%AB | 3 ]] + [[ https://zh.wikipedia.org/wiki/%E5%B9%B3%E7%8E%8B%E4%B9%A1 | 4 ]] + [[ https://zh.wikipedia.org/wiki/%E7%9F%B3%E7%89%99%E4%B9%A1 | 5 ]]...TASK DETAILhttps://phabricator.wikimedia.org/T170039EMAIL PREFERENCEShttps://phabricator.wikimedia.org/settings/panel/emailpreferences/To: JohnuniqCc: Agabi10, Ankry, Jarekt, Lydia_Pintscher, matej_suchanek, JohnBlackburne, Aklapper, Johnuniq, Cosine02, GoranSMilovanovic, QZanden, Izno, Wikidata-bugs, aude, Mbch331___
Wikidata-bugs mailing list
Wikidata-bugs@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikidata-bugs


[Wikidata-bugs] [Maniphest] [Edited] T170039: Pages display Lua error in mw.wikibase.entity.lua

2017-07-08 Thread Johnuniq
Johnuniq updated the task description. (Show Details)
CHANGES TO TASK DESCRIPTION...There was a discussion at [[ https://en.wikipedia.org/wiki/Wikipedia_talk:Wikidata#Wikidata_script_errors | at enwiki ]].TASK DETAILhttps://phabricator.wikimedia.org/T170039EMAIL PREFERENCEShttps://phabricator.wikimedia.org/settings/panel/emailpreferences/To: JohnuniqCc: Aklapper, Johnuniq, Cosine02, GoranSMilovanovic, QZanden, Izno, Wikidata-bugs, aude, Mbch331___
Wikidata-bugs mailing list
Wikidata-bugs@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikidata-bugs


[Wikidata-bugs] [Maniphest] [Created] T170039: Pages display Lua error in mw.wikibase.entity.lua

2017-07-08 Thread Johnuniq
Johnuniq created this task.Johnuniq added a project: Wikidata.Herald added subscribers: Cosine02, Aklapper.
TASK DESCRIPTIONAn intermittent problem occurs when a Lua module executes entity = mw.wikibase.getEntity() or its equivalent entity = mw.wikibase.getEntityObject().

The symptom is that a rendered page shows a big red error message saying:

Lua error in mw.wikibase.entity.lua at line 34: The entity data must be a table obtained via mw.wikibase.getEntityObject

and the page is added to Category:Pages_with_script_errors (or local equivalent).

The problem goes away when the page is purged so a link to a demonstration only works for a limited period. Currently, these pages show the error:


enwiki
zhwiki
wikisource


Using Special:Search for mw.wikibase.getEntityObject shows lots of cached examples:


commons
enwiki
zhwiki


Google search also shows examples. For example, search for one of the following then view Google's cache:

"error in mw.wikibase.entity.lua" site:commons.wikimedia.org
"error in mw.wikibase.entity.lua" site:en.wikipedia.org
"error in mw.wikibase.entity.lua" site:zh.wikipedia.org

The problem occurs when a Lua module uses Wikidata. That calls mw.wikibase.getEntity which calls php.getEntityId. I guess that sometimes times out when it tries to establish a network connection with the Wikidata database.

There was a discussion at at enwiki.TASK DETAILhttps://phabricator.wikimedia.org/T170039EMAIL PREFERENCEShttps://phabricator.wikimedia.org/settings/panel/emailpreferences/To: JohnuniqCc: Aklapper, Johnuniq, Cosine02, GoranSMilovanovic, QZanden, Izno, Wikidata-bugs, aude, Mbch331___
Wikidata-bugs mailing list
Wikidata-bugs@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikidata-bugs