veldepatrick Posted January 18, 2019 Posted January 18, 2019 Hi, Since last week, my dashboard statistic module suddenly stopped registering sales etc. It just shows a flat line since begin of january. I checked the error log and found this: [Tue Jan 08 15:04:55.418180 2019] [:error] [pid 24724] [client 85.150.219.252:49676] PHP Warning: Division by zero in /home/krachtshop/domains/krachtshop.nl/public_html/modules/dashtrends/dashtrends.php on line 326, referer: https://krachtshop.nl/admin1864/index.php?controller=AdminDashboard&token=0ee75e2a853bc1fa474b35028931db79 I checked and line 326 of that file is this: $translation = $normalMin + ($compareDate - $compareMin) * ($normalSize / $compareSize); But I'm not to technical and don't know what to do. Can anyone see what's the problem of this error? Kind regards, Patrick
1 SLiCK_303 Posted February 8, 2019 Posted February 8, 2019 what version of tb are you using? Is this site a migrated one?
0 musicmaster Posted January 19, 2019 Posted January 19, 2019 The only zero it can divide by is CompareSize. I don't know the code very well but my suggestion is to experiment with the (comparison)-period.
0 veldepatrick Posted January 21, 2019 Author Posted January 21, 2019 Hi Musicmaster, Thanks for you reply. I disabled the 'comparison period'. But sales are still not shown. I'll keep looking..
0 wakabayashi Posted February 2, 2019 Posted February 2, 2019 @veldepatrick does the problem still exits?
0 veldepatrick Posted February 7, 2019 Author Posted February 7, 2019 Hi wakabayashi, Yes the problem still exists. I don't have a clue, I can't find any specific error in my logfile related to this. Any ideas are welcome...
0 Pedalman Posted February 13, 2019 Posted February 13, 2019 Just asking into the blue: Did you change your statuses? Don't laugh but if there is no status set that tells the db that an order was sold than...
0 veldepatrick Posted May 6, 2019 Author Posted May 6, 2019 Hi PedalMan, No I did not change my statuses. I eventually solved it by downloading the statsmodule and statsdata modules from thirtybees github. Deleting the old modules and uploading the new. Somehow it solved the problem. Anyhow, everybody thanks for your help.
Question
veldepatrick
Hi,
Since last week, my dashboard statistic module suddenly stopped registering sales etc. It just shows a flat line since begin of january. I checked the error log and found this:
[Tue Jan 08 15:04:55.418180 2019] [:error] [pid 24724] [client 85.150.219.252:49676] PHP Warning: Division by zero in /home/krachtshop/domains/krachtshop.nl/public_html/modules/dashtrends/dashtrends.php on line 326, referer: https://krachtshop.nl/admin1864/index.php?controller=AdminDashboard&token=0ee75e2a853bc1fa474b35028931db79
I checked and line 326 of that file is this:
$translation = $normalMin + ($compareDate - $compareMin) * ($normalSize / $compareSize);
But I'm not to technical and don't know what to do. Can anyone see what's the problem of this error?
Kind regards,
Patrick
7 answers to this question
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now