Page MenuHomePhabricator

Desktop Minerva initialization problems due to MobileFormatter not executing
Closed, DuplicatePublic

Description

Visit https://fr.wikipedia.org/w/index.php?title=Nils_Nilsson&oldid=138436684&useskin=minerva
This loads the Minerva skin in desktop mode.

There are some problems with this:

  1. Toggling code is loaded, but the MobileFormatter is not run - this results in broken section collapsing - try clicking " Carrière" to see what happens
  2. The editor breaks and an exception is thrown:
/w/load.php?debug=false&lang=fr&modules=jquery%2Cmediawiki%7Cmediawiki.legacy.wikibits&only=scripts&skin=minerva&version=0r0nkm9:176 TypeError: Cannot read property 'text' of null TypeError: Cannot read property 'text' of null
    at setupEditor (/w/load.php?debug=false&lang=fr&modules=ext.centralNotice.choiceData%2Cdisp…skins.minerva.scripts.top%7Cuser.defaults&skin=minerva&version=1fsjylj:477)
    at init (/w/load.php?debug=false&lang=fr&modules=ext.centralNotice.choiceData%2Cdisp…skins.minerva.scripts.top%7Cuser.defaults&skin=minerva&version=1fsjylj:477)
    at /w/load.php?debug=false&lang=fr&modules=ext.centralNotice.choiceData%2Cdisp…skins.minerva.scripts.top%7Cuser.defaults&skin=minerva&version=1fsjylj:478
    at mw.loader.implement.mobile-frontend-editor-disabled (/w/load.php?debug=false&lang=fr&modules=ext.centralNotice.choiceData%2Cdisp…skins.minerva.scripts.top%7Cuser.defaults&skin=minerva&version=1fsjylj:478)
    at Object.<anonymous> (/w/load.php?debug=false&lang=fr&modules=jquery%2Cmediawiki%7Cmediawiki.legacy.wikibits&only=scripts&skin=minerva&version=0r0nkm9:161)
    at fire (/w/load.php?debug=false&lang=fr&modules=jquery%2Cmediawiki%7Cmediawiki.legacy.wikibits&only=scripts&skin=minerva&version=0r0nkm9:45)
    at Object.add [as done] (/w/load.php?debug=false&lang=fr&modules=jquery%2Cmediawiki%7Cmediawiki.legacy.wikibits&only=scripts&skin=minerva&version=0r0nkm9:45)
    at Object.always (/w/load.php?debug=false&lang=fr&modules=jquery%2Cmediawiki%7Cmediawiki.legacy.wikibits&only=scripts&skin=minerva&version=0r0nkm9:46)
    at runScript (/w/load.php?debug=false&lang=fr&modules=jquery%2Cmediawiki%7Cmediawiki.legacy.wikibits&only=scripts&skin=minerva&version=0r0nkm9:160)
    at checkCssHandles (/w/load.php?debug=false&lang=fr&modules=jquery%2Cmediawiki%7Cmediawiki.legacy.wikibits&only=scripts&skin=minerva&version=0r0nkm9:161)