Home › Forum › Wp Gpx Maps › Support › The first argument should be an array…
- Questo topic ha 4 risposte, 2 partecipanti ed è stato aggiornato l'ultima volta 11 anni, 8 mesi fa da Kannan Balasubramanian.
-
AutorePost
-
Kannan BalasubramanianOspite
Installed the plugin and inserted the short code pointing to a different URL (subdomain within my domain).
When I visit the blog I get the error “The first argument should be an array in…” & “Invalid argument supplied for foreach() in….”
Wordpress Version: WordPress 3.4.1
PHP Version: 5maxAmministratore del forumHi, can you show me your page? which shortcode are you using?
Kannan BalasubramanianOspitePage is located at http://blog.binarybits.net/?p=264 and the shortcode is
© OpenStreetMap contributorsjQuery(document).ready(function() {
jQuery( "#wpgpxmaps_584_1984508" ).wpgpxmaps( { targetId : "584_1984508", mapType : "HYBRID", mapData : [], graphDist : [], graphEle : [], graphSpeed : [], graphHr : [], graphAtemp : [], graphCad : [], graphGrade : [], waypoints : , unit : "0", unitspeed : "0", color1 : ["#3366cc"], color2 : "#3366cc", color3 : "#ff0000", color4 : "#ff77bd", color5 : "#beecff", color6 : "#beecff", color7 : "#ff77bd", chartFrom1 : "", chartTo1 : "", chartFrom2 : "", chartTo2 : "", startIcon : "", endIcon : "", currentIcon : "", waypointIcon : "", currentpositioncon : "", usegpsposition : "", zoomOnScrollWheel : "", ngGalleries : [], ngImages : [], pluginUrl : "https://devfarm.it/wp-content/plugins", TFApiKey : "74091772296743e3a6914fa00e348953", langs : { altitude : "Altitudine", currentPosition : "Current position", speed : "Velocità", grade : "Grade", heartRate : "Battito Cardiaco", atemp : "Temperature", cadence : "Cadenza", goFullScreen : "Go full screen", exitFullFcreen : "Exit full screen", hideImages : "Hide images", showImages : "Show images", backToCenter : "Ritorna al centro della mappa" } });
});
PS: I have tried removing space within the file and folder names by renaming then and still doesn’t work.
maxAmministratore del forum
Warning: fopen(): php_network_getaddresses: getaddrinfo failed: Name or service not known in /home/mxvysmpn/public_html/wp-content/plugins/wp-gpx-maps/wp-gpx-maps.php on line 858
Warning: fopen(http://files.binarybits.net/kannan/Tours/Kumili%20July%202012/Kumili%20Tour%20Final.gpx): Failed to open stream: php_network_getaddresses: getaddrinfo failed: Name or service not known in /home/mxvysmpn/public_html/wp-content/plugins/wp-gpx-maps/wp-gpx-maps.php on line 858
Warning: simplexml_load_file(): /tmp/gpx27pJAf:1: parser error : Document is empty in /home/mxvysmpn/public_html/wp-content/plugins/wp-gpx-maps/wp-gpx-maps-utils.php on line 217
Warning: simplexml_load_file(): in /home/mxvysmpn/public_html/wp-content/plugins/wp-gpx-maps/wp-gpx-maps-utils.php on line 217
Warning: simplexml_load_file(): ^ in /home/mxvysmpn/public_html/wp-content/plugins/wp-gpx-maps/wp-gpx-maps-utils.php on line 217
Warning: Attempt to read property "dt" on null in /home/mxvysmpn/public_html/wp-content/plugins/wp-gpx-maps/wp-gpx-maps.php on line 416
Warning: Attempt to read property "lat" on null in /home/mxvysmpn/public_html/wp-content/plugins/wp-gpx-maps/wp-gpx-maps.php on line 417
Warning: Attempt to read property "lon" on null in /home/mxvysmpn/public_html/wp-content/plugins/wp-gpx-maps/wp-gpx-maps.php on line 418
Warning: Attempt to read property "maxEle" on null in /home/mxvysmpn/public_html/wp-content/plugins/wp-gpx-maps/wp-gpx-maps.php on line 420
Warning: Attempt to read property "minEle" on null in /home/mxvysmpn/public_html/wp-content/plugins/wp-gpx-maps/wp-gpx-maps.php on line 421
Warning: Attempt to read property "maxTime" on null in /home/mxvysmpn/public_html/wp-content/plugins/wp-gpx-maps/wp-gpx-maps.php on line 422
Warning: Attempt to read property "minTime" on null in /home/mxvysmpn/public_html/wp-content/plugins/wp-gpx-maps/wp-gpx-maps.php on line 423
Warning: Attempt to read property "totalEleUp" on null in /home/mxvysmpn/public_html/wp-content/plugins/wp-gpx-maps/wp-gpx-maps.php on line 424
Warning: Attempt to read property "totalEleDown" on null in /home/mxvysmpn/public_html/wp-content/plugins/wp-gpx-maps/wp-gpx-maps.php on line 425
Warning: Attempt to read property "avgSpeed" on null in /home/mxvysmpn/public_html/wp-content/plugins/wp-gpx-maps/wp-gpx-maps.php on line 426
Warning: Attempt to read property "avgCad" on null in /home/mxvysmpn/public_html/wp-content/plugins/wp-gpx-maps/wp-gpx-maps.php on line 427
Warning: Attempt to read property "avgHr" on null in /home/mxvysmpn/public_html/wp-content/plugins/wp-gpx-maps/wp-gpx-maps.php on line 428
Warning: Attempt to read property "avgTemp" on null in /home/mxvysmpn/public_html/wp-content/plugins/wp-gpx-maps/wp-gpx-maps.php on line 429
Warning: Attempt to read property "totalLength" on null in /home/mxvysmpn/public_html/wp-content/plugins/wp-gpx-maps/wp-gpx-maps.php on line 430
you can replace the spaces with %20 as html standard like this:
© OpenStreetMap contributorsjQuery(document).ready(function() {
jQuery( "#wpgpxmaps_590_1261112" ).wpgpxmaps( { targetId : "590_1261112", mapType : "HYBRID", mapData : [], graphDist : [], graphEle : [], graphSpeed : [], graphHr : [], graphAtemp : [], graphCad : [], graphGrade : [], waypoints : [], unit : "0", unitspeed : "0", color1 : ["#3366cc"], color2 : "#3366cc", color3 : "#ff0000", color4 : "#ff77bd", color5 : "#beecff", color6 : "#beecff", color7 : "#ff77bd", chartFrom1 : "", chartTo1 : "", chartFrom2 : "", chartTo2 : "", startIcon : "", endIcon : "", currentIcon : "", waypointIcon : "", currentpositioncon : "", usegpsposition : "", zoomOnScrollWheel : "", ngGalleries : [], ngImages : [], pluginUrl : "https://devfarm.it/wp-content/plugins", TFApiKey : "74091772296743e3a6914fa00e348953", langs : { altitude : "Altitudine", currentPosition : "Current position", speed : "Velocità", grade : "Grade", heartRate : "Battito Cardiaco", atemp : "Temperature", cadence : "Cadenza", goFullScreen : "Go full screen", exitFullFcreen : "Exit full screen", hideImages : "Hide images", showImages : "Show images", backToCenter : "Ritorna al centro della mappa" } });
});
from the next release I’ll fix it
Kannan BalasubramanianOspiteYup this worked.
Thanks 🙂
-
AutorePost