Maps
-
hi….please after i upgraded to version 9.2, i discovered that Today’s Visitor’s Map has stopped working.
I really don’t know what to do about it. Please help
-
What do you see on the overview page? Just a missing map or are other parts missing as well?
Are you using the Google map provider or JQVMap?
Take a look at the page source (usually Ctrl-U) and see if there are any “Fatal Error” messages on the.
‘Browsers’ isn’t showing at all, ‘Recent Visitors’ is not displaying flags anymore…and the Map is not missing, but it doesn’t display any country ( i mean no country is colored green to shown where the visitor is from on the map).
I’m using JQVMap by the way.No fatal error was displayed as well.
That could be a JavaScript error, can you check your JavaScript console?
To get to the console, right click on your page, select “Inspect Element” and then select the “Console” tab. The reload the page and see if any errors are displayed.
Uncaught ReferenceError: background_color is not defined…
uuc-script.js:10Uncaught TypeError: Cannot read property ‘replot’ of undefined…admin.php?page=wp-statistics%2Fwp-statistics.php:731
Can you look at your page source and copy/paste a few lines around 731 in to this thread?
From 731-732
jQuery(window).resize(function() {
browser_chart.replot( {resetAxes: true } );
});Take a look at your page source again, do a search for “jquery.jqplot.min.js”, it should be on a line like:
<script type='text/javascript' src='http://localhost/wp/wp-content/plugins/wp-statistics/assets/js/jquery.jqplot.min.js?ver=0.8.3'></script>
Copy the “src” url to a new browser window and make sure you can load the script.
loaded…gave a very long list of codes
/* jqPlot 1.0.8r1250.1 | (c) 2009-2013 Chris Leonello | jplot.com
jsDate | (c) 2010-2013 Chris Leonello
DST Patched for add/diff date functions.
*/……long list of codes….Check for “jqplot.pieRenderer.min.js” as well.
loaded as well….
/* jqPlot 1.0.8r1250 | (c) 2009-2013 Chris Leonello | jplot.com
jsDate | (c) 2010-2013 Chris Leonello
*/…long list of codes…About line 680 of the page source should be:
jQuery(function () { var browser_chart;
Can you copy from that line all the way down to 731 and paste it here?
<script type=”text/javascript”>
jQuery(function () {
var browser_chart;
jQuery(document).ready(function() {
var browser_data = [[‘Opera (2,553)’,2553], [‘Firefox (2,198)’,2198], [‘Safari (2,187)’,2187], [‘Chrome (1,903)’,1903], [‘Unknown (1,489)’,1489], [‘MSIE (1,058)’,1058], [‘BlackBerry Brow (532)’,532], [‘Android Browser (377)’,377], [‘AppleWebKit (242)’,242], [‘Jakarta (213)’,213], [‘”Other” (1,295)’,1295], ];browser_chart = jQuery.jqplot(‘browsers-log’, [browser_data], {
title: {
text: ‘<b>’ + “Top 10 Browsers” + ‘</b>’,
fontSize: ’12px’,
fontFamily: ‘Tahoma’,
textColor: ‘#000000’,
},
seriesDefaults: {
// Make this a pie chart.
renderer: jQuery.jqplot.PieRenderer,
rendererOptions: {
// Put data labels on the pie slices.
// By default, labels show the percentage of the slice.
dataLabels: ‘percent’,
showDataLabels: true,
shadowOffset: 0,
}
},
legend: {
show:true,
location: ‘s’,
renderer: jQuery.jqplot.EnhancedLegendRenderer,
rendererOptions:
{
numberColumns: 2,
disableIEFading: false,
border: ‘none’,
},
},
grid: { background: ‘transparent’, borderWidth: 0, shadow: false },
highlighter: {
show: true,
formatString:’%s’,
tooltipLocation:’n’,
useAxesFormatters:false,
},
} );
});jQuery(window).resize(function() {
browser_chart.replot( {resetAxes: true } );
});
});</script>
Which browser are you using?
google chrome
- The topic ‘Maps’ is closed to new replies.