Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Count not working after upgrade to 2.0 #50

Open
squarou opened this issue May 19, 2016 · 4 comments
Open

Count not working after upgrade to 2.0 #50

squarou opened this issue May 19, 2016 · 4 comments

Comments

@squarou
Copy link

squarou commented May 19, 2016

Is there a way to solve my problem ? I've lost all the counts of downloads and it's not working anymore since I've upgraded, where the values remains in db.

Here's the chunk used :
[[!FileDownloadLink? &getFile=[[+file]] &countDownloads=1 &tplCode=

[[+title:default=[[+filename]]]]

| [[+sizeText]] - [[+date]]([[+count]] téléchargements)
&dateFormat=d-m-Y &toArray=0 ]]

Counts are reseted and are stuck to 0.

I've 3 tables in my db :
fd_paths, fd_counts and fd_downloads

The counts are stored in fd_counts but not incrementing anymore.

--- Want to back this issue? **[Post a bounty on it!](https://www.bountysource.com/issues/34390023-count-not-working-after-upgrade-to-2-0?utm_campaign=plugin&utm_content=tracker%2F1480317&utm_medium=issues&utm_source=github)** We accept bounties via [Bountysource](https://www.bountysource.com/?utm_campaign=plugin&utm_content=tracker%2F1480317&utm_medium=issues&utm_source=github).
@squarou
Copy link
Author

squarou commented May 19, 2016

I've got this in the log :

core/xpdo/om/xpdoobject.class.php : 811) fdPaths: Attempt to set NOT NULL field media_source_id to NULL

@dimsa
Copy link

dimsa commented Jul 9, 2017

Hello. Have got this bug too.
As quick solution you can fix this file core/components/filedownloadr/model/filedownloadr/filedownloadr.class.php
Row 780: //'media_source_id' => $this->config['mediaSourceId'],
Row 791: // 'media_source_id' => $this->config['mediaSourceId'],

@squarou
Copy link
Author

squarou commented Jul 23, 2017

Thanks you 👍

@elendil-software
Copy link

elendil-software commented Aug 1, 2017

Thank you !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants