Home › Forum › Wp Gpx Maps › Support › Not showing attached images on map – php error
- This topic has 1 risposta, 1 partecipante, and was last updated 1 month fa by
Juergen.
-
AutoreArticoli
-
Juergen
OspiteWP GPX Maps Error: GPX file not found! /home/mxvysmpn/public_html"/wp-content/uploads/2019/11/big_100m_1f.gpx"Hi all,
I want to display non nextgen images (just attached images) on a map. My shortcode looks like this:
© OpenStreetMap contributorsjQuery(document).ready(function() {
jQuery("#wpgpxmaps_92062_75333").wpgpxmaps({ targetId : "92062_75333", mapType : "HYBRID", mapData : [], graphDist : [], graphEle : [], graphSpeed : [], graphHr : [], graphAtemp : [], graphCad : [], graphGrade : [], waypoints : [], unit : "0", unitspeed : "3", color1 : ["#000000"], color2 : "#3366cc", color3 : "#ff0000", color4 : "#ff77bd", color5 : "#beecff", color6 : "#000000", color7 : "#000000", chartFrom1 : "", chartTo1 : "", chartFrom2 : "", chartTo2 : "", startIcon : "https://png.icons8.com/windows/2x/play.png", endIcon : "https://png.icons8.com/android/2x/finish-flag.png", currentIcon : "https://image.flaticon.com/icons/svg/71/71860.svg", waypointIcon : "https://image.flaticon.com/icons/svg/71/71860.svg", currentpositioncon : "https://png.icons8.com/color/2x/marker.png", 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" } });
});
The track is displayed, but I get error messages like that:
Warning: count(): Parameter must be an array or an object that implements Countable in /var/www/html/wp-content/plugins/wp-gpx-maps/wp-gpx-maps_utils_nggallery.php on line 103 Warning: count(): Parameter must be an array or an object that implements Countable in /var/www/html/wp-content/plugins/wp-gpx-maps/wp-gpx-maps_utils_nggallery.php on line 104 Warning: count(): Parameter must be an array or an object that implements Countable in /var/www/html/wp-content/plugins/wp-gpx-maps/wp-gpx-maps_utils_nggallery.php on line 105
I can follow the code to that lines and understand the flow, but beeing not a programmer, I don’t know, how to fix this. Does someone has an idea?
(plugin version 1.7, php 7.2.7 , worpdress 5.2.4)
Thanks and best regards!
Juergen
OspiteMy shortcode looks like this:
sgpx attachments="true" gpx="/wp-content/uploads/2019/11/big_100m_1f.gpx"
(sorry, having trouble with including code into a post)
-
AutoreArticoli