• We get the following console error when editing a post on ur news site. If I turn off Seriously Simple Stats, the error goes a way. It causes the edit to be very slow.

    VM674 post.php:557 Uncaught ReferenceError: google is not defined
    at VM674 post.php:557
    (anonymous) @ VM674 post.php:557
    VM675 post.php:596 Uncaught ReferenceError: google is not defined
    at VM675 post.php:596

    Below is the code where it errors out.

    // Set a callback to run when the Google Visualization API is loaded
    google.setOnLoadCallback(draw_chart_5d07e7e0daa08_1116);

    // Draw chart using supplied data
    function draw_chart_5d07e7e0daa08_1116() {

    // Create the data table
    var data = new google.visualization.DataTable();
    data.addColumn(‘string’, ‘Sources’);
    data.addColumn(‘number’, ‘Listens’);
    data.addRows([ [‘Audio player’,28,],
    [‘Other’,8,],
    [‘iTunes’,30,],
    [‘Direct download’,1,],
    ]);

    // Set chart options
    var options = {
    title: ”,
    width: ‘100%’,
    height: ‘500’,
    is3D: true
    , };

    // Instantiate and draw the chart
    if( jQuery( ‘#’+’listening-sources’ ).length > 0 ){
    var chart = new google.visualization.PieChart( document.getElementById( ‘listening-sources’ ) );
    chart.draw( data, options );
    }
    // chart.draw( data, google.charts.Line.convertOptions(options) );
    }

  • The topic ‘Google API Console Error’ is closed to new replies.