Page MenuHomePhabricator

VE 'Edit layers' - Uncaught TypeError: Cannot read property 'lat' of null
Closed, DuplicatePublic

Description

The same Console error was reported T136655: Full screen maps are broken on mobile.

  1. On https://en.wikipedia.beta.wmflabs.org/w/index.php?title=Map start editing mapframe in VE.
  2. Click 'Edit layers' - the Console will display the following error:
Uncaught TypeError: Cannot read property 'lat' of null
    at Object.project (load.php?debug=false&lang=en&modules=mapbox&skin=vector&version=0ba8w4y:26)
    at Object.latLngToPoint (load.php?debug=false&lang=en&modules=mapbox&skin=vector&version=0ba8w4y:26)
    at NewClass.project (load.php?debug=false&lang=en&modules=mapbox&skin=vector&version=0ba8w4y:41)
    at NewClass._getMiddleLatLng (<anonymous>:28:821)
    at NewClass._createMiddleMarker (<anonymous>:27:563)
    at NewClass._initMarkers (<anonymous>:24:650)
    at NewClass.addHooks (<anonymous>:23:838)
    at <anonymous>:22:971
    at NewClass._eachVertexHandler (<anonymous>:22:862)
    at NewClass.addHooks (<anonymous>:22:926)
  1. Clicking 'Edit layers' options 'Save' and 'Cancel' do not have any effect.
    Screen Shot 2018-05-10 at 4.47.48 PM.png (582×904 px, 337 KB)

No GeoJSON errors are displayed.

Event Timeline

Restricted Application added a subscriber: Aklapper. · View Herald Transcript
Vvjjkkii renamed this task from VE 'Edit layers' - Uncaught TypeError: Cannot read property 'lat' of null to 45caaaaaaa.Jul 1 2018, 1:10 AM
Vvjjkkii reopened this task as Open.
Vvjjkkii triaged this task as High priority.
Vvjjkkii updated the task description. (Show Details)
Vvjjkkii removed a subscriber: Aklapper.
CommunityTechBot renamed this task from 45caaaaaaa to VE 'Edit layers' - Uncaught TypeError: Cannot read property 'lat' of null.Jul 1 2018, 4:24 PM
CommunityTechBot closed this task as a duplicate.
CommunityTechBot raised the priority of this task from High to Needs Triage.
CommunityTechBot updated the task description. (Show Details)
CommunityTechBot added a subscriber: Aklapper.