• Resolved liammcluckie

    (@liammcluckie)


    Hi,

    It was brought to my attention that there are a some inconsistencies with the displayed download count data depending on where this is viewed in the dashboard.

    Looking in the reports section of the plugin would be the obvious place to find this data, and after doing a direct comparison of the download_log table in the database to the count showing here it confirmed that this is the correct number.

    However, I wanted to create this topic to either flag this issue or find out why there are inconsistencies with the data depending on where it is displayed in the dashboard.

    Hopefully the images below are helpful in explaining the varying locations that this data has been found.

    This is taken from the reports section and is showing the correct download count that was also found in the database.
    This is taken from the single download post located in the All Downloads section of the plugin. Here there are two lots of data displayed, 5744 and 2961. Granted the manual download count takes seems to calculate things differently, but this still seems incorrect.
    This is also taken from the All Downloads section, but this is the listed overview. Again here a completely different download count is displayed.

    All of this led to a client being very confused about which piece of data is accurate which, as you can expect, is very important to them.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Razvan Aldea

    (@raldea89)

    Hello,

    Since version 4.6.0 of the plugin the count from the Reports is the one that depends on the logged downloads, so on the download_log table you’ve mentioned, and the rest of the download count take into consideration another custom table ( if you have upgraded from version < 4.6.0 and went with the upgrade process, this table was created from the download_log table and holds only the download count for the Download and its Versions – for performance issues ) and the post meta ( manual download count ) also.


    Now, if in the past logs have been deleted, the manual download count modified, versions deleted, and so on it might trigger this kind of inconsistencies. What I suggest is to try and not add the post meta ( the manual download count ) into the download count ( I’ll leave a small snippet bellow to be added in the child theme’s functions.php file ) and see if the inconsistency still takes place.

    Please let me know if after this operation the issue still stands.

    add_filter( 'dlm_count_meta_downloads', '__return_false'  );

    Warmly,
    Razvan

    Thread Starter liammcluckie

    (@liammcluckie)

    Hi,

    Thanks for the explanation. Adding the snippet provided fixes one of the inconsistencies, however the download count still varies when looking in the Downloadable Files/Versions section.

    Thanks,

    Liam

    Plugin Author Razvan Aldea

    (@raldea89)

    Hello Liam,

    Sorry for the late reply. Are you talking about adding the downloads of Versions and not equaling the Download download count?

    Warmly,
    Razvan

    Plugin Support beatrice12

    (@beatrice12)

    Marking this support thread as resolved due to inactivity. If you have any other questions or need further help please open a new thread.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Varying Download Count Data’ is closed to new replies.