Lucas_Werkmeister_WMDE created this task.
Lucas_Werkmeister_WMDE added projects: Wikidata, Wikibase Extension Decoupling 
and Registration (Sprint 3).
Restricted Application added a subscriber: Aklapper.

TASK DESCRIPTION
  On Beta (example article 
<https://en.wikipedia.beta.wmflabs.org/wiki/Richard_Nov%C3%BD>), the “Add 
links” sidebar portlet fails with “An unknown error occurred.” WikibaseClient 
only produces this message in one place, as the failure case for an 
`mw.loader.using` call:
  
  name=wikibase.client.linkitem.init.js
    mw.loader.using(
        [
                'jquery.wikibase.linkitem',
                'mediawiki.Title',
                'mw.config.values.wbRepo'
        ],
        function () {
                // ...
        },
        function () {
                // Failure: This isn't very likely, but who knows
                $spinner.remove();
                $linkItemLink.show();
                mw.notify( mw.msg( 'unknown-error' ) );
        }
    );
  
  This doesn’t show any error details, but we can reveal them with a similar 
function call in dev tools:
  
    mw.loader.using(
        [
                'jquery.wikibase.linkitem',
                'mediawiki.Title',
                'mw.config.values.wbRepo'
        ],
        console.log,
        console.error
    );
  
  And this prints:
  
  > Error: "Unknown module: util.inherit"

TASK DETAIL
  https://phabricator.wikimedia.org/T257857

EMAIL PREFERENCES
  https://phabricator.wikimedia.org/settings/panel/emailpreferences/

To: Lucas_Werkmeister_WMDE
Cc: Lucas_Werkmeister_WMDE, Aklapper, Akuckartz, darthmon_wmde, Nandana, Lahi, 
Gq86, GoranSMilovanovic, QZanden, LawExplorer, _jensen, rosalieper, Scott_WUaS, 
Wikidata-bugs, aude, Lydia_Pintscher, Mbch331
_______________________________________________
Wikidata-bugs mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikidata-bugs

Reply via email to