![]() |
Warning: Division by zero in /statsmod/statistics_registrations.php on line 105
what will we do? |
As always, another fantastic Mod from Dream - Thank you!
|
You are welcome, glad you liked it :)
Sorry murrtex, this mod has some bugs depending whether you have some missing information. Right now I don't have time to fix it, sorry. |
I got same problem with Murtex. And all monthly registration value is zero.
c'mon Dream .. this is such wonderful mod, i thought you should fix it immeadiately, to maki it perfect :D !!! GBU |
Quote:
$percent = ($total_users / $monthly_total) * 100; to If ($monthly_total > 0){ $percent = ($total_users / $monthly_total) * 100; } (in File statsmod/statistics_registrations.php ) |
Quote:
However, I am showing zero for the monthly registration stats? Any idea why? Thnx! |
Why does this error occur? I am having the same issue it was working fine before
|
Yep, same error for me (worked fine before)
Warning: Division by zero in /statsmod/statistics_registrations.php on line 105 I have a very small board and this error occured, I THINK, right after I deleted a spammer. Since then, I get this error. The dailey registrations appear OK, but the monthly registrations are all zero. Johnnie |
so this statistics mod doesn't load a user's browser with any cookies, right?
also - in viewing some of the example sites it seems that the monthly registration stats are faulty, since it shows recent registrations, but the monthly stats show none. Also wondering if there is any way to limit the countries of registered users to only those that are really registered, so the list isn't filled with a bunch of zeroes? for instance, if I have no users from Zimbabwe registered, can the list be fixed to not display that country? |
Can anyone suggest some table indexes for me to add to make this stuff go faster? I notice a long loading time on my board, and anticipate if the statistics page ever gets crawled by a search engine spider, my server will be brought to its knees... I could just declare statistics.php in robots.txt but I think I'd rather just make the stats faster to begin with.
|
My monthly registrations are also 0s for some reason... it was working until this month.
|
Warning: Division by zero in /statsmod/statistics_registrations.php on line 105
Anybody knows whats the problem when i try to see registrations statistics? |
I happened on the first of this month thats all I know it worked fine before that
|
Quote:
|
I also dissable the product, and the registraitions of last months are dissapeared...
This is a very bad thing :( |
Today is working propertly again. Very strangeeeeee.
|
where would I import the statistics.php if i am using domainnames as my host.
I really need help on this one. I am getting this error: Warning: include(statsmod/statistics_general_stats.php) [function.include]: failed to open stream: No such file or directory in /statistics.php on line 203 Warning: include() [function.include]: Failed opening 'statsmod/statistics_general_stats.php' for inclusion (include_path='.:/usr/local/php5/lib/php') in /statistics.php on line 203 What Now? |
Did you upload the directory statsmod/ ?
|
working thanks ! Looks good too
|
registration stats get this error at top of page. Shows no stats for the rest of the months of the year. Does show the stats for the current month. Any ideas?
Warning: Division by zero in /statsmod/statistics_registrations.php on line 105 Warning: Division by zero in /statsmod/statistics_registrations.php on line 105 Warning: Division by zero in /statsmod/statistics_registrations.php on line 105 Warning: Division by zero in /statsmod/statistics_registrations.php on line 105 Warning: Division by zero in /statsmod/statistics_registrations.php on line 105 Warning: Division by zero in /statsmod/statistics_registrations.php on line 105 Warning: Division by zero in /statsmod/statistics_registrations.php on line 105 Warning: Division by zero in /statsmod/statistics_registrations.php on line 105 Warning: Division by zero in /statsmod/statistics_registrations.php on line 105 Warning: Division by zero in /statsmod/statistics_registrations.php on line 105 |
ditto on that one ^^
|
Code:
Warning: Division by zero in /statsmod/statistics_registrations.php on line 105 Other than this error, its a great mod. EDIT: After re-reading the thread I see that I am not the only one with this problem XD. |
Quick fix for the above, edit the /statsmod/statistics_registrations.php
Change line 105 Code:
$percent = ($total_users / $monthly_total) * 100; Code:
if (empty($monthly_total)) { $percent = 0; } else { $percent = ($total_users / $monthly_total) * 100; } |
sweet thanks Elenna :)
tho...continued with another error on line 110... replaced the daily and monthly percentage lines. Daily shows up fine now, but monthly doesn't display anything at all...its all 0's. ideas? |
Not sure on that, sorry :( My board is new, so my should all have 0 in Monthly. lol
That was a quick fix that worked for me, so if someone else can edit it to work for them, good:) |
Great!! :)
|
Now I don't have any registration stats for some reason. However, if I go into the AdminCP, they are all there for daily and monthly as well? Otherwise, a great MOD - but would love to get the registration stats working correctly.
|
thanks hilfe-forum
|
Works a dream - installed without probs here
Would be nice to know the strings used for content in each statistic i.e new member or top posters over past week etc. This could then be placed into a left/right column as interest for users. Just a thought. Clicked Install |
I found the problem with Monthly registrations stats.
The section in statistics.php that computes the year(s) is incorrect: PHP Code:
PHP Code:
$year = $year - floor(($howmany - $today['month']) / 12) $year = $year - floor((10 - 11) / 12) $year = $year - floor((-1) / 12) $year = $year - floor(-0.0833) $year = $year - -1 $year = 2007 - -1 $year = 2008 A simple fix is to use the "intval" function rather then "floor", which just returns the integer which is what was being attempted with the "floor" function and when the result is (-0.0833) it will return 0 which will work. PHP Code:
|
works great ty muchly!!!
|
Thanks you TomasDR for the fix! I had just noticed a few minutes ago that I was getting that error when looking at registrations. I edited my statistics.php as you stated and it's back to normal. :D
|
Warning: Division by zero in /statsmod/statistics_registrations.php on line 105
Warning: Division by zero in /statsmod/statistics_registrations.php on line 105 Warning: Division by zero in /statsmod/statistics_registrations.php on line 105 Warning: Division by zero in /statsmod/statistics_registrations.php on line 105 Warning: Division by zero in /statsmod/statistics_registrations.php on line 105 Warning: Division by zero in /statsmod/statistics_registrations.php on line 105 Warning: Division by zero in /statsmod/statistics_registrations.php on line 105 Warning: Division by zero in /statsmod/statistics_registrations.php on line 105 Warning: Division by zero in /statsmod/statistics_registrations.php on line 105 |
croportal, please see the posts on the previous page, theres a fix
|
I sent Dream a PM and I am awaiting his reply. He states his code is all reusable now but I wanted to offer him some additions I made first otherwise I will be uploading an add-on to the statistics add-on.
I added:
I would be open to adding other popular add-ons. |
OK, I am a complete idiot, how do I make the changes suggested by ThomasDR?
Johnnie |
So, just update the mod !!
I can't edit php file myself .. hehe GBU All !! |
Sounds good Thomas - can't wait!
|
Quote:
|
Quote:
Thanks, such a simple fix in the end. |
All times are GMT. The time now is 12:39 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|