Closed desb42 closed 5 years ago
Yeah, that looks like the issue. Will do this next, but am busy this weekend.
Thanks!
Back from weekend, but about to dive into busy work week.
That said, I updated mw.wikibase.entity.lua to match the latest version. Tested with fr.wikipedia.org/wiki/Fernand_Lemay
Thanks again for the detailed report. Hopefully frwiki builds better now!
just been running a build of frwiki (2019-08-01), for the mass.parse the namespaces I use are 0|4|8|12|14|100 No sign of the above issue - which is great
However, I have hit the unique constraint issue #526 again
The unique constraint issue, in this case is of my own making I tried to fix something for enwikisource (which has unique constraint issues) and caused this problem for frwiki
I think that this issue (getId) can be closed
Cool, no worries. Thanks!
Unfortunately not.
I have just been trying to rebuild enwiki and get #invoke errors For example en.wikipedia.org/wiki/Basel
Gives method not implemented
This is due to the changes in mw.wikibase.lua (and Scrib_lib_wikibase.java)
In mw.wikibase.lua are the lines
if not php.getSetting( 'allowArbitraryDataAccess' ) and entityId ~= wikibase.getEntityIdForCurrentPage() then
error( 'Access to arbitrary entities has been disabled.', 2 )
end
The setting 'allowArbitraryDataAccess' triggers the unimplemented method
Either comment out these lines or change Scrib_lib_wikibase.java to handle the setting
Ugh. Let me figure out what is the best way to handle this.
In the meantime, please do keep the lines commented out for now. Thanks.
So, this was more involved than I expected. Fixed with the commit above, but the change has a bit higher risk.
More details below.
Thanks again for the follow-thru.
php.getSetting
in mw.wikibase
was actually calling php.getSetting
in mw.wikibase.entity
.
php.getSetting
in mw.wikibase
then it would have worked properlyphp.getSetting
in mw.wikibase.entity
should have the same implementation as php.getSetting
in mw.wikibase
Just been trying this Integrated into my version and on trying en.wikipedia.org/wiki/Kerodon I get errors of the form
Script error: @mw.wikibase.entity.lua:65 attempt to call nil
I then tried building using xowa_get_and_make.sh and this too has the same problem
On reviewing the commit I noticed that the value returned on a getSetting on fineGrainedLuaTracking
has changed from false to true
If in my version, I change 400_xowa\src\gplx\xowa\xtns\wbases\mediawiki\client\config\WikibaseClientDefault.java Line 44
to return false instead of true, the problem goes away
Nice catch. Thanks for the break-downl
The above commit does two things:
@mw.wikibase.entity.lua:65 attempt to call nil
). It occurs because of a typo on addSiteLinksUsage
(was incorrectly written without th s
). Oops.fineGrainedTracking
even though it is enabled on wikimedia because it generates extra unnecessary calls to Scribunto, which can't help performance.Anyway, moving this back to done. Thanks again!
While rebuilding hdump of frwiki this page fr.wikipedia.org/wiki/Fernand_Lemay gives the error
Looking at Module:Infobox/Cycliste 218 yields:
using
dbg(mw.dump_table(item))
I can see nogetId
Investigating, I came across this https://github.com/wikimedia/mediawiki-extensions-Wikibase/blob/3174995968c07d2cc64e0d9c60070650e6eefd0e/client/includes/DataAccess/Scribunto/mw.wikibase.entity.lua
This contains some reference to
getID
Somehow this lua module is incorporated and applied to all wikibase objects (No idea how)