Topic on Extension talk:MultiMaps

Loading map... if using Title or Text

4
VPauleN (talkcontribs)

Whenever I use Title or Text in Marker descriptions I only get a Grey field displaying "Loading map..."

I use MediaWiki 1.19.24 with monobook skin.

Any ideas?

2.132.206.205 (talkcontribs)

It happens when javascript error occurs. the error message should be in browser console.

It can be conflict of extensions and you can check where error is, in MultiMaps or other extension. Just add string '?debug=true' to the end of url in address bar. If Maps will work fine, then error in other extension.

Also you can test it there

VPauleN (talkcontribs)

Thanks for your answer.

The error message is: mw.loader::execute> Exception thrown by ext.MultiMaps.Leaflet: JSON.parse: unexpected non-whitespace character after JSON data at line 1 column 300 of the JSON data

It works in the sandbox... :-(

VPauleN (talkcontribs)

I found the version and the line in the code that cause the error:

Introducing version 0.6.0 from 2014-02-04 the line 113 in BaseMapElement.php: $this->properties[$name] = $parser->parse( trim( $value ), $title, new \ParserOptions() )->getText();

We use MediaWiki 1.19.24 on PHP 5.4.41 / Apache 2.4 - everything works fine until version 0.5.2 including the version from 2014-02-01

Any ideas?

Reply to "Loading map... if using Title or Text"