Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > Premium Archives > uCash & uShop
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Division by zero error message Details »»
Division by zero error message
Version: , by Pamela Pamela is offline
Developer Last Online: Dec 2012 Show Printable Version Email this Page

Version: Unknown Rating:
Released: 04-06-2005 Last Update: Never Installs: 0
 
No support by the author.

When we try to donate to other members, the points transfer goes through (they get their points and it's subtracted from our points)...but we also get this error message showing up at the top of our screen each time:

Warning: Division by zero in /home/pam/public_html/forums/uttstore/action.donate.php on line 112

How can I prevent this error (we've had it since it was first installed)...

Thank you!

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #2  
Old 04-06-2005, 11:27 PM
Link14716's Avatar
Link14716 Link14716 is offline
 
Join Date: Jun 2002
Location: Georgia, USA
Posts: 2,519
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Pamela
When we try to donate to other members, the points transfer goes through (they get their points and it's subtracted from our points)...but we also get this error message showing up at the top of our screen each time:

Warning: Division by zero in /home/pam/public_html/forums/uttstore/action.donate.php on line 112

How can I prevent this error (we've had it since it was first installed)...

Thank you!
https://vborg.vbsupport.ru/showpost....89&postcount=5
Reply With Quote
  #3  
Old 04-06-2005, 11:55 PM
Pamela Pamela is offline
 
Join Date: Apr 2004
Posts: 221
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Ugh...I'm still doing something wrong.

I set "Points For Good Reputation" to 1 and "Points For Bad Reputation" to 1 (I originally had it at 0 since I want to disable it). But I still get the error message. What did I do wrong?

To disable reputation points entirely but to not get the error message what do I need to set "Points for Good Reputation" to and "Points for Bad Reputation" to (yes, I'm slow)? Thanks!
Reply With Quote
  #4  
Old 04-07-2005, 12:20 AM
Link14716's Avatar
Link14716 Link14716 is offline
 
Join Date: Jun 2002
Location: Georgia, USA
Posts: 2,519
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Pamela
Ugh...I'm still doing something wrong.

I set "Points For Good Reputation" to 1 and "Points For Bad Reputation" to 1 (I originally had it at 0 since I want to disable it). But I still get the error message. What did I do wrong?

To disable reputation points entirely but to not get the error message what do I need to set "Points for Good Reputation" to and "Points for Bad Reputation" to (yes, I'm slow)? Thanks!
That is an entirely different setting. The two settings that are referred to in that post are in the Action Manager -> Donate -> Edit.
Reply With Quote
  #5  
Old 04-07-2005, 01:12 AM
Pamela Pamela is offline
 
Join Date: Apr 2004
Posts: 221
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

But I have no mention of reputation in my Action Manager>Donate>Edit section.

I have:

Short Name
Name
Description
Display Order
Cost
Tax
Sold
Quantity Refill
Quantity
Allowed Usergroups
Denied Usergroups
File Location
Image Location
Show in Store
Active

And that's it...
Reply With Quote
  #6  
Old 04-08-2005, 03:19 AM
Pamela Pamela is offline
 
Join Date: Apr 2004
Posts: 221
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I found this thread about the division by zero error:

https://vborg.vbsupport.ru/showthrea...812#post602812

This person didn't have those rep options in their admin cp either.

So what can I do to fix it now?

Thanks!
Reply With Quote
  #7  
Old 04-08-2005, 03:57 AM
Link14716's Avatar
Link14716 Link14716 is offline
 
Join Date: Jun 2002
Location: Georgia, USA
Posts: 2,519
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Here are a few questions I have for you.

Was the store upgraded from uCS 0.93?
Are there any more options for the Bank action?

Err... that's all I can think of right now.
Reply With Quote
  #8  
Old 04-08-2005, 04:02 PM
Pamela Pamela is offline
 
Join Date: Apr 2004
Posts: 221
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Link14716
Was the store upgraded from uCS 0.93?
Yes, actually YOU upgraded it for me Matthew (paid service from http://www.onlinechristianparents.com/forums).


Quote:
Originally Posted by Link14716
Here are a few questions I have for you.

Are there any more options for the Bank action?
Everything I listed above, plus "Interest Increment" and "Interest Percent". And that's it...nothing about reputation.
Reply With Quote
  #9  
Old 04-08-2005, 04:46 PM
Link14716's Avatar
Link14716 Link14716 is offline
 
Join Date: Jun 2002
Location: Georgia, USA
Posts: 2,519
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Pamela
Yes, actually YOU upgraded it for me Matthew (paid service from http://www.onlinechristianparents.com/forums).




Everything I listed above, plus "Interest Increment" and "Interest Percent". And that's it...nothing about reputation.
Yeah, I remember that.

Run http://www.yoursite.com/forums/ushop.php?rebuildds=1 in your browser and if the options still don't show up for Donate, I'll probably have to check out the utt_store_asvs database table to see if it is missing anything.
Reply With Quote
  #10  
Old 04-08-2005, 05:24 PM
Pamela Pamela is offline
 
Join Date: Apr 2004
Posts: 221
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hey that worked! It rebuilt my Donate screen with the rep options! Thanks Matthew!!! I appreciate your help!
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 01:16 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.04457 seconds
  • Memory Usage 2,292KB
  • Queries Executed 23 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (5)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (9)postbit
  • (10)postbit_onlinestatus
  • (10)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete