• Resolved Nik100

    (@nik100)


    Mapping page is blank after file upload . No errors shown even after setting “On” in index.php. There are 2 error in Firebug console
    ***************************************************************************
    First Error
    ***************************************************************************
    TypeError: document.getElementById(…) is null
    var checkmodule = document.getElementById(‘checkmodule’).value;

    ultimat…r=4.0.1 (line 3, col 21)
    ***************************************************************************
    This is code in when i click “ultimat…r=4.0.1 (line 3, col 21)”

    jQuery( document ).ready(function() {
    jQuery(‘.dropdown-toggle’).dropdown(‘toggle’);
    var checkmodule = document.getElementById(‘checkmodule’).value;
    if(checkmodule != ‘dashboard’ && checkmodule != ‘filemanager’ && checkmodule !=’support’ && checkmodule !=’export’) {
    var get_log = document.getElementById(‘log’).innerHTML;
    if (!jQuery.trim(jQuery(‘#log’).html()).length) {
    document.getElementById(‘log’).innerHTML = ‘<p style=”margin:15px;color:red;”>NO LOGS YET NOW.</p>’;
    }

    *************************************************************************
    Second Error
    ************************************************************************
    TypeError: document.getElementById(…) is null
    var get_module = document.getElementById(‘checkmodule’).value;

    dashcha…r=4.0.1 (line 2, col 17)
    **************************************************************************
    This is the code when I click dashcha…r=4.0.1 (line 2, col 17)

    jQuery( document ).ready(function() {
    var get_module = document.getElementById(‘checkmodule’).value;
    if(get_module == ‘dashboard’) {
    pieStats();
    lineStats();
    }
    });
    function pieStats()
    {
    jQuery.ajax({
    type: ‘POST’,
    url: ajaxurl,
    data: {
    ‘action’ : ‘firstchart’,
    ‘postdata’ : ‘firstchartdata’,
    },
    dataType: ‘json’,
    cache: false,
    success: function(data) {
    var browser = JSON.parse(data);
    if (browser[‘label’] == ‘No Imports Yet’) {
    document.getElementById(‘pieStats’).innerHTML = “<h2 style=’color: red;text-align: center;padding-top: 100px;’ >No Imports Yet</h2>”;
    return false;
    }

    jQuery(‘#pieStats’).highcharts({
    chart: {
    type: ‘pie’,
    options3d: {
    enabled: true,
    alpha: 45,
    beta: 0
    }
    },
    title: {
    text: ”
    },
    tooltip: {
    pointFormat: ‘{series.name}: <b>{point.percentage:.1f}%</b>’
    },
    plotOptions: {
    pie: {
    allowPointSelect: true,
    cursor: ‘pointer’,
    depth: 35,
    dataLabels: {
    enabled: true,
    format: ‘{point.name}’
    }
    }
    },
    series: [{
    type: ‘pie’,
    name: ‘overall statistics’,
    // data: JSON.parse(data),
    data: browser
    }]
    });
    }
    });
    }
    function lineStats()
    {
    jQuery.ajax({
    type: ‘POST’,
    url: ajaxurl,
    data: {
    ‘action’ : ‘secondchart’,
    ‘postdata’ : ‘secondchartdata’,
    },
    dataType: ‘json’,
    cache: false,
    success: function(data) {
    var val = JSON.parse(data);
    var line = [val[0],val[1],val[2],val[3],val[4],val[5]];
    jQuery(‘#lineStats’).highcharts({
    title: {
    text: ”,
    x: -5 //center
    },
    subtitle: {
    text: ”,
    x: -5
    },
    xAxis: {
    categories:val.cat
    },
    yAxis: {
    title: {
    text: ‘Import (Nos)’
    },
    plotLines: [{
    value: 0,
    width: 1,
    color: ‘#808080’
    }]
    },
    tooltip: {
    valueSuffix: ‘ Nos’
    },
    legend: {
    layout: ‘vertical’,
    align: ‘right’,
    verticalAlign: ‘middle’,
    borderWidth: 0
    },
    series:line });
    }
    });
    }

    https://wordpress.org/plugins/wp-ultimate-csv-importer/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Smackcoders Inc.,

    (@smackcoders)

    We cannot reproduce this error in our test environment. Please create support ticket in our helpdesk. Our support team will fix your issue as soon as possible.

    Plugin Author Smackcoders Inc.,

    (@smackcoders)

    This may be conflict normally of a out dated plugin, you can deactivate plugin one by one to find which one. Hope this is solved as no reply so far. If any help needed update this thread with more details

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Mapping page blank after upload’ is closed to new replies.