Jump to content

Topic on Extension talk:CoordinateConversion

Fatal error: Uncaught ParseError: syntax error, unexpected '–' (T_STRING)

3
Kghbln (talkcontribs)

I just tried to install the extension on s-mw sandbox wiki however for MW 1.35, Maps 7.20, PHP 7.2 it fails with:

Error
Fatal error: Uncaught ParseError: syntax error, unexpected '–' (T_STRING) in /../w/extensions/CoordinateConversion/includes/CH1903.php:25
Stack trace
#0 [internal function]: AutoLoader::autoload('CH1903')
#1 /../w/includes/parser/Parser.php(4864): spl_autoload_call('CH1903')
#2 /../w/extensions/CoordinateConversion/CoordinateConversion.hooks.php(25): Parser->setFunctionHook('wgs84_2ch03', Array)
#3 /../w/includes/HookContainer/HookContainer.php(320): CoordinateConversionHooks::onParserFirstCallInit(Object(Parser))
#4 /../w/includes/HookContainer/HookContainer.php(131): MediaWiki\HookContainer\HookContainer->callLegacyHook('ParserFirstCall...', Array, Array, Array)
#5 /../w/includes/HookContainer/HookRunner.php(2965): MediaWiki\HookContainer\HookContainer->run('ParserFirstCall...', Array)
#6 /../w/includes/parser/Parser.php(532): MediaWiki\HookContainer\HookRunner->onParserFirstCallInit(Object(Parser)) in /../w/includes/parser/Parser.php on line 4864

Talking about the Swiss system here perhaps caused the grump. :D

Egel (talkcontribs)

I was indeed working on the Swiss systems. It should now be usable again.

Kghbln (talkcontribs)

Installed now. Great and thanks a lot for your swift fix.