WordPress.org

Ready to get started?Download WordPress

Forums

Google Maps GPX Viewer
[resolved] Illegal string offset (10 posts)

  1. BIC001
    Member
    Posted 1 year ago #

    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/

  2. Bernd Altmeier
    Member
    Plugin Author

    Posted 1 year ago #

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

  3. Bernd Altmeier
    Member
    Plugin Author

    Posted 1 year ago #

    resolved!

  4. vadims00
    Member
    Posted 1 year ago #

    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!

  5. Journey2Holland
    Member
    Posted 1 year ago #

    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?

  6. Bernd Altmeier
    Member
    Plugin Author

    Posted 1 year ago #

    try to replace line 22 in kml_layer.php with:

    if($elevationProfile == "true" || $downloadLink == "true" ) {

    and drop me a line if it works!

  7. Journey2Holland
    Member
    Posted 1 year ago #

    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.

  8. Bernd Altmeier
    Member
    Plugin Author

    Posted 1 year ago #

    that's how I tested:

    if($elevationProfile == "true" || $downloadLink == "true" ) {
    // if($map_id['elevation'] || $map_id['download']) {

  9. Bernd Altmeier
    Member
    Plugin Author

    Posted 1 year ago #

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

  10. Bernd Altmeier
    Member
    Plugin Author

    Posted 1 year ago #

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

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.