VirtueMart Forum

VirtueMart 2 + 3 + 4 => Virtuemart Development and bug reports => Topic started by: meatza on January 27, 2013, 07:50:14 AM

Title: Warning: admini~/compo~/com_virtuemart/helpers/currencydisplay.php on line 305
Post by: meatza on January 27, 2013, 07:50:14 AM
Hello,
After Updated new version (2.0.18a)

showing Warning:  Warning: round() expects parameter 2 to be long, string given in /home/~/public_html/administrator/components/com_virtuemart/helpers/currencydisplay.php on line 305
in home page.
Title: Re: Warning: admini~/compo~/com_virtuemart/helpers/currencydisplay.php on line 305
Post by: jenkinhill on January 27, 2013, 14:18:09 PM
http://forum.virtuemart.net/index.php?topic=102555.0
Title: Re: Warning: admini~/compo~/com_virtuemart/helpers/currencydisplay.php on line 305
Post by: meatza on January 27, 2013, 22:17:19 PM
Grateful.
:)
Title: Re: Warning: admini~/compo~/com_virtuemart/helpers/currencydisplay.php on line 305
Post by: Milbo on January 29, 2013, 16:06:45 PM
I think you should store your vm config again. Looks like there is an old value stored. would be interesting to have a vmdebug there in line 304, for example

vmdebug('It is a string?',$nb);

Maybe you see a normal number there, then a cast could preven this minor bug in future.

Anyway I assume the problem is an old vm config.