Page MenuHomeMiraheze

Internal error when accessing a diff page on nonbinary wiki
Closed, ResolvedPublic

Description

(setting this as high as it blocks me from reviewing edits).

Whenever I try to access a diff page on nonbinary wiki (example), I get an internal error:

[4ccbcf50799164327e45009b] 2019-01-11 15:14:36: Fatal exception of type "Error"

@The_Pioneer has confirmed that he has the same problem.

Event Timeline

NeoMahler triaged this task as High priority.Jan 11 2019, 15:17
NeoMahler created this task.

When I open the console, I see the following messages:

GET https://matomo.miraheze.org/piwik.js net::ERR_BLOCKED_BY_CLIENT
(anonymous) @ index.php?title=Glossary_of_English_gender_and_sex_terminology&curid=1393&diff=6412&oldid=6162:164
(anonymous) @ index.php?title=Glossary_of_English_gender_and_sex_terminology&curid=1393&diff=6412&oldid=6162:165

JQMIGRATE: Migrate is installed with logging active, version 3.0.1

Refused to load the script 'https://nonbinary.wiki/w/index.php?title=MediaWiki%3AGadget-HotCat.js%2Flocal_defaults&action=raw&ctype=text/javascript' because it violates the following Content Security Policy directive: "default-src 'self' data:  *.miraheze.org *.wikimedia.org *.wikipedia.org *.wikibooks.org *.wiktionary.org *.wikiquote.org *.wikisource.org *.wikiversity.org *.wikinews.org *.wikivoyage.org *.mediawiki.org mediawiki.org *.wikidata.org wikidata.org *.wmflabs.org *.google.com *.gstatic.com *.addthis.com *.youtube.com *.youtube-nocookie.com maxcdn.bootstrapcdn.com twitter.com *.creativecommons.org images.uncyc.org www.mikrodev.com *.reviservices.com *.twitter.com www.sciencedaily.com *.googleapis.com *.twimg.com discordapp.com *.tile.openstreetmap.org *.freenode.net *.sorcery.net *.fontawesome.com *.a.wmflabs.org 'unsafe-inline' 'unsafe-eval'". Note that 'script-src-elem' was not explicitly set, so 'default-src' is used as a fallback.

load @ index.php?title=MediaWiki:Gadget-HotCat.js&action=raw&ctype=text/javascript:258
loadJS @ index.php?title=MediaWiki:Gadget-HotCat.js&action=raw&ctype=text/javascript:262
(anonymous) @ index.php?title=MediaWiki:Gadget-HotCat.js&action=raw&ctype=text/javascript:275
(anonymous) @ index.php?title=MediaWiki:Gadget-HotCat.js&action=raw&ctype=text/javascript:3240
Paladox assigned this task to Southparkfan.
Paladox subscribed.

Fixed by @Southparkfan

Hmm, so I guess it was related to the local gadget. A similar problem also happened on Usopedia (which I fixed it by myself by deleting the script referring to non-listed site), and there might be similar issues coming up on other wikis.

Local crats can fix it by: accessing to the wiki with js disabled, add editsitejs permissions to themselves, and disable the script linking to non-listed sites.

Just a note.