PDA

View Full Version : Division by zero error message


Pamela
04-06-2005, 10:10 PM
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, 11:27 PM
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.php?p=636289&postcount=5

Pamela
04-06-2005, 11: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-07-2005, 12:20 AM
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, 01: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, 03:19 AM
I found this thread about the division by zero error:

https://vborg.vbsupport.ru/showthread.php?p=602812#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, 03: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, 04:02 PM
Was the store upgraded from uCS 0.93?


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


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, 04:46 PM
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, 05:24 PM
Hey that worked! It rebuilt my Donate screen with the rep options! Thanks Matthew!!! I appreciate your help! :D

Link14716
04-08-2005, 05:29 PM
Hey that worked! It rebuilt my Donate screen with the rep options! Thanks Matthew!!! I appreciate your help! :D
I guess the install script didn't completely update everything like it should have. ;)

Glad it is working now. :)