vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   uCash & uShop (https://vborg.vbsupport.ru/forumdisplay.php?f=100)
-   -   Division by zero error message (https://vborg.vbsupport.ru/showthread.php?t=79500)

Pamela 04-06-2005 09:10 PM

Division by zero error message
 
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! :)

Link14716 04-06-2005 10:27 PM

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

Pamela 04-06-2005 10:55 PM

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!

Link14716 04-06-2005 11:20 PM

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.

Pamela 04-07-2005 12:12 AM

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...

Pamela 04-08-2005 02:19 AM

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! :)

Link14716 04-08-2005 02:57 AM

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.

Pamela 04-08-2005 03:02 PM

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.

Link14716 04-08-2005 03:46 PM

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. :p

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.

Pamela 04-08-2005 04:24 PM

Hey that worked! It rebuilt my Donate screen with the rep options! Thanks Matthew!!! I appreciate your help! :D


All times are GMT. The time now is 10:51 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.01868 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
  • (5)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (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