Re: Phoca Download - Faulty behavior of 'reset downloads' function in control center
Posted: 07 May 2019, 17:18
Hi Jan,
Thanks a lot for your reply and sorry for my delay.
I had a look at the file admin/models/phocadownloadfile.php and the code is there as you have expected, but the problem still remains.
Is it possible that the database is 'corrupted' and if so, is there a way to check the database for errors or to reset/clean the statistics table?
Some time before, I mentioned that there are some entries in the statistics table but the fileids do not exist.
See this screenshot of the database table.
The corresponding files are no longer present on my machine and in the screenshot you can see that 'count' was reset but the entries were not removed after I deleted the files.
I really don't know what else I can do.
BTW I put a 'trap' in your code in order to see if anything happens when I click 'Reset' - but nothing happend.
In line 421 of phocadownloadfile.php the function starts with: if (count( $cid )) {...
That's possibly the reason for this. I don't know where '$cid' comes from.
Regards Mike
Thanks a lot for your reply and sorry for my delay.
I had a look at the file admin/models/phocadownloadfile.php and the code is there as you have expected, but the problem still remains.
Is it possible that the database is 'corrupted' and if so, is there a way to check the database for errors or to reset/clean the statistics table?
Some time before, I mentioned that there are some entries in the statistics table but the fileids do not exist.
See this screenshot of the database table.
The corresponding files are no longer present on my machine and in the screenshot you can see that 'count' was reset but the entries were not removed after I deleted the files.
I really don't know what else I can do.
BTW I put a 'trap' in your code in order to see if anything happens when I click 'Reset' - but nothing happend.
In line 421 of phocadownloadfile.php the function starts with: if (count( $cid )) {...
That's possibly the reason for this. I don't know where '$cid' comes from.
Regards Mike