vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.6 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=194)
-   -   Statistics Modifications - Dream's Forum Statistics (https://vborg.vbsupport.ru/showthread.php?t=140812)

murrtex 10-31-2007 08:31 PM

Warning: Division by zero in /statsmod/statistics_registrations.php on line 105

what will we do?

doogie1775 11-01-2007 06:41 AM

As always, another fantastic Mod from Dream - Thank you!

Dream 11-02-2007 11:57 AM

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.

nureeves 11-04-2007 01:33 AM

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

hilfe-forum 11-04-2007 09:54 AM

Quote:

Originally Posted by murrtex (Post 1373003)
Warning: Division by zero in /statsmod/statistics_registrations.php on line 105

what will we do?

Cange:
$percent = ($total_users / $monthly_total) * 100;

to

If ($monthly_total > 0){
$percent = ($total_users / $monthly_total) * 100;
}


(in File statsmod/statistics_registrations.php )

doogie1775 11-05-2007 06:31 AM

Quote:

Originally Posted by hilfe-forum (Post 1375455)
Cange:
$percent = ($total_users / $monthly_total) * 100;

to

If ($monthly_total > 0){
$percent = ($total_users / $monthly_total) * 100;
}


(in File statsmod/statistics_registrations.php )

I ended up having the same problem as murrtex, but the obove fixed the error - thank you!

However, I am showing zero for the monthly registration stats? Any idea why?

Thnx!

control1110 11-05-2007 01:04 PM

Why does this error occur? I am having the same issue it was working fine before

JohnnieOO 11-06-2007 12:26 PM

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

yoyoyoyo 11-06-2007 01:14 PM

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?

fury 11-06-2007 07:33 PM

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.


All times are GMT. The time now is 07:07 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
  • Page Generation 0.01398 seconds
  • Memory Usage 1,736KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete