Page MenuHomePhabricator

Cannot read property 'replace' of undefined on watchlist at translatewiki
Closed, ResolvedPublic

Description

On https://translatewiki.net/wiki/Special:Watchlist (not sure if I should report these errors or not...)

VM205:27 TypeError: Cannot read property 'replace' of undefined TypeError: Cannot read property 'replace' of undefined(…) @VM205:27
window.console.error @VM205:27
TypeError: Cannot read property 'replace' of undefined TypeError: Cannot read property 'replace' of undefined
 /w/load.php?debug=false&lang=sv&modules=jquery%2Cmediawiki&only=scripts&skin=vector&version=%2FL18KV5H:177:36 Object.log()
 /w/load.php?debug=false&lang=sv&modules=jquery%2Cmediawiki&only=scripts&skin=vector&version=%2FL18KV5H:155:389 Object.handler()
 /w/load.php?debug=false&lang=sv&modules=jquery%2Cmediawiki&only=scripts&skin=vector&version=%2FL18KV5H:45:122 fire()
 /w/load.php?debug=false&lang=sv&modules=jquery%2Cmediawiki&only=scripts&skin=vector&version=%2FL18KV5H:46:431 Object.fireWith()
 /w/load.php?debug=false&lang=sv&modules=jquery%2Cmediawiki&only=scripts&skin=vector&version=%2FL18KV5H:46:479 Object.fire()
 /w/load.php?debug=false&lang=sv&modules=jquery%2Cmediawiki&only=scripts&skin=vector&version=%2FL18KV5H:155:177 Object.track()
 /w/load.php?debug=false&lang=sv&modules=jquery%2Cmediawiki&only=scripts&skin=vector&version=%2FL18KV5H:159:347 handlePending()
 /w/load.php?debug=false&lang=sv&modules=jquery%2Cmediawiki&only=scripts&skin=vector&version=%2FL18KV5H:162:153 markModuleReady()

Event Timeline

Josve05a created this task.Jun 26 2016, 9:41 AM
Restricted Application added subscribers: Zppix, Aklapper. · View Herald TranscriptJun 26 2016, 9:41 AM

Can you please provide the error details from this URL? https://translatewiki.net/wiki/Special:Watchlist?debug=true. It may provide more information as the JavaScript is not merged and minified using "debug=true".

When I load that URL, I get this error in the console:

TypeError: $trigger.val(...) is undefined
https://translatewiki.net/w/extensions/CleanChanges/resources/cleanchanges.uls.js?74226
Line 36
Josve05a updated the task description. (Show Details)Jun 26 2016, 10:36 AM
This comment was removed by Josve05a.
Josve05a added a comment.EditedJun 26 2016, 10:42 AM

This is what I see when doing "&debug=true"

window.console.error			@	VM495:27
log					@	load.php?debug=true&lang=sv&modules=jquery%2Cmediawiki&only=scripts&skin=vector&version=%2FL18KV5H:13101
handler					@	load.php?debug=true&lang=sv&modules=jquery%2Cmediawiki&only=scripts&skin=vector&version=%2FL18KV5H:10973
fire					@	load.php?debug=true&lang=sv&modules=jquery%2Cmediawiki&only=scripts&skin=vector&version=%2FL18KV5H:3148
fireWith				@	load.php?debug=true&lang=sv&modules=jquery%2Cmediawiki&only=scripts&skin=vector&version=%2FL18KV5H:3260
fire					@	load.php?debug=true&lang=sv&modules=jquery%2Cmediawiki&only=scripts&skin=vector&version=%2FL18KV5H:3267
track					@	load.php?debug=true&lang=sv&modules=jquery%2Cmediawiki&only=scripts&skin=vector&version=%2FL18KV5H:10949
handlePending				@	load.php?debug=true&lang=sv&modules=jquery%2Cmediawiki&only=scripts&skin=vector&version=%2FL18KV5H:11530
markModuleReady				@	load.php?debug=true&lang=sv&modules=jquery%2Cmediawiki&only=scripts&skin=vector&version=%2FL18KV5H:11737
nestedAddScript				@	load.php?debug=true&lang=sv&modules=jquery%2Cmediawiki&only=scripts&skin=vector&version=%2FL18KV5H:11744
(anonymous function)			@	load.php?debug=true&lang=sv&modules=jquery%2Cmediawiki&only=scripts&skin=vector&version=%2FL18KV5H:11749
fire					@	load.php?debug=true&lang=sv&modules=jquery%2Cmediawiki&only=scripts&skin=vector&version=%2FL18KV5H:3148
fireWith				@	load.php?debug=true&lang=sv&modules=jquery%2Cmediawiki&only=scripts&skin=vector&version=%2FL18KV5H:3260
deferred.(anonymous function)		@	load.php?debug=true&lang=sv&modules=jquery%2Cmediawiki&only=scripts&skin=vector&version=%2FL18KV5H:3350
(anonymous function)			@	load.php?debug=true&lang=sv&modules=jquery%2Cmediawiki&only=scripts&skin=vector&version=%2FL18KV5H:11673
fire					@	load.php?debug=true&lang=sv&modules=jquery%2Cmediawiki&only=scripts&skin=vector&version=%2FL18KV5H:3148
fireWith				@	load.php?debug=true&lang=sv&modules=jquery%2Cmediawiki&only=scripts&skin=vector&version=%2FL18KV5H:3260
done					@	load.php?debug=true&lang=sv&modules=jquery%2Cmediawiki&only=scripts&skin=vector&version=%2FL18KV5H:9314
script.onload.script.onreadystatechange	@	load.php?debug=true&lang=sv&modules=jquery%2Cmediawiki&only=scripts&skin=vector&version=%2FL18KV5H:9829

and

Exception in load-callback in module ext.uls.mediawiki:
load.php?debug=true&lang=sv&modules=jquery%2Cmediawiki&only=scripts&skin=vector&version=%2FL18KV5H:13095

which I don't think is related...

Change 296170 had a related patch set uploaded (by Nikerabbit):
Avoid JavaScript error on Special:Watchlist

https://gerrit.wikimedia.org/r/296170

Change 296170 merged by jenkins-bot:
Avoid JavaScript error on Special:Watchlist

https://gerrit.wikimedia.org/r/296170

Nikerabbit closed this task as Resolved.Jul 7 2016, 6:54 AM
Nikerabbit removed a project: Patch-For-Review.