Code: Select all
[phpBB Debug] PHP Notice: in file /includes/mods/cash/cash_class.php on line 461: Division by zero
Code: Select all
[phpBB Debug] PHP Notice: in file /includes/mods/cash/cash_class.php on line 461: Division by zero
anyone?teman wrote:hey,just wonder if i can reduce the total cash of my members.i mean,i plan to open request section.whenever the request is solved their cash will be reduced.
is that possible?
Not sure but I guess, it keeps trying to exchange something whereas the new exchange rate = 0NiceM wrote:I have installed this mod on my testboard and it's working fine, now i have instaled it on my board and i'm geting this error mesage every time a user have made a post.I can't find what i have done wrong on this install.Code: Select all
[phpBB Debug] PHP Notice: in file /includes/mods/cash/cash_class.php on line 461: Division by zero
Code: Select all
$amount /= $exchange_rates[$currency_to]['exchange_rate'];
Code: Select all
if (!empty($exchange_rates[$currency_to]['exchange_rate']))
{
$amount /= $exchange_rates[$currency_to]['exchange_rate'];
}
Well, it looks like "Display currency" should better be left ON! See your cash mod related acp settings.NiceM wrote:You are right about the new exchange rate = 0, but the damn problem is i can't edit or delete that currencie, but thank you for helping me out here too
I did a fix in phpmyadmin i changed the ratings in there and it's working now.Ladysarajane wrote:I have only come across this when I have attempted to delete the original Cash currency instead of editing the name. Did you attempt to delete the original Cash currency?
Hmm...Can you give me a screen shot of your Cash settings and especially the exchange rates?
I think I have an ideal, but I want to confirm it first.
I may been blind, but i can't find that setting in my cash mod settings.easygo wrote:Well, it looks like "Display currency" should better be left ON! See your cash mod related acp settings.NiceM wrote:You are right about the new exchange rate = 0, but the damn problem is i can't edit or delete that currencie, but thank you for helping me out here too
Otherwise and w/o any workaround like that, you may get the same error message further on :/
As I'm not using this mod by now, I don't know how to explain yet. So just look at this ::NiceM wrote:I may been blind, but i can't find that setting in my cash mod settings.easygo wrote:Well, it looks like "Display currency" should better be left ON! See your cash mod related acp settings.NiceM wrote:You are right about the new exchange rate = 0, but the damn problem is i can't edit or delete that currencie, but thank you for helping me out here too
Otherwise and w/o any workaround like that, you may get the same error message further on :/
Code: Select all
<legend>{L_SETTINGS}</legend>
<dl>
<dt><label for="cash_display_currency">{L_CASH_DISPLAY_CURRENCY}</label></dt>
<dd><select name="cash_display_currency" id="cash_display_currency">{S_CASH_DISPLAY_CURRENCY}</select></dd>
</dl>
Whatever, it shouldn't be 0 (default = 1) // that's all I could tell you w/o having the mod installedNiceM wrote:I think what you have there is a dropdown box named display currencies in there you can chose what currencie you want to show.
Thank you for all your help, i got going as you can see on my site.easygo wrote:Whatever, it shouldn't be 0 (default = 1) // that's all I could tell you w/o having the mod installedNiceM wrote:I think what you have there is a dropdown box named display currencies in there you can chose what currencie you want to show.