Page MenuHomePhabricator

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


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 @ 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 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 subscribed.

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

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

Jdlrobson removed a project: Web-Team-Backlog.
Jdlrobson set Security to None.
Jdlrobson subscribed.