Page MenuHomePhabricator

Beta cluster: changes list special pages return Internal error: TypeError: Cannot read property 'limitDefault' of null
Closed, DuplicatePublic

Description

See, eg, https://en.wikipedia.beta.wmflabs.org/wiki/Special:RecentChanges or https://en.wikipedia.beta.wmflabs.org/wiki/Special:Watchlist
Nothing is shown, page title is just Internal error

Console includes a typeerror:

TypeError: Cannot read property 'limitDefault' of null
    at MwRcfiltersController.Controller.js.Controller.initialize (<anonymous>:309:163)
    at init (load.php?lang=en&modules=ext.guidedTour.styles|ext.guidedTour.tour.RcFiltersHighlight|jquery%2Coojs-ui-core%2Coojs-ui-widgets%2Csite|mediawiki.rcfilters.filters.ui&skin=vector&version=ngx62:419)
    at mw.rcfilters.init.js (load.php?lang=en&modules=ext.guidedTour.styles|ext.guidedTour.tour.RcFiltersHighlight|jquery%2Coojs-ui-core%2Coojs-ui-widgets%2Csite|mediawiki.rcfilters.filters.ui&skin=vector&version=ngx62:420)
    at runScript (load.php?lang=en&modules=startup&only=scripts&raw=1&skin=vector:13)
    at Array.<anonymous> (load.php?lang=en&modules=startup&only=scripts&raw=1&skin=vector:14)
    at flushCssBuffer (load.php?lang=en&modules=startup&only=scripts&raw=1&skin=vector:6)

Event Timeline

Restricted Application added a subscriber: Aklapper. · View Herald Transcript
DannyS712 moved this task from Unsorted to Reports on the User-DannyS712 board.

This is not an issue at https://test.wikipedia.org/wiki/Special:RecentChanges currently running rMWcbce38f71d1d; beta cluster is at 60961f7

default: mw.user.options.get( this.limitPreferenceName, displayConfig.limitDefault ), - here is the error
displayConfig comes from:
displayConfig = mw.config.get( 'StructuredChangeFiltersDisplayConfig' ), - here

On the beta cluster, mw.config.get( 'StructuredChangeFiltersDisplayConfig' ); returns null
On test wikipedia, mw.config.get( 'StructuredChangeFiltersDisplayConfig' ); returns:

{
	"maxDays": 30,
	"limitArray": [
		50,
		100,
		250,
		500
	],
	"limitDefault": 50,
	"daysArray": [
		1,
		3,
		7,
		14,
		30
	],
	"daysDefault": 30
}

which includes the needed limitDefault

DannyS712 renamed this task from Beta cluster: Recent changes returns `Internal error` to Beta cluster: changes list special pages return `Internal error`.Apr 29 2020, 5:28 AM
DannyS712 updated the task description. (Show Details)
Aklapper renamed this task from Beta cluster: changes list special pages return `Internal error` to Beta cluster: changes list special pages return Internal error: TypeError: Cannot read property 'limitDefault' of null.Apr 29 2020, 10:17 AM

Closing as duplicate - this task was filed first, but that one has more discussion and a patch pending