KML needs an absolute path like: http://www.xyz.tr/upload/test.kml
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?
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.
that’s how I tested:
if($elevationProfile == “true” || $downloadLink == “true” ) {
// if($map_id[‘elevation’] || $map_id[‘download’]) {
Maybe it is because google elevation service fails by the moment as you can verify here…
google elevation service back again 2013-08-17 15:00 UTC