Warning: admini~/compo~/com_virtuemart/helpers/currencydisplay.php on line 305

Started by meatza, January 27, 2013, 07:50:14 AM

Previous topic - Next topic

meatza

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.

jenkinhill

Kelvyn
Lowestoft, Suffolk, UK

Retired from forum life November 2023

Please mention your VirtueMart, Joomla and PHP versions when asking a question in this forum


Milbo

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.
Should I fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/