The count of downloads does not increment; remains 0. I use upload module for files attachment and public file system.

Comments

pixture’s picture

Download the development snapshot and try it. If you see the error message "Error: Public Download Count module failed to work...", then you need to modify the pubdlcnt.php file manually using text editor.

If you don't see the error message and still not counting the file download, give the following information for the troubleshooting purpose.

1) Full path of the directory where the module is installed.
2) Full path of the Drupal root (where you see the files index.php, update.php, cron.php files ...)
3) Full URL of the file that was downloaded but the count was not incremented. (you can see it at the status bar of the browser)

Without having these information, I can not troubleshoot the problem.

PS: You may need to reload the file download page if you are talking about the counter appeared in the node. They are not updated with the new count value unless the page is reloaded.

j45on’s picture

I have the same problem as well. I'm currently using 6.x-1.0-beta2

url: http://www.notd-aftermath.com/download
test file: NOTD Aftermath 1.5c

Required information as follow:
1. home/username/public_html/sites/all/modules/
2. home/username/public_html/
3. home/username/public_html/sites/default/files/NOTD%20Aftermath%201.5c.w3x

pixture’s picture

Assigned: Unassigned » pixture

j45on,

I am not sure if this is the same problem, but your problem seems to be a file name issue. Most probably, files whose name has some space characters are the ones that are not counted successfully. I will look into it.

j45on’s picture

Apparently, I have realized that files with a 'space' in the file name could not be tracked by Public Download Count.

pixture’s picture

Version: 6.x-1.0-beta2 » 6.x-1.0-beta3
Status: Active » Fixed

The problem of handling file name with space characters is fixed with beta-3 release. Please download it and give it a try.

j45on’s picture

Records are showing in the Administer > Reports > Public Download Count but does not register on an anchor tag for links.

pixture’s picture

I don't understand what you mean. Could you explain a bit more details?

Do you mean that the download counter was incremented successfully but the updated counter value is not displayed on the node ? If so, you may need to reload the node (page) to update the counter value on the node. If not, please explain what is the remaining problem.

my-family’s picture

The 6.x-1.0-beta3 version works, thank you.

pixture’s picture

The problem is fixed with Beta-3.

j45on’s picture

Yes, the download counter in the report was incremented successfully but the anchored link to the files in the nodes did not.

url: http://www.notd-aftermath.com/download

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.