Map: 2 errors

makenoiz
makenoiz
Offline
0
Sorry one more!
Maps shows errors x 2:

I am using
JS 2.6.1
Joomla 2.5.8
Content Statistics - JomSocial 1.4.2
Content Statistics (EVOLUTION IN TIME) 1.5.0
Content Statistics (RANKING) 1.3.1
System - Content Statistics 1.6.0
Content Statistics - Users 1.4.3
Content Statistics (MAP) 1.6.0
Content Statistics - Login (backend) Site Plugin 1.4.1

Error when trying to use maps:

Below are the two errors and the debug. Does anything jump out?

Warning: Invalid argument supplied for foreach() in /home/myserver/public_html/modules/mod_content_statistics_map/tmpl/map.php on line 51
Warning: Division by zero in /home/myserver/public_html/modules/mod_content_statistics_map/tmpl/map.php on line 76

google.load('visualization', '1', {packages:['geochart']});

google.setOnLoadCallback(drawChart1013373194);

var data1013373194 = null ;

function drawChart1013373194() {
data1013373194 = google.visualization.arrayToDataTable([
['State', 'Data'],
]);

var options1013373194 = {
width: 600,
height: 500,
region: 'world',
displayMode: 'regions',

colorAxis: {colors: ['#ff0000', '#00ff00']},
backgroundColor: 'white'
};var chart1013373194 = new google.visualization.GeoChart(document.getElementById('chart_div1013373194'));

chart1013373194.draw(data1013373194, options1013373194);
}

Thank you
Vanessa
/* ************************************************************** */
Responses (9)
  • Accepted Answer

    makenoiz
    makenoiz
    Offline
    Friday, August 30 2013, 09:23 AM - #Permalink
    0
    BTW I have API key in and every this is enabled.
    The reply is currently minimized Show
  • Accepted Answer

    makenoiz
    makenoiz
    Offline
    Friday, August 30 2013, 09:56 AM - #Permalink
    0
    An update on this. If I use JS for the data source then the errors go away but I need to use the users table in Jom for registrations.

    Also paint by state does not work but if I set it to paint by county then the country highlighting works. I need state.

    Thanks for any help
    The reply is currently minimized Show
  • Accepted Answer

    makenoiz
    makenoiz
    Offline
    Friday, August 30 2013, 04:11 PM - #Permalink
    0
    One more update got com_users to work but it only works with user login stats not user registration. When I try to use user registration or user registration original table I get the divide by zero error.

    Any ideas? Thanks!
    The reply is currently minimized Show
  • Accepted Answer

    makenoiz
    makenoiz
    Offline
    Friday, September 13 2013, 01:39 AM - #Permalink
    0
    My versions have changed... Im now using Jomsocial 3.0.2 and Joomla 2.5.11

    Thank you
    The reply is currently minimized Show
  • Accepted Answer

    makenoiz
    makenoiz
    Offline
    Tuesday, September 24 2013, 03:45 AM - #Permalink
    0
    Hi I added your IP.. were you able to see the error. It works ok if I use User_logins, but I need user_registrations... Thank you very much!
    The reply is currently minimized Show
  • Accepted Answer

    makenoiz
    makenoiz
    Offline
    Tuesday, September 24 2013, 06:50 PM - #Permalink
    0
    Hi Just checking on this. Still getting error when using Com_users / user registrations. Please help.
    The reply is currently minimized Show
  • Accepted Answer

    makenoiz
    makenoiz
    Offline
    Wednesday, September 25 2013, 07:18 AM - #Permalink
    0
    Hi Sent an email back. You have access. Please let me know if you have problems getting in. Would love too get this one resolved soon. Still have the same errors:
    Warning: Invalid argument supplied for foreach() in /home/myserver/public_html/modules/mod_content_statistics_map/tmpl/map.php on line 51

    Warning: Division by zero in /home/myserver/public_html/modules/mod_content_statistics_map/tmpl/map.php on line 76
    Thank you.
    The reply is currently minimized Show
  • Accepted Answer

    makenoiz
    makenoiz
    Offline
    Thursday, September 26 2013, 09:35 AM - #Permalink
    1
    Thank you fr your support. It works well now.
    The reply is currently minimized Show
  • Accepted Answer

    Saturday, October 26 2013, 11:34 PM - #Permalink
    0
    Hi there,
    Can a solution for this be posted please, as I am experiencing the same issue - Warning: Division by zero in /home/XXXXXXX/public_html/modules/mod_content_statistics_map/tmpl/map.php on line 76

    I'm using Joomla 3.1.5, K2 as the content provider.

    If you require any additional information, please let me know.

    Kind regards,
    Chris
    The reply is currently minimized Show
Your Reply