fatal error using display_points

Jump to: navigation, search
Revision as of March 5, 2012 at 09:43.
The [/w/index.php?title=Talk:Maps&offset=20120305094332&lqt_mustshow=248 highlighted comment] was created in this revision.

(Using version 1 of the Maps extension)

I am creating maps automatically and sometimes a map does not have any markers on it - I only want to display a map. However, if I use display_points without any marker data (using display_map is not an easy option for me because of the automation), I get the following fatal error:

{{#display_points: | center=4.5946554, -75.51396 | zoom=10 | type=roadmap | types=roadmap, satellite, terrain | controls=zoom, type | zoomstyle=large | typestyle=dropdown | height=400 }}

Fatal error: Unsupported operand types in C:\clevertrail\trails\includes\parser\LinkHolderArray.php on line 41 Call Stack

  1. Time Memory Function Location

1 0.0020 409608 {main}( ) ..\index.php:0 2 0.4536 10761136 MediaWiki->performRequestForTitle( ) ..\index.php:114 3 0.5013 12310760 MediaWiki->performAction( ) ..\Wiki.php:69 4 0.5258 13240672 EditPage->submit( ) ..\Wiki.php:522 5 0.5259 13240672 EditPage->edit( ) ..\EditPage.php:296 6 0.6032 13775712 EditPage->attemptSave( ) ..\EditPage.php:415 7 0.6033 13775776 EditPage->internalAttemptSave( ) ..\EditPage.php:2656 8 0.7210 14492624 Article->updateArticle( ) ..\EditPage.php:1076 9 0.7211 14492656 Article->doEdit( ) ..\Article.php:1976 10 0.7693 15475776 Article->prepareTextForEdit( ) ..\Article.php:2114 11 1.0513 19259352 Parser->parse( ) ..\Article.php:3602 12 1.0527 19264184 Parser->internalParse( ) ..\Parser.php:283 13 2.1874 25069048 Parser->replaceInternalLinks( ) ..\Parser.php:1022 14 2.8056 25272808 LinkHolderArray->merge( )

Any suggestions?

    Dylan16:36, September 29, 2011

    This is because the parser is cloned.

    I have posted a patch here: Thread:Semantic_mapping/Fatal_error:_Unsupported_operand_types/reply_(5)

      Andreas Jonsson09:43, March 5, 2012
       
      Personal tools
      Namespaces
      Variants
      Views
      Actions
      Navigation
      Manuals
      Useful lists
      More awesomeness
      Toolbox