Page MenuHomePhabricator

Special:Nearby: Cannot read property 'ajax' of undefined when clicking reload or a link
Closed, ResolvedPublic

Description

If you visit Special:Nearby on any wiki (e.g. dewiki) and click the reload button, or alternatively the link of a returned page, you'll get the following error in your browser's console:

Uncaught TypeError: Cannot read property 'ajax' of undefined
NearbyGateway._search @ NearbyGateway.js:139
NearbyGateway.getPages @ NearbyGateway.js:93
WatchstarPageList.extend._find @ Nearby.js:178
(anonymous function) @ Nearby.js:119
jQuery.Callbacks.fire @ load.php?debug=true&lang=en&modules=jquery%2Cmediawiki&only=scripts&skin=minerva&version=fBj6fuF4:3148
jQuery.Callbacks.self.fireWith @ load.php?debug=true&lang=en&modules=jquery%2Cmediawiki&only=scripts&skin=minerva&version=fBj6fuF4:3260
jQuery.extend.Deferred.jQuery.each.deferred.(anonymous function) @ load.php?debug=true&lang=en&modules=jquery%2Cmediawiki&only=scripts&skin=minerva&version=fBj6fuF4:3350
WatchstarPageList.extend.getCurrentPosition.navigator.geolocation.getCurrentPosition.err @ Nearby.js:70

The load of the page you clicked (if you clicked a link of a page) works fine, but the reload action doesn't do anything except to replace the content with a loading spinner.

Event Timeline

Florian created this task.Oct 9 2015, 5:59 PM
Florian claimed this task.
Florian raised the priority of this task from to High.
Florian updated the task description. (Show Details)
Florian added a project: MobileFrontend.
Florian added a subscriber: Florian.
Restricted Application added a subscriber: Aklapper. · View Herald TranscriptOct 9 2015, 5:59 PM

Change 244719 had a related patch set uploaded (by Florianschmidtwelzow):
Fix Special:Nearby reload and click actions

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

Florian moved this task from Backlog to Tech debt on the MobileFrontend board.Oct 9 2015, 6:02 PM

Change 244719 merged by jenkins-bot:
Fix Special:Nearby reload and click actions

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

Jdlrobson closed this task as Resolved.Oct 9 2015, 7:13 PM
Jdlrobson removed a project: Readers-Web-Backlog.
Jdlrobson set Security to None.
Jdlrobson added a subscriber: Jdlrobson.