#935 MWOffliner fails with "localStorage is not defined"

v1.0
open
nobody
MWolliner (2)
1
2016-01-28
2016-01-07
Ilya Zverev
No
Downloading javascript from http://wiki.openstreetmap.org/w/load.php?debug=false&lang=en&modules=jquery%2Cmediawiki&only=scripts&skin=vector&version=7Tp4uhEo
Downloading http://wiki.openstreetmap.org/w/load.php?debug=false&lang=en&modules=jquery%2Cmediawiki&only=scripts&skin=vector&version=7Tp4uhEo...
ReferenceError: localStorage is not defined
  at Object.mw.loader.store.clear
  at Object.mw.loader.store.init
  at Object.mw.loader.work
  at request
  at Object.mw.loader.using
  at
  at Function jQuery.extend.map
  at HTMLDocument.<anonymous>
  at fire
  at Object.self.fireWith

I'm not sure what to do with this. Can you help please?

Discussion

  • Emmanuel Engelhart

    What is the command line? Which version of nodejs do you use?

     
  • thenetstriker

    thenetstriker - 2016-01-18

    I also have this error since I've updated to Mediawiki 1.26.2. Seams that something has changes there. Here is my error:

    ReferenceError: localStorage is not defined
    at Object.mw.loader.store.clear (http://mediawiki/wiki/load.php?debug=false&lang=de&modules=jquery%2Cmediawiki&only=scripts&skin=monobook&version=9CpCgmeT:175:843)
    at Object.mw.loader.store.init (http://mediawiki/wiki/load.php?debug=false&lang=de&modules=jquery%2Cmediawiki&only=scripts&skin=monobook&version=9CpCgmeT:173:629)
    at Object.mw.loader.work (http://mediawiki/wiki/load.php?debug=false&lang=de&modules=jquery%2Cmediawiki&only=scripts&skin=monobook&version=9CpCgmeT:166:405)
    at request (http://mediawiki/wiki/load.php?debug=false&lang=de&modules=jquery%2Cmediawiki&only=scripts&skin=monobook&version=9CpCgmeT:164:955)
    at Object.mw.loader.using (http://mediawiki/wiki/load.php?debug=false&lang=de&modules=jquery%2Cmediawiki&only=scripts&skin=monobook&version=9CpCgmeT:171:184)
    at http://mediawiki/wiki/load.php?debug=false&lang=de&modules=jquery%2Cmediawiki&only=scripts&skin=monobook&version=9CpCgmeT:178:336
    at Function.jQuery.extend.map (http://mediawiki/wiki/load.php?debug=false&lang=de&modules=jquery%2Cmediawiki&only=scripts&skin=monobook&version=9CpCgmeT:6:434)
    at HTMLDocument.<anonymous> (http://mediawiki/wiki/load.php?debug=false&lang=de&modules=jquery%2Cmediawiki&only=scripts&skin=monobook&version=9CpCgmeT:178:290)
    at fire (http://mediawiki/wiki/load.php?debug=false&lang=de&modules=jquery%2Cmediawiki&only=scripts&skin=monobook&version=9CpCgmeT:45:122)
    at Object.self.fireWith [as resolveWith] (http://mediawiki/wiki/load.php?debug=false&lang=de&modules=jquery%2Cmediawiki&only=scripts&skin=monobook&version=9CpCgmeT:46:431)

     
  • thenetstriker

    thenetstriker - 2016-01-28

    I solved the problem by updating to the latest node.js version and by updating the nodejs modules using "npm update" in mwoffliner dir.

     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks