Page MenuHomePhabricator

Various errors thrown on the OOUI MediaWiki Core documentation site doc.wikimedia.org/mediawiki-core/master/js/
Open, HighPublicBUG REPORT

Description

List of steps to reproduce (step by step, including full links if applicable):

What happens?:

TypeError: undefined is not a function (near '...mw.log.makeDeprecated...')
https://doc.wikimedia.org/mediawiki-core/master/js/modules/src/mediawiki.base/mediawiki.base.js:79
ReferenceError: Can't find variable: OO
https://doc.wikimedia.org/mediawiki-core/master/js/modules/lib/ooui/oojs-ui-core.js:14013
ReferenceError: Can't find variable: OO
https://doc.wikimedia.org/mediawiki-core/master/js/modules/lib/ooui/oojs-ui-widgets.js:6278
ReferenceError: Can't find variable: OO
https://doc.wikimedia.org/mediawiki-core/master/js/modules/lib/ooui/oojs-ui-toolbars.js:2673

Screen Shot 2021-11-30 at 9.30.00 AM.png (608×2 px, 140 KB)

What should have happened instead?:

An input field should be display demonstrating the example code given and how it works.

Event Timeline

I can't even say for sure if this has ever worked under this address!?
@DAlangi_WMF In the meantime please refer to https://doc.wikimedia.org/oojs-ui/master/js/#!/api/OO.ui.TextInputWidget

matmarex added a subscriber: Krinkle.

(Not a problem with OOUI, only with MediaWiki)

(Previous similar issue: T168812)

Tgr triaged this task as High priority.Wed, Jan 19, 6:43 AM
Tgr added a subscriber: Tgr.

MW core JS documentation is flat out broken: https://doc.wikimedia.org/mediawiki-core/master/js/
I just see the loading animation going on forever.

Not sure if this is the same issue that was reported in November, as the errors are different:

  • Failed to load resource: the server responded with a status of 404 () data-d3ee2f2bb220e5bbd6289da62c1cf3db.js:1
  • Failed to load resource: the server responded with a status of 404 () app-0c945a27f43452df695771ddb60b3d14.js:1
  • Uncaught TypeError: Cannot read properties of undefined (reading 'localStorageDb') at app-0c945a27f43452df695771ddb60b3d14.js:1:87605
  • Refused to load the stylesheet 'https://fonts.googleapis.com/css?family=Exo' because it violates the following Content Security Policy directive: "style-src 'unsafe-inline' 'self'".
  • doc.wikimedia.org/:1 Unchecked runtime.lastError: The message port closed before a response was received.
  • doc.wikimedia.org/:1 Refused to load the stylesheet 'https://fonts.googleapis.com/css?family=Exo' because it violates the following Content Security Policy directive: "style-src 'unsafe-inline' 'self'".

Presumably the CSP ones are not that important but some JS files seem to be missing entirely.