• Resolved BIC001

    (@bic001)


    Hi,

    I’m hoping somebody out there might be able to help me with a problem.

    I’ve installed the plugin “Google Maps GPX Viewer” and can get the maps to show OK in my pages OK. However, I’m having trouble adding a kml file.

    The kml shows up OK on the map OK, but I have an error message above the map (which shows on the published page):

    “Warning: Illegal string offset ‘elevation’ in /mounted-storage/home150/sub004/sc80517-LQIL/bushandisland.net/wp-content/plugins/google-maps-gpx-viewer/php/kml_layer.php on line 22”

    Can anyone give any advice on what the problem might be ?

    Many Thanks

    http://wordpress.org/extend/plugins/google-maps-gpx-viewer/

Viewing 9 replies - 1 through 9 (of 9 total)
  • Plugin Author Bernd Altmeier

    (@bernd-altmeier)

    KML needs an absolute path like: http://www.xyz.tr/upload/test.kml

    Plugin Author Bernd Altmeier

    (@bernd-altmeier)

    resolved!

    Hello Bernd
    I’m having the same error when using absolute path to kml file on localhost. Is there any other reason to this?

    Thanks!

    I’ve got the same problem. I start using php 5.4 to solve some problems with plugins, but now after I start using php 5.4 I get the message below on top of every page with a map from Google.

    Warning: Illegal string offset ‘elevation’ in /home/robdeen52/domains/journey2holland.com/public_html/wp-content/plugins/google-maps-gpx-viewer/php/kml_layer.php on line 22

    Every KML-file has an absolute path. Does anyone know how to solve this problem?

    Plugin Author Bernd Altmeier

    (@bernd-altmeier)

    try to replace line 22 in kml_layer.php with:

    if($elevationProfile == “true” || $downloadLink == “true” ) {

    and drop me a line if it works!

    With:
    if($elevationProfile == “true” || $downloadLink == “true” ) {

    I got this message:
    This plugin has been deactivated because your changes resulted in a fatal error.

    Parse error: syntax error, unexpected end of file in /home/robdeen52/domains/journey2holland.com/public_html/wp-content/plugins/google-maps-gpx-viewer/google-maps-gpx-viewer.php on line 179

    After that I tried:
    if($elevationProfile == “true” || $downloadLink == “true” )

    The plugin updated successfully, but I still have the message about Illegal string offset ‘elevation’ … on line 22 on my website.

    Plugin Author Bernd Altmeier

    (@bernd-altmeier)

    that’s how I tested:

    if($elevationProfile == “true” || $downloadLink == “true” ) {
    // if($map_id[‘elevation’] || $map_id[‘download’]) {

    Plugin Author Bernd Altmeier

    (@bernd-altmeier)

    Maybe it is because google elevation service fails by the moment as you can verify here…

    Plugin Author Bernd Altmeier

    (@bernd-altmeier)

    google elevation service back again 2013-08-17 15:00 UTC

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Illegal string offset’ is closed to new replies.