Viewing 10 replies - 1 through 10 (of 10 total)
  • Hi
    Same behavior on my side… since January 1st.
    Have a good year ??

    Uncaught (in promise) ReferenceError: monthDownloads is not defined
    at reports.min.js:1:9923
    at Array.forEach ()
    at reports.min.js:1:9907
    at Array.forEach ()
    at DLM_Reports.createDataOnDate (reports.min.js:1:9490)
    at DLM_Reports.fetchReportsData (reports.min.js:1:3988)

    Small errors in the wp-content/plugins/download-monitor/assets/js/reports/reports.min.js file which is a minified version of reports.js Lines 535 to 550 are like this in the original file:

    		// Get all dates from the startDate to the endDate
    		let dayDownloads = dlmReportsInstance.getDates(new Date(startDate), new Date(endDate)),
    			doubleDays, doubleMonthDownloads, weeksDownloads, weekDownloads;
    
    		// Let's initiate our dlmDownloads with something
    		switch (dlmReportsInstance.chartType) {
    			case 'months':
    				// Get double selected months
    				doubleMonthDownloads = dlmReportsInstance.getDoubleMonths(dayDownloads);
    				dlmDownloads         = doubleMonthDownloads;
    				break;
    			case 'month':
    				// Get selected months
    				let monthDownloads = dlmReportsInstance.getMonths(dayDownloads);
    				dlmDownloads       = monthDownloads;
    				break;

    Fixed it by making these changes:

    		// Get all dates from the startDate to the endDate
    		let dayDownloads = dlmReportsInstance.getDates(new Date(startDate), new Date(endDate)),
    			doubleDays, doubleMonthDownloads, monthDownloads, weeksDownloads, weekDownloads;
    
    		// Let's initiate our dlmDownloads with something
    		switch (dlmReportsInstance.chartType) {
    			case 'months':
    				// Get double selected months
    				doubleMonthDownloads = dlmReportsInstance.getDoubleMonths(dayDownloads);
    				dlmDownloads         = doubleMonthDownloads;
    				break;
    			case 'month':
    				// Get selected months
    				monthDownloads = dlmReportsInstance.getMonths(dayDownloads);
    				dlmDownloads       = monthDownloads;
    				break;

    I am seeing the same issue as of today, January 2nd.

    Hello,

    Sorry for the late reply. Indeed there seems to be an issue and a fix will be available in the next update, most probably at the start of the next week.

    Warmly,
    Razvan

    Hi all!

    We just released an update addressing this issue. Please update and it should fix it. Let me know how it goes!

    Thank you for your patience!

    Warmly,

    Mihaela

    Thread Starter emma336

    (@emma336)

    Hi Mihaela,

    It’s working for me now so thank you for sorting it out.

    This is still not working for me since long.

    Hello @briantokyo ,

    Please create a new support ticket and we can continue our discussion there. Also, a screenshot of the browser’s developer tools console would be nice to have in order to determine what is going wrong.

    Warmly,
    Razvan

    Hey @briantokyo ,

    Please create a new topic and we’ll continue our discussion there.

    Warmly,
    Razvan

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘Reports not working’ is closed to new replies.